Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Merge SPDL_HOLD_GIL and NB_FREE_THREADED macro (#223)" #241

Merged
merged 2 commits into from
Oct 6, 2024

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Oct 4, 2024

This reverts commit fe21d11.

In Python 3.13 there are three kinds of mode

  1. Built with GIL enabled
  2. Built with GIL disabled, executed with GIL enabled
  3. Built with GIL disabled, executed with GIL disabled

The runtime GIl is determined either by flag -Xgil, env var PYTHON_GIL, or whether a module complied with GIL enabled is imported or not.

So keeping a separate SPDL_HOLD_GIL option, allows to support all the build modes.

This reverts commit fe21d11.

In Python 3.13 there are three kinds of mode

1. Built with GIL enabled
2. Built with GIL disabled, executed with GIL enabled
3. Built with GIL disabled, executed with GIL disabled

The runtime GIl is determined either by flag `-Xgil`, env var `PYTHON_GIL`,
or whether a module complied with GIL enabled is imported or not.

So keeping a separate SPDL_HOLD_GIL option, allows to support
all the build modes.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 4, 2024
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mthrok mthrok merged commit f15be66 into main Oct 6, 2024
23 of 31 checks passed
@mthrok mthrok deleted the HOLD_GIL branch October 6, 2024 21:35
@mthrok mthrok restored the HOLD_GIL branch October 7, 2024 20:00
@mthrok mthrok deleted the HOLD_GIL branch October 7, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants