Function cuModuleLoadFatBinary

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

\brief Load a module’s data

Takes a pointer \p fatCubin and loads the corresponding module \p module into the current context. The pointer represents a fat binary object, which is a collection of different \e cubin and/or \e PTX files, all representing the same device code, but compiled and optimized for different architectures.

Prior to CUDA 4.0, there was no documented API for constructing and using fat binary objects by programmers. Starting with CUDA 4.0, fat binary objects can be constructed by providing the -fatbin option to \b nvcc. More information can be found in the \b nvcc document.

\param module - Returned module \param fatCubin - Fat binary to load

\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_NOT_FOUND, ::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, ::cuModuleLoadDataEx, ::cuModuleUnload