Function kn_cuda_sys::bindings::cuModuleLoadDataEx
source · 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
\brief Load a module’s data with options
Takes a pointer \p image and loads the corresponding module \p module into the current context. The pointer may be obtained by mapping a \e cubin or \e PTX or \e fatbin file, passing a \e cubin or \e PTX or \e fatbin file as a NULL-terminated text string, or incorporating a \e cubin or \e fatbin object into the executable resources and using operating system calls such as Windows \c FindResource() to obtain the pointer. Options are passed as an array via \p options and any corresponding parameters are passed in \p optionValues. The number of total options is supplied via \p numOptions. Any outputs will be returned via \p optionValues.
\param module - Returned module \param image - Module data to load \param numOptions - Number of options \param options - Options for JIT \param optionValues - Option values for JIT
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_PTX, ::CUDA_ERROR_UNSUPPORTED_PTX_VERSION, ::CUDA_ERROR_OUT_OF_MEMORY, ::CUDA_ERROR_NO_BINARY_FOR_GPU, ::CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND, ::CUDA_ERROR_SHARED_OBJECT_INIT_FAILED, ::CUDA_ERROR_JIT_COMPILER_NOT_FOUND \notefnerr
\sa ::cuModuleGetFunction, ::cuModuleGetGlobal, ::cuModuleGetTexRef, ::cuModuleLoad, ::cuModuleLoadData, ::cuModuleLoadFatBinary, ::cuModuleUnload