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 a04dc77 commit bde0ec9Copy full SHA for bde0ec9
torchx/examples/apps/compute_world_size/config/__init__.py
@@ -0,0 +1,5 @@
1
+# Copyright (c) Meta Platforms, Inc. and affiliates.
2
+# All rights reserved.
3
+#
4
+# This source code is licensed under the BSD-style license found in the
5
+# LICENSE file in the root directory of this source tree.
torchx/examples/apps/compute_world_size/module/test/util_test.py
@@ -26,8 +26,8 @@ def test_compute_world_size(self) -> None:
26
"rank": 0,
27
"world_size": 1,
28
"master_addr": "localhost",
29
- # ephemeral port range in linux
30
- "master_port": random.randint(32768, 60999),
+ # specifying 0 as master_port makes TCPStore chose a free random port
+ "master_port": 0,
31
"backend": "gloo",
32
}
33
0 commit comments