ScalarArgSettings

Trait ScalarArgSettings 

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

    // Provided method
    fn expand_scalar(
        _: &ScalarCompilationArg<Self>,
        builder: &mut KernelBuilder,
    ) -> ExpandElementTyped<Self> { ... }
}
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.

Provided Methods§

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 e2m1x2

Source§

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

Source§

impl ScalarArgSettings for e4m3

Source§

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

Source§

impl ScalarArgSettings for e5m2

Source§

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

Source§

impl ScalarArgSettings for ue8m0

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§