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.

ยงParameters

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