Closed houqi closed 4 months ago
related to https://github.com/bytedance/flux/issues/11
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.
using c10::intrusive_ptr as argument instead.
close #11
the problem
related to https://github.com/bytedance/flux/issues/11
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_ptr as argument instead.