You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cuda.core: consolidate driver version query functions (#2040)
* cuda.core: consolidate get_driver_version and get_driver_version_full
Merge the two separate driver version query functions into a single
get_driver_version() that returns (umd_version, kmd_version) — a pair
of version tuples. UMD is a 2-tuple (major, minor) and KMD is a
3-tuple (major, minor, patch). The function now requires NVML.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Remove unused driver import from _system.pyx
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix KMD version test to allow 2-tuple on WSL
Windows driver version strings only have two components, so
nvmlSystemGetDriverVersion returns X.Y on WSL instead of X.Y.Z.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Split into get_user_mode_driver_version and get_kernel_mode_driver_version
Per review feedback, split the consolidated get_driver_version() into
two separate functions so each returns a simple tuple[int, ...]:
- get_user_mode_driver_version(): works with or without NVML (falls
back to cuDriverGetVersion), returns (major, minor)
- get_kernel_mode_driver_version(): requires NVML, returns
(major, minor, patch) or (major, minor) on WSL
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add example version strings to driver version docstrings
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Remove NVML implementation detail from UMD docstring
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Sort __all__ alphabetically in system/__init__.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments