cuda.bindings._v2.driver.init#
- cuda.bindings._v2.driver.init(unsigned int flags)#
Initialize the CUDA driver API Initializes the driver API and must be called before any other function from the driver API in the current process. Currently, the
flagsparameter must be 0. Ifinit()has not been called, any function from the driver API will returnCUDA_ERROR_NOT_INITIALIZED.Note: cuInit preloads various libraries needed for JIT compilation. To opt-out of this behavior, set the environment variable CUDA_FORCE_PRELOAD_LIBRARIES=0. CUDA will lazily load JIT libraries as needed. To disable JIT entirely, set the environment variable CUDA_DISABLE_JIT=1.
- Parameters:
flags (unsigned int) – Initialization flag for CUDA.
See also
cuInit