Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
717f02f3
Commit
717f02f3
authored
May 27, 2025
by
zhanggzh
Browse files
change test_ddp src code
parent
5b602850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/test_ddp.py
tests/test_ddp.py
+1
-0
No files found.
tests/test_ddp.py
View file @
717f02f3
...
...
@@ -44,6 +44,7 @@ def _run_distributed(func, world_size, args: Dict, script=__file__, env=dict()):
for
i
in
range
(
world_size
):
env
[
"OMPI_COMM_WORLD_RANK"
]
=
str
(
i
)
env
[
"CUDA_VISIBLE_DEVICES"
]
=
str
(
i
%
device_count
)
p
=
subprocess
.
Popen
(
[
sys
.
executable
,
script
,
func
,
json
.
dumps
(
args
)],
stdout
=
subprocess
.
PIPE
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment