pub unsafe extern "C" fn cuModuleGetFunction(
hfunc: *mut CUfunction,
hmod: CUmodule,
name: *const c_char,
) -> CUresultExpand 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
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_NOT_FOUND
See also: cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cuModuleLoadFatBinary, cuModuleUnload.