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

update pybind to 2.10.2 #304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

update pybind to 2.10.2 #304

wants to merge 1 commit into from

Conversation

PaliC
Copy link
Contributor

@PaliC PaliC commented Jan 24, 2023

Updated to unblock pytorch/pytorch#91248 (comment) and the refcount debug utils will be useful :)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 24, 2023
@facebook-github-bot
Copy link
Contributor

@PaliC has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Skylion007
Copy link

I opened a new PR to try v2.10.3 which is almost identical but turns the refcount debug utils off by default (until pybind111 2.11) and has some misc fixes.

@Skylion007
Copy link

Hmm so it looks like there is some GIL issues. One common failure case we saw from this is trying store a python object as a global static variable (as the ctor would be called before the interpreter is initialized).

@PaliC
Copy link
Contributor Author

PaliC commented Jan 26, 2023

Gotcha, will enable testing for #305

I'll take a look to see if there's any global static py::objects

@Skylion007
Copy link

Hmm, are there atexit hooks in this codebase? I think there is an open issue with those that needs to be fixed.

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 Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants