Skip to content

Commit fa1bb39

Browse files
committed
spawn
1 parent 05a4325 commit fa1bb39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/models/test_gpu.py

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def assert_pred_same():
130130
trainer.fit(model)
131131

132132

133+
@pytest.mark.spawn
133134
@pytest.mark.skipif(torch.cuda.device_count() < 2, reason="test requires multi-GPU machine")
134135
def test_multi_gpu_none_backend(tmpdir):
135136
"""Make sure when using multiple GPUs the user can't use `distributed_backend = None`."""

0 commit comments

Comments
 (0)