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§
- Kernel
Arg - A value that can be marshalled into the
void** kernelParamsslot ofcuLaunchKernel/cudaLaunchKernel.