Skip to main content

Module kernel_arg

Module kernel_arg 

Source
Expand description

The KernelArg trait: a uniform way to hand values to cuLaunchKernel / cudaLaunchKernel, which expect void** — an array of pointers to each argument.

Implementors must be crate::DeviceRepr so we know the layout is ABI-stable, and must produce a pointer whose pointee will remain valid for the duration of the kernel launch.

Traits§

KernelArg
A value that can be marshalled into the void** kernelParams slot of cuLaunchKernel / cudaLaunchKernel.