Skip to content

Commit 48d29c8

Browse files
Rong Rongfacebook-github-bot
authored andcommitted
[hotfix] disable problematic cuda tests on rocm builds (#45435)
Summary: Disable the recent 3 cuda tests on amd rocm build/tests Pull Request resolved: #45435 Reviewed By: malfet Differential Revision: D23962881 Pulled By: walterddr fbshipit-source-id: ad4ea1f835b4722cdbdce685806cfd64376cc16f
1 parent e2ffdf4 commit 48d29c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

torch/testing/_internal/distributed/distributed_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ def test_broadcast(self):
753753
"Only Gloo and Nccl backend supports CUDA allReduce",
754754
)
755755
@skip_if_no_gpu
756+
@skip_if_rocm
756757
def test_broadcast_cuda(self):
757758
group, group_id, rank = self._init_global_test()
758759
rank_to_GPU = self._init_multigpu_helper()
@@ -951,6 +952,7 @@ def test_reduce_full_group_max(self):
951952

952953
@skip_if_no_gpu
953954
@require_backend({"gloo", "nccl"})
955+
@skip_if_rocm
954956
def test_all_reduce_result_cuda(self):
955957
group, group_id, rank = self._init_global_test()
956958
rank_to_GPU = self._init_multigpu_helper()
@@ -1917,6 +1919,7 @@ def _test_barrier_helper(
19171919

19181920
@skip_if_no_gpu
19191921
@unittest.skipIf(BACKEND == "mpi", "MPI doesn't supports GPU barrier")
1922+
@skip_if_rocm
19201923
def test_barrier_cuda(self):
19211924
group, group_id, rank = self._init_global_test()
19221925
rank_to_GPU = self._init_multigpu_helper()

0 commit comments

Comments
 (0)