Skip to main content

cuModuleLoadData

Function cuModuleLoadData 

Source
pub unsafe extern "C" fn cuModuleLoadData(
    module: *mut CUmodule,
    image: *const c_void,
) -> CUresult
Expand description

Load a module’s data.

Takes a pointer image and loads the corresponding module module into the current context. The image may be a cubin or fatbin as output by nvcc, or a NULL-terminated PTX, either as output by nvcc or hand-written, or Tile IR data.

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

§Parameters

  • module: Returned module.
  • image: Module data to load.

§Return value

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