Skip to content

Commit 377a6bb

Browse files
committed
docs: align CUDAError docstring with error_handling.rst; drop 3.10 from install.rst example
Per Andy's PR review (#3080). The CUDAError docstring in both the .pyi and the .pyx said the detail is 'appended to the message on older interpreters', which contradicts the error_handling.rst edit in this PR. Also drop 'python310' from the cuda_bindings nightly-wheel example in install.rst (and add 3.15 variants).
1 parent f961340 commit 377a6bb

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎cuda_bindings/docs/source/install.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ obtain the most recent build, use the following commands:
106106
$ # Install the downloaded wheel:
107107
$ pip install cuda-bindings-python312-cuda13*-linux-64-*/cuda_bindings*.whl[all]
108108
109-
Replace ``python312`` with your Python version (e.g. ``python310``, ``python311``,
110-
``python313``, ``python314``, ``python314t``). For aarch64, replace ``linux-64``
109+
Replace ``python312`` with your Python version (e.g. ``python311``,
110+
``python313``, ``python314``, ``python314t``, ``python315``, ``python315t``). For aarch64, replace ``linux-64``
111111
with ``linux-aarch64``; for Windows, use ``win-64``. Only the current CUDA
112112
major version is built on ``main``; wheels for the prior CUDA major are
113113
published from the corresponding backport branch.

‎cuda_core/cuda/core/_utils/cuda_utils.pyi‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class CUDAError(Exception):
1818
The message names the CUDA error and, when one is known, explains it. A
1919
secondary failure observed while the error was being raised, such as a
2020
failed restoration of the caller's CUDA context, is attached as a note
21-
(``__notes__``) on Python 3.11 and newer and appended to the message on
22-
older interpreters. See the error handling page of the ``cuda.core``
21+
(``__notes__``). See the error handling page of the ``cuda.core``
2322
documentation for the guarantees an exception provides.
2423
"""
2524

‎cuda_core/cuda/core/_utils/cuda_utils.pyx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ class CUDAError(Exception):
4040
The message names the CUDA error and, when one is known, explains it. A
4141
secondary failure observed while the error was being raised, such as a
4242
failed restoration of the caller's CUDA context, is attached as a note
43-
(``__notes__``) on Python 3.11 and newer and appended to the message on
44-
older interpreters. See the error handling page of the ``cuda.core``
43+
(``__notes__``). See the error handling page of the ``cuda.core``
4544
documentation for the guarantees an exception provides.
4645
"""
4746

0 commit comments

Comments
 (0)