Trait cubecl_core::compute::CubeTask
source · pub trait CubeTask: Send + Sync {
// Required methods
fn id(&self) -> KernelId;
fn compile(&self, mode: ExecutionMode) -> CompiledKernel;
}
Expand description
Kernel trait with the ComputeShader that will be compiled and cached based on the provided id.
Required Methods§
sourcefn compile(&self, mode: ExecutionMode) -> CompiledKernel
fn compile(&self, mode: ExecutionMode) -> CompiledKernel
Compile the kernel into source