KernelMetadata

Trait KernelMetadata 

Source
pub trait KernelMetadata:
    Send
    + Sync
    + 'static {
    // Required methods
    fn id(&self) -> KernelId;
    fn address_type(&self) -> StorageType;

    // Provided method
    fn name(&self) -> &'static str { ... }
}
Expand description

Implement this trait to create a kernel definition.

Required Methods§

Source

fn id(&self) -> KernelId

Identifier for the kernel, used for caching kernel compilation.

Source

fn address_type(&self) -> StorageType

Type of addresses in this kernel

Provided Methods§

Source

fn name(&self) -> &'static str

Name of the kernel for debugging.

Implementations on Foreign Types§

Source§

impl<C> KernelMetadata for Box<dyn CubeTask<C>>
where C: Compiler,

Source§

fn id(&self) -> KernelId

Source§

fn name(&self) -> &'static str

Source§

fn address_type(&self) -> StorageType

Source§

impl<RA, __R> KernelMetadata for ReduceKernel<RA, __R>
where RA: ReduceArgs, __R: Runtime,

Source§

impl<__R> KernelMetadata for ReduceKernel<__R>
where __R: Runtime,

Implementors§

Source§

impl<C, K> KernelMetadata for KernelTask<C, K>
where C: Compiler, K: CubeKernel,