intrinsic!() { /* proc-macro */ }
Expand description
Mark the contents of this macro as an intrinsic, turning off all expansion for this code and calling it with the scope
ยงExample
#use cubecl_macros::cube;
#[cube]
fn do_stuff(input: u32) -> u32 {
let comptime_value = intrinsic! { |scope| u32::elem_size(scope) };
input + comptime_value
}