cuda.bindings._v2.driver.module_enumerate_functions#

cuda.bindings._v2.driver.module_enumerate_functions(intptr_t mod)#

Returns the function handles within a module.

Returns in functions a maximum number of num_functions function handles within mod. When function loading mode is set to LAZY the function retrieved may be partially loaded. The loading state of a function can be queried using cuFunctionIsLoaded. CUDA APIs may load the function automatically when called with partially loaded function handle which may incur additional latency. Alternatively, cuFunctionLoad can be used to explicitly load a function. The returned function handles become invalid when the module is unloaded.

Parameters:

mod (intptr_t) – Module to query from.

Returns:

Buffer where the function handles are returned to.

Return type:

intptr_t

See also

cuModuleEnumerateFunctions