pub unsafe extern "C" fn cuModuleLoadDataEx(
module: *mut CUmodule,
image: *const c_void,
numOptions: c_uint,
options: *mut CUjit_option,
optionValues: *mut *mut c_void,
) -> CUresultExpand description
Load a module’s data with options.
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.numOptions: Number of options.options: Options for JIT.optionValues: Option values for JIT.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_PTXCUresult::CUDA_ERROR_UNSUPPORTED_PTX_VERSIONCUresult::CUDA_ERROR_OUT_OF_MEMORYCUresult::CUDA_ERROR_NO_BINARY_FOR_GPUCUresult::CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUNDCUresult::CUDA_ERROR_SHARED_OBJECT_INIT_FAILEDCUresult::CUDA_ERROR_JIT_COMPILER_NOT_FOUND
See also: cuModuleGetFunction, cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadFatBinary, cuModuleUnload.