Skip to content

Commit 355638a

Browse files
committed
docs: add cuda-core FT docs
1 parent db957d1 commit 355638a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cuda_core/docs/source/install.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ and likewise use ``[cu13]`` for CUDA 13.
4242
Note that using ``cuda.core`` with NVRTC installed from PyPI via ``pip install`` requires
4343
``cuda.bindings`` 12.8.0+. Likewise, with nvJitLink it requires 12.8.0+.
4444

45+
Free-threading Build Support
46+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47+
As of cuda-core 0.4.0, wheels for the `free-threaded interpreter`_ are shipped to PyPI.
48+
49+
1. Support for these builds is best effort, due to heavy use of `built-in
50+
modules that are known to be thread-unsafe`_, such as ``ctypes``.
51+
2. For now, you are responsible for making sure that calls into ``cuda-core``
52+
libraries are thread-safe. This is subject to change.
53+
54+
.. _built-in modules that are known to be thread-unsafe: https://github.com/python/cpython/issues/116738
55+
.. _free-threaded interpreter: https://docs.python.org/3/howto/free-threading-python.html
56+
4557
Installing from Conda (conda-forge)
4658
-----------------------------------
4759

0 commit comments

Comments
 (0)