Skip to content

Commit 4c7cd2c

Browse files
leofangclaude
andcommitted
Add example version strings to driver version docstrings
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ebd2229 commit 4c7cd2c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

cuda_core/cuda/core/system/_system.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_user_mode_driver_version() -> tuple[int, ...]:
4141
Returns
4242
-------
4343
version : tuple[int, ...]
44-
A 2-tuple ``(MAJOR, MINOR)``.
44+
A 2-tuple ``(MAJOR, MINOR)``, e.g. ``(13, 0)`` for CUDA 13.0.
4545
"""
4646
cdef int v
4747
if CUDA_BINDINGS_NVML_IS_COMPATIBLE:
@@ -54,12 +54,13 @@ def get_user_mode_driver_version() -> tuple[int, ...]:
5454

5555
def get_kernel_mode_driver_version() -> tuple[int, ...]:
5656
"""
57-
Get the kernel-mode (KMD / GPU) driver version.
57+
Get the kernel-mode (KMD / GPU) driver version, e.g. 580.65.06.
5858

5959
Returns
6060
-------
6161
version : tuple[int, ...]
62-
Typically a 3-tuple ``(MAJOR, MINOR, PATCH)`` (2-tuple on WSL).
62+
Typically a 3-tuple ``(MAJOR, MINOR, PATCH)``
63+
(2-tuple on WSL), e.g. ``(580, 65, 6)``.
6364

6465
Raises
6566
------

0 commit comments

Comments
 (0)