diff --git a/cuda_bindings/cuda/bindings/_version.py b/cuda_bindings/cuda/bindings/_version.py index 00adf6d46e..84ffc67e51 100644 --- a/cuda_bindings/cuda/bindings/_version.py +++ b/cuda_bindings/cuda/bindings/_version.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -__version__ = "13.0.1" +__version__ = "13.0.2" diff --git a/cuda_bindings/docs/source/release/12.9.X-notes.rst b/cuda_bindings/docs/source/release/12.9.3-notes.rst similarity index 90% rename from cuda_bindings/docs/source/release/12.9.X-notes.rst rename to cuda_bindings/docs/source/release/12.9.3-notes.rst index 7a4713a89b..52a73b37a4 100644 --- a/cuda_bindings/docs/source/release/12.9.X-notes.rst +++ b/cuda_bindings/docs/source/release/12.9.3-notes.rst @@ -16,7 +16,7 @@ Highlights * The Python overhead of calling functions in CUDA bindings in ``driver``, ``runtime`` and ``nvrtc`` has been reduced by approximately 30%. * Updated the ``cuda.bindings.runtime`` module to statically link against the CUDA Runtime library from CUDA Toolkit 12.9.1. * ``cyruntime.getLocalRuntimeVersion`` now uses pathfinder to find the CUDA runtime. - +* Experimental free-threaded builds are available on PyPI. More details are available in our :ref:`support` docs. Known issues ------------ diff --git a/cuda_bindings/docs/source/release/13.X.Y-notes.rst b/cuda_bindings/docs/source/release/13.0.2-notes.rst similarity index 94% rename from cuda_bindings/docs/source/release/13.X.Y-notes.rst rename to cuda_bindings/docs/source/release/13.0.2-notes.rst index 35e40c4be6..9808682b41 100644 --- a/cuda_bindings/docs/source/release/13.X.Y-notes.rst +++ b/cuda_bindings/docs/source/release/13.0.2-notes.rst @@ -19,6 +19,7 @@ Highlights * On Windows, the ``pywin32`` dependency has been removed. The necessary Windows API functions are now accessed directly. * Updated the ``cuda.bindings.runtime`` module to statically link against the CUDA Runtime library from CUDA Toolkit 13.0.1. * ``cyruntime.getLocalRuntimeVersion`` now uses pathfinder to find the CUDA runtime. +* Experimental free-threaded builds are available on PyPI. More details are available in our :ref:`support` docs. Bug fixes diff --git a/cuda_bindings/docs/source/support.rst b/cuda_bindings/docs/source/support.rst index f028361173..a34a5c49e2 100644 --- a/cuda_bindings/docs/source/support.rst +++ b/cuda_bindings/docs/source/support.rst @@ -1,6 +1,8 @@ .. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. .. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +.. _support: + ``cuda.bindings`` Support Policy ================================ @@ -23,9 +25,20 @@ The ``cuda.bindings`` module has the following support policy: module could require Cython layer users to rebuild their projects and update their pinning to this module. +Free-threading Build Support +---------------------------- +As of cuda-bindings 13.0.2/12.9.3, wheels for the `free-threaded interpreter`_ are shipped to PyPI. + +1. Support for these builds is best effort, due to heavy use of `built-in + modules that are known to be thread-unsafe`_, such as ``ctypes``. +2. For now, you are responsible for making sure that calls into ``cuda-bindings`` + libraries are thread-safe. This is subject to change. + The NVIDIA CUDA Python team reserves rights to amend the above support policy. Any major changes, however, will be announced to the users in advance. .. _CUDA minor version compatibility: https://docs.nvidia.com/deploy/cuda-compatibility/#minor-version-compatibility .. _CPython EOL schedule: https://devguide.python.org/versions/ +.. _built-in modules that are known to be thread-unsafe: https://github.com/python/cpython/issues/116738 +.. _free-threaded interpreter: https://docs.python.org/3/howto/free-threading-python.html diff --git a/cuda_core/docs/source/install.rst b/cuda_core/docs/source/install.rst index e864b042f9..68ee4176df 100644 --- a/cuda_core/docs/source/install.rst +++ b/cuda_core/docs/source/install.rst @@ -42,6 +42,18 @@ and likewise use ``[cu13]`` for CUDA 13. Note that using ``cuda.core`` with NVRTC installed from PyPI via ``pip install`` requires ``cuda.bindings`` 12.8.0+. Likewise, with nvJitLink it requires 12.8.0+. +Free-threading Build Support +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +As of cuda-core 0.4.0, wheels for the `free-threaded interpreter`_ are shipped to PyPI. + +1. Support for these builds is best effort, due to heavy use of `built-in + modules that are known to be thread-unsafe`_, such as ``ctypes``. +2. For now, you are responsible for making sure that calls into ``cuda-core`` + libraries are thread-safe. This is subject to change. + +.. _built-in modules that are known to be thread-unsafe: https://github.com/python/cpython/issues/116738 +.. _free-threaded interpreter: https://docs.python.org/3/howto/free-threading-python.html + Installing from Conda (conda-forge) -----------------------------------