Skip to content

build: enable free-threading compatibility#1103

Merged
leofang merged 3 commits into
NVIDIA:mainfrom
cpcloud:cython-ft
Oct 8, 2025
Merged

build: enable free-threading compatibility#1103
leofang merged 3 commits into
NVIDIA:mainfrom
cpcloud:cython-ft

Conversation

@cpcloud

@cpcloud cpcloud commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Enable freethreading_compatibility for cuda-python extension modules

@copy-pr-bot

copy-pr-bot Bot commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cpcloud

cpcloud commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test

@cpcloud cpcloud requested a review from leofang October 8, 2025 13:25
@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown

@cpcloud cpcloud requested a review from kkraus14 October 8, 2025 14:43
Comment thread cuda_bindings/setup.py
@leofang leofang added bug Something isn't working P0 High priority - Must do! cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module labels Oct 8, 2025
@leofang leofang added this to the cuda.core beta 7 milestone Oct 8, 2025

@leofang leofang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like when we build Cython tests, we also have to pass the new flag, e.g.:
https://github.com/NVIDIA/cuda-python/actions/runs/18346151043/job/52261604753?pr=1103#step:26:340

@cpcloud

cpcloud commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

Gah, what is going on with system dependency installation?

@cpcloud

cpcloud commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

Also, I will do a follow up to turn on warnings as errors in pytest.

@leofang

leofang commented Oct 8, 2025

Copy link
Copy Markdown
Member

Gah, what is going on with system dependency installation?

no idea, asking in the runner channel internally

@cpcloud cpcloud requested a review from leofang October 8, 2025 15:29

@leofang leofang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is also cuda_core/tests/cython/build_tests.sh

@cpcloud

cpcloud commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

I also handled build_tests.bat. I think this is ready to go now.

@leofang

leofang commented Oct 8, 2025

Copy link
Copy Markdown
Member

Good catch!

@leofang

leofang commented Oct 8, 2025

Copy link
Copy Markdown
Member

/ok to test 47c13be

@leofang

leofang commented Oct 8, 2025

Copy link
Copy Markdown
Member

I'll check the CI log later and see if the warning is gone.

Also, I will do a follow up to turn on warnings as errors in pytest.

It might be a good idea. Though I am not sure how much work it is. For this particular case, it might be a good idea to also add a naive test like this
https://github.com/numpy/numpy/blob/128d684bdc8d756c63341baab0fd7e4df3fbc09c/tools/wheels/cibw_test_command.sh#L22-L25

@leofang

leofang commented Oct 8, 2025

Copy link
Copy Markdown
Member

btw @cpcloud we'll need to backport the cuda-bindings changes...

@leofang

leofang commented Oct 8, 2025

Copy link
Copy Markdown
Member

I'll check the CI log later and see if the warning is gone.

Looks like they are gone now. I will enable auto-merge.

@leofang leofang enabled auto-merge (squash) October 8, 2025 17:00
@leofang leofang merged commit bd42838 into NVIDIA:main Oct 8, 2025
137 of 139 checks passed
@cpcloud cpcloud deleted the cython-ft branch October 8, 2025 17:27
github-actions Bot pushed a commit that referenced this pull request Nov 10, 2025
Removed preview folders for the following PRs:
- PR #1021
- PR #1034
- PR #1052
- PR #1059
- PR #1069
- PR #1086
- PR #1090
- PR #1096
- PR #1102
- PR #1103
- PR #1106
- PR #1107
- PR #1117
- PR #1133
- PR #1140
- PR #1166
- PR #1174
- PR #1185
- PR #1188
- PR #1191
... and 41 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants