Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: align CUDAError docstring with error_handling.rst; drop 3.10 fr…
…om 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).
  • Loading branch information
leofang committed Oct 12, 2026
commit 377a6bb8bf65f5f4c11cb11afdeadebfd8b027f4
4 changes: 2 additions & 2 deletions cuda_bindings/docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ obtain the most recent build, use the following commands:
$ # Install the downloaded wheel:
$ pip install cuda-bindings-python312-cuda13*-linux-64-*/cuda_bindings*.whl[all]

Replace ``python312`` with your Python version (e.g. ``python310``, ``python311``,
``python313``, ``python314``, ``python314t``). For aarch64, replace ``linux-64``
Replace ``python312`` with your Python version (e.g. ``python311``,
``python313``, ``python314``, ``python314t``, ``python315``, ``python315t``). For aarch64, replace ``linux-64``
with ``linux-aarch64``; for Windows, use ``win-64``. Only the current CUDA
major version is built on ``main``; wheels for the prior CUDA major are
published from the corresponding backport branch.
Expand Down
3 changes: 1 addition & 2 deletions cuda_core/cuda/core/_utils/cuda_utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class CUDAError(Exception):
The message names the CUDA error and, when one is known, explains it. A
secondary failure observed while the error was being raised, such as a
failed restoration of the caller's CUDA context, is attached as a note
(``__notes__``) on Python 3.11 and newer and appended to the message on
older interpreters. See the error handling page of the ``cuda.core``
(``__notes__``). See the error handling page of the ``cuda.core``
documentation for the guarantees an exception provides.
"""

Expand Down
3 changes: 1 addition & 2 deletions cuda_core/cuda/core/_utils/cuda_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class CUDAError(Exception):
The message names the CUDA error and, when one is known, explains it. A
secondary failure observed while the error was being raised, such as a
failed restoration of the caller's CUDA context, is attached as a note
(``__notes__``) on Python 3.11 and newer and appended to the message on
older interpreters. See the error handling page of the ``cuda.core``
(``__notes__``). See the error handling page of the ``cuda.core``
documentation for the guarantees an exception provides.
"""

Expand Down
Loading