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

using c10::intrusive_ptr<c10d::ProcessGroup> as argument from python #13

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

houqi
Copy link
Collaborator

@houqi houqi commented Jul 2, 2024

the problem

related to #11

image

Why

c10d::ProcessGroup as a c10::intrusive_ptr_target can be copied or moved, but with refcount to 0, which causes c10d::ProcessGroup release_resources after the first call.

Fix

using c10::intrusive_ptrc10d::ProcessGroup as argument instead.

@houqi houqi merged commit cc8a773 into bytedance:main Jul 4, 2024
@houqi
Copy link
Collaborator Author

houqi commented Jul 4, 2024

close #11

@houqi houqi deleted the bugfix/qhou/fix_c10d_pg_intrusive_ptr branch July 4, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant