Skip to content

Commit 35d02df

Browse files
jaglinuxjeffdaily
andauthored
Update torch/testing/_internal/distributed/distributed_test.py
Co-authored-by: Jeff Daily <jeff.daily@amd.com>
1 parent 237ab81 commit 35d02df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

torch/testing/_internal/distributed/distributed_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,8 @@ def _init_multigpu_helper(self):
364364
if BACKEND == "nccl":
365365
apply_hack_for_nccl()
366366

367-
""" If rank is lesser than or equal to number of available GPU's
368-
then each rank can be mapped to corresponding GPU.
369-
"""
367+
# If rank is lesser than or equal to number of available GPU's
368+
# then each rank can be mapped to corresponding GPU.
370369
nGPUs_per_process = 1
371370
if world_size > nGPUs:
372371
nGPUs_per_process = nGPUs // world_size

0 commit comments

Comments
 (0)