cuda.core.system.get_driver_version#

cuda.core.system.get_driver_version() tuple[tuple[int, ...], tuple[int, ...]]#

Get the driver version.

Returns both the user-mode (UMD / CUDA) driver version and the kernel-mode (KMD / GPU) driver version.

Returns:

version(umd_version, kmd_version) where umd_version is typically a 2-tuple (MAJOR, MINOR) and kmd_version is typically a 3-tuple (MAJOR, MINOR, PATCH) (2-tuple on WSL).

Return type:

tuple[tuple[int, …], tuple[int, …]]

Raises:

RuntimeError – If the NVML library is not available.