Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cuda_bindings/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def do_cythonize(extensions):
return cythonize(
extensions,
nthreads=nthreads,
compiler_directives=dict(language_level=3, embedsignature=True, binding=True),
compiler_directives=dict(language_level=3, embedsignature=True, binding=True, freethreading_compatible=True),
**extra_cythonize_kwargs,
)

Expand Down
2 changes: 1 addition & 1 deletion cuda_bindings/tests/cython/build_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ REM SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE

setlocal
set CL=%CL% /I"%CUDA_HOME%\include"
cythonize -3 -i %~dp0test_*.pyx
cythonize -3 -i -Xfreethreading_compatible=True %~dp0test_*.pyx
endlocal
2 changes: 1 addition & 1 deletion cuda_bindings/tests/cython/build_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ else
exit 1
fi

cythonize -3 -i ${SCRIPTPATH}/test_*.pyx
cythonize -3 -i -Xfreethreading_compatible=True ${SCRIPTPATH}/test_*.pyx
2 changes: 1 addition & 1 deletion cuda_core/build_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_cuda_paths():
verbose=True,
language_level=3,
nthreads=nthreads,
compiler_directives={"embedsignature": True, "warn.deprecated.IF": False},
compiler_directives={"embedsignature": True, "warn.deprecated.IF": False, "freethreading_compatible": True},
compile_time_env=compile_time_env,
)

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cu12 = ["cuda-bindings[all]==12.*"]
cu13 = ["cuda-bindings[all]==13.*"]

[dependency-groups]
test = ["cython>=3.0", "setuptools", "pytest>=6.2.4"]
test = ["cython>=3.1", "setuptools", "pytest>=6.2.4"]
test-cu12 = ["cuda-core[test]", "cupy-cuda12x; python_version < '3.14'", "cuda-toolkit[cudart]==12.*"] # runtime headers needed by CuPy
test-cu13 = ["cuda-core[test]", "cupy-cuda13x; python_version < '3.14'", "cuda-toolkit[cudart]==13.*"] # runtime headers needed by CuPy
# free threaded build, cupy doesn't support free-threaded builds yet, so avoid installing it for now
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/cython/build_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ else
exit 1
fi

cythonize -3 -i ${SCRIPTPATH}/test_*.pyx
cythonize -3 -i -Xfreethreading_compatible=True ${SCRIPTPATH}/test_*.pyx
Loading