We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec8a172 commit 8c246baCopy full SHA for 8c246ba
imagenet/main.py
@@ -106,8 +106,11 @@ def main():
106
107
if torch.cuda.is_available():
108
ngpus_per_node = torch.cuda.device_count()
109
+ if ngpus_per_node == 1 and args.dist_backend == "nccl":
110
+ warnings.warn("nccl backend >=2.5 requires GPU count>1, see https://github.com/NVIDIA/nccl/issues/103 perhaps use 'gloo'")
111
else:
112
ngpus_per_node = 1
113
+
114
if args.multiprocessing_distributed:
115
# Since we have ngpus_per_node processes per node, the total world_size
116
# needs to be adjusted accordingly
0 commit comments