Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/distributed/test_c10d_gloo.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
retry_on_connect_failures,
run_tests,
skip_but_pass_in_sandcastle,
skipIfRocm,
TestCase,
)

Expand Down Expand Up @@ -385,6 +386,7 @@ def test_broadcast_stress(self):
inputs = [torch.tensor([i * self.world_size + self.rank]) for i in range(1000)]
self._test_broadcast_stress(inputs)

@skipIfRocm
@skip_if_lt_x_gpu(2)
@requires_gloo()
def test_broadcast_stress_cuda(self):
Expand Down Expand Up @@ -490,6 +492,7 @@ def test_allreduce_stress(self):
inputs = [torch.tensor([i + self.rank]) for i in range(1000)]
self._test_allreduce_stress(inputs)

@skipIfRocm
@skip_if_lt_x_gpu(2)
@requires_gloo()
def test_allreduce_stress_cuda(self):
Expand Down Expand Up @@ -922,6 +925,8 @@ def test_scatter_stress(self):
@skip_but_pass_in_sandcastle(
"Test is flaky, see https://github.com/pytorch/pytorch/issues/15963"
)

@skipIfRocm
@skip_if_lt_x_gpu(2)
@requires_gloo()
def test_scatter_stress_cuda(self):
Expand Down Expand Up @@ -1096,6 +1101,7 @@ def test_gather_stress(self):
inputs = [torch.tensor([i + self.rank]) for i in range(1000)]
self._test_gather_stress(inputs, lambda t: t.clone())

@skipIfRocm
@skip_if_lt_x_gpu(2)
@requires_gloo()
def test_gather_stress_cuda(self):
Expand Down Expand Up @@ -1226,6 +1232,7 @@ def test_allgather_stress(self):
inputs = [torch.tensor([i + self.rank]) for i in range(1000)]
self._test_allgather_stress(inputs, lambda t: t.clone())

@skipIfRocm
@skip_if_lt_x_gpu(2)
@requires_gloo()
def test_allgather_stress_cuda(self):
Expand Down Expand Up @@ -1412,6 +1419,7 @@ def test_reduce_stress(self):
inputs = [torch.tensor([i + self.rank]) for i in range(1000)]
self._test_reduce_stress(inputs)

@skipIfRocm
@skip_if_lt_x_gpu(2)
@requires_gloo()
def test_reduce_stress_cuda(self):
Expand Down