cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
Implementations requiring the definitions of multiple CUDA entity proxy classes, and which regard apriori-compiled kernels. More...
Go to the source code of this file.
Namespaces | |
cuda | |
Definitions and functionality wrapping CUDA APIs. | |
Functions | |
template<typename KernelFunctionPtr > | |
apriori_compiled_t | cuda::kernel::get (const device_t &device, KernelFunctionPtr function_ptr) |
Choose an association of a __global__ kernel function with a context (or a device's primary context), and produce a proxy object for that association with which the library can more readily act. More... | |
Implementations requiring the definitions of multiple CUDA entity proxy classes, and which regard apriori-compiled kernels.
Specifically:
cuda::kernel
namespace.apriori_compiled_t cuda::kernel::get | ( | const device_t & | device, |
KernelFunctionPtr | function_ptr | ||
) |
Choose an association of a __global__
kernel function with a context (or a device's primary context), and produce a proxy object for that association with which the library can more readily act.
Obtain a wrapped kernel object corresponding to a "raw" kernel function.
device | The device with whose primary context to construct an associated kernel object |