Skip to main content

cuModuleGetFunction

Function cuModuleGetFunction 

Source
pub unsafe extern "C" fn cuModuleGetFunction(
    hfunc: *mut CUfunction,
    hmod: CUmodule,
    name: *const c_char,
) -> CUresult
Expand description

Returns a function handle.

Returns in *hfunc the handle of the function of name name located in module hmod. If no function of that name exists, cuModuleGetFunction returns cudaError_enum::CUDA_ERROR_NOT_FOUND.

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • hfunc: Returned function handle.
  • hmod: Module to retrieve function from.
  • name: Name of function to retrieve.

§Return value

See also: cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cuModuleLoadFatBinary, cuModuleUnload.