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
7466180f
Commit
7466180f
authored
Feb 09, 2021
by
Sengxian
Browse files
Skip test when there are no enough gpu
parent
dad99892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/test_ddp.py
tests/test_ddp.py
+2
-0
No files found.
tests/test_ddp.py
View file @
7466180f
...
@@ -11,6 +11,8 @@ from test_numerical import test_fmoe_linear as _test_fmoe_linear
...
@@ -11,6 +11,8 @@ from test_numerical import test_fmoe_linear as _test_fmoe_linear
def
_run_distributed
(
func
,
world_size
,
args
:
Dict
):
def
_run_distributed
(
func
,
world_size
,
args
:
Dict
):
if
torch
.
cuda
.
device_count
()
<
world_size
:
pytest
.
skip
(
"No enough GPU"
)
import
subprocess
import
subprocess
import
os
import
os
...
...
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