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§
sourcefn register(&self, launcher: &mut KernelLauncher<R>)
fn register(&self, launcher: &mut KernelLauncher<R>)
Register the information to the KernelLauncher.
Provided Methods§
sourcefn configure_input(
&self,
_position: usize,
settings: KernelSettings,
) -> KernelSettings
fn configure_input( &self, _position: usize, settings: KernelSettings, ) -> KernelSettings
Configure an input argument at the given position.
sourcefn configure_output(
&self,
_position: usize,
settings: KernelSettings,
) -> KernelSettings
fn configure_output( &self, _position: usize, settings: KernelSettings, ) -> KernelSettings
Configure an output argument at the given position.