Skip to content

Commit defff72

Browse files
BLOrange-AMDdnikolaev-amd
authored andcommitted
[rocm6.4_internal_testing] Skip non_standard_bool_values tests (#1880)
Fixes SWDEV-509757 (cherry picked from commit 80b4c41)
1 parent 08ceb35 commit defff72

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_ops.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,20 @@ def test_complex_half_reference_testing(self, device, dtype, op):
14221422

14231423
@ops(op_db, allowed_dtypes=(torch.bool,))
14241424
def test_non_standard_bool_values(self, device, dtype, op):
1425+
if TEST_WITH_ROCM and "cuda" in device:
1426+
rocm_blocklist = [
1427+
"test_non_standard_bool_values_masked_scatter_cuda_bool",
1428+
"test_non_standard_bool_values_nn_functional_unfold_cuda_bool", # only in rocm6.4_internal_testing
1429+
"test_non_standard_bool_values_put_cuda_bool",
1430+
"test_non_standard_bool_values_scatter_add_cuda_bool",
1431+
"test_non_standard_bool_values_scatter_cuda_bool",
1432+
"test_non_standard_bool_values_scatter_reduce_sum_cuda_bool",
1433+
"test_non_standard_bool_values_tril_cuda_bool",
1434+
"test_non_standard_bool_values_triu_cuda_bool",
1435+
]
1436+
if self._testMethodName in rocm_blocklist:
1437+
self.skipTest("Failed on ROCm")
1438+
14251439
# Test boolean values other than 0x00 and 0x01 (gh-54789)
14261440
def convert_boolean_tensors(x):
14271441
if not isinstance(x, torch.Tensor) or x.dtype != torch.bool:

0 commit comments

Comments
 (0)