pub unsafe extern "C" fn cuLibraryGetModule(
pMod: *mut CUmodule,
library: CUlibrary,
) -> CUresultExpand description
Returns a module handle.
Returns in pMod the module handle associated with the current context located in library library. If module handle is not found, the call returns cudaError_enum::CUDA_ERROR_NOT_FOUND.
§Parameters
pMod: Returned module handle.library: Library to retrieve module from.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_HANDLECUresult::CUDA_ERROR_NOT_FOUNDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_CONTEXT_IS_DESTROYED
See also: cuLibraryLoadData, cuLibraryLoadFromFile, cuLibraryUnload, cuModuleGetFunction.