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
Copy file name to clipboardExpand all lines: beginner_source/ddp_series_multigpu.rst
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -78,15 +78,15 @@ Imports
78
78
Constructing the process group
79
79
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
80
81
+
- First, before initializing the group process, call `set_device <https://pytorch.org/docs/stable/generated/torch.cuda.set_device.html?highlight=set_device#torch.cuda.set_device>`__,
82
+
which sets the default GPU for each process. This is important to prevent hangs or excessive memory utilization on `GPU:0`
81
83
- The process group can be initialized by TCP (default) or from a
0 commit comments