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

Added py::mod_gil_not_used() to PYBIND11_MODULE register_jax_dialects #23129

Merged

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Aug 19, 2024

Description:

  • Added py::mod_gil_not_used() to PYBIND11_MODULE for register_jax_dialects.

Dialects are registered on import jax and on module import we can assume that there is a lock held during module initalization and can do thread-unsafe things there, all bets are off after module initialization finishes.

Refs:

Context:

@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Aug 19, 2024
@copybara-service copybara-service bot merged commit b82bcdc into jax-ml:main Aug 20, 2024
16 checks passed
@vfdev-5 vfdev-5 deleted the add-no-gil-pybind-mlir-dialects branch August 20, 2024 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants