cuda.bindings._v2.driver.module_load#
- cuda.bindings._v2.driver.module_load(fname) intptr_t#
Loads a compute module.
Takes a filename
fnameand loads the corresponding modulemoduleinto 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,module_load()fails. The file should be acubinfile as output by nvcc, or aPTXfile either as output by nvcc or handwritten, or afatbinfile as output by nvcc from toolchain 4.0 or later, or aTileIR file.- Parameters:
fname (bytes) – Filename of module to load.
- Returns:
Returned module.
- Return type:
intptr_t
See also
cuModuleLoad