#[cube]
Expand description
Mark a cube function, trait or implementation for expansion.
§Arguments
launch
- generates a function to launch the kernellaunch_unchecked
- generates a launch function without checksdebug
- panics after generation to print the output to consolecreate_dummy_kernel
- Generates a function to create a kernel without launching it. Used for testing.
§Example
# use cubecl_macros::cube;
#[cube]
fn my_addition(a: u32, b: u32) -> u32 {
a + b
}