Skip to main content

cuModuleEnumerateFunctions

Function cuModuleEnumerateFunctions 

Source
pub unsafe extern "C" fn cuModuleEnumerateFunctions(
    functions: *mut CUfunction,
    numFunctions: c_uint,
    mod_: CUmodule,
) -> CUresult
Expand description

Returns the function handles within a module.

Returns in functions a maximum number of numFunctions 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

  • functions: Buffer where the function handles are returned to.
  • numFunctions: Maximum number of function handles may be returned to the buffer.
  • mod_: Module to query from.