pub unsafe extern "C" fn cuModuleLoad(
module: *mut CUmodule,
fname: *const c_char,
) -> CUresult
Expand description
\brief Loads a compute module
Takes a filename \p fname and loads the corresponding module \p module into the current context. The CUDA driver API does not attempt to lazily allocate the resources needed by a module; if the memory for functions and data (constant and global) needed by the module cannot be allocated, ::cuModuleLoad() fails. The file should be a \e cubin file as output by \b nvcc, or a \e PTX file either as output by \b nvcc or handwritten, or a \e fatbin file as output by \b nvcc from toolchain 4.0 or later.
\param module - Returned module \param fname - Filename of module 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_FILE_NOT_FOUND, ::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, ::cuModuleLoadData, ::cuModuleLoadDataEx, ::cuModuleLoadFatBinary, ::cuModuleUnload