Skip to main content

Module program

Module program 

Source
Expand description

Compiled kernel programs.

Traits§

ArgVisitor
Receives each argument of a kernel in order. Implement this on a backend- specific “packer” struct (e.g. a CUDA arg-pointer array builder).
Kernel
A kernel definition: its source, name, and identity.
KernelArg
Implemented by each concrete argument type; dispatches to the right ArgVisitor method.
KernelArgs
Implemented for tuples of KernelArgs; visits each element in order. The proc macro generates type Args<'a> = (A, B, C, ...) and the blanket tuple impls below make that satisfy this bound automatically.
Program
A kernel K compiled and loaded onto a device, ready to launch.