cuda-api-wrappers icon indicating copy to clipboard operation
cuda-api-wrappers copied to clipboard

Support Module function enumeration

Open eyalroz opened this issue 1 year ago • 0 comments

Beginning with CUDA 12.4, we are able to "enumerate" the functions in a module, or more literally - get an array of all cuFunction's for all compiled functions in a module. These can then be wrapped into cuda::kernel_t's queried for names, attributes etc.

Relevant API function is:

CUresult cuModuleEnumerateFunctions ( CUfunction* functions, unsigned int  numFunctions, CUmodule mod );

We also need to think about whether we want a container of cuda::kernel_t's, or a container of cuFunction's, or both.

eyalroz avatar Sep 05 '24 15:09 eyalroz