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
[c10d] Fix extra CUDA context created by barrier (#149144)
Fixes#149119.
In ProcessGroup.hpp, we create a dummy tensor for dispatching. This
requires a correct device index. This PR uses `device_id` given by user
when calling `init_process_group`.
This PR also uses `torch._C._get_accelerator()` to determine the device
type.
Pull Request resolved: #149144
Approved by: https://github.com/XilunWu, https://github.com/fduwjj, https://github.com/cyyever
0 commit comments