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§

source

fn id(&self) -> KernelId

Identifier for the kernel, used for caching kernel compilation.

source

fn compile(&self, mode: ExecutionMode) -> CompiledKernel

Compile the kernel into source

Trait Implementations§

source§

impl CubeTask for Box<dyn CubeTask>

source§

fn compile(&self, mode: ExecutionMode) -> CompiledKernel

Compile the kernel into source
source§

fn id(&self) -> KernelId

Identifier for the kernel, used for caching kernel compilation.

Implementations on Foreign Types§

source§

impl CubeTask for Box<dyn CubeTask>

source§

impl CubeTask for Arc<dyn CubeTask>

Implementors§