Trait ScalarArgSettings

Source
pub trait ScalarArgSettings: Send + Sync {
    // Required method
    fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>);
}
Expand description

Similar to ArgSettings, however only for scalar types that don’t depend on the Runtime trait.

Required Methods§

Source

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

Register the information to the KernelLauncher.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ScalarArgSettings for f32

Source§

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

Source§

impl ScalarArgSettings for f64

Source§

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

Source§

impl ScalarArgSettings for i8

Source§

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

Source§

impl ScalarArgSettings for i16

Source§

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

Source§

impl ScalarArgSettings for i32

Source§

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

Source§

impl ScalarArgSettings for i64

Source§

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

Source§

impl ScalarArgSettings for u8

Source§

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

Source§

impl ScalarArgSettings for u16

Source§

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

Source§

impl ScalarArgSettings for u32

Source§

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

Source§

impl ScalarArgSettings for u64

Source§

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

Source§

impl ScalarArgSettings for bf16

Source§

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

Source§

impl ScalarArgSettings for f16

Source§

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

Implementors§