Kernel

template<typename ...Args>
struct Kernel

An instance of a CUDA kernel with fixed argument types.

Template Parameters:

Args – Types of the kernel arguments.

Public Functions

inline void compile(const KernelBuilder &builder, const Config &config, const ICompiler &compiler = default_compiler(), CudaContextHandle ctx = CudaContextHandle::current())

Compile a CUDA kernel using the given KernelBuilder with the given Config and store the result in the current Kernel object.

inline void clear()

Delete this kernel and reset its contents.

inline void launch(cudaStream_t stream, Args... args)

Launch this kernel onto the given stream with the given arguments.

inline void launch(Args... args)

Launch this kernel with the given arguments on the default CUDA stream.