You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make CtranExRequestImpl.bcast.complete a shared_ptr
Summary:
Change `std::atomic_flag complete` in `CtranExRequestImpl.bcast` to be a `std::shared_ptr<std::atomic_flag>` instead of a raw `std::atomic_flag`.
This simplifies the ownership model and removes the need for the no-op deleter trick when creating shared_ptrs in the ncclx wrappers. The `CtranExRequestImpl` now owns the flag directly as a `shared_ptr`, and this can be passed to `submitHost` without any special handling.
This change maintains the same functionality while providing cleaner code and a more intuitive ownership model where the `CtranExRequestImpl` owns the completion flag.
Reviewed By: Regina8023
Differential Revision: D86548364
fbshipit-source-id: 43e1edf1e0640075da8da0f5a19098bfa6995ed0
0 commit comments