Trait cubecl_core::frontend::ArgSettings

source ·
pub trait ArgSettings<R: Runtime>: Send + Sync {
    // Required method
    fn register(&self, launcher: &mut KernelLauncher<R>);

    // Provided methods
    fn configure_input(
        &self,
        _position: usize,
        settings: KernelSettings,
    ) -> KernelSettings { ... }
    fn configure_output(
        &self,
        _position: usize,
        settings: KernelSettings,
    ) -> KernelSettings { ... }
}
Expand description

Defines the argument settings used to launch a kernel.

Required Methods§

source

fn register(&self, launcher: &mut KernelLauncher<R>)

Register the information to the KernelLauncher.

Provided Methods§

source

fn configure_input( &self, _position: usize, settings: KernelSettings, ) -> KernelSettings

Configure an input argument at the given position.

source

fn configure_output( &self, _position: usize, settings: KernelSettings, ) -> KernelSettings

Configure an output argument at the given position.

Implementations on Foreign Types§

source§

impl<R: Runtime> ArgSettings<R> for ()

source§

fn register(&self, _launcher: &mut KernelLauncher<R>)

Implementors§

source§

impl<'a, R: Runtime> ArgSettings<R> for ArrayArg<'a, R>

source§

impl<'a, R: Runtime> ArgSettings<R> for TensorArg<'a, R>

source§

impl<T: Numeric, R: Runtime> ArgSettings<R> for ScalarArg<T>