Skip to main content

cuLibraryGetModule

Function cuLibraryGetModule 

Source
pub unsafe extern "C" fn cuLibraryGetModule(
    pMod: *mut CUmodule,
    library: CUlibrary,
) -> CUresult
Expand 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

See also: cuLibraryLoadData, cuLibraryLoadFromFile, cuLibraryUnload, cuModuleGetFunction.