Skip to content

Commit aec1039

Browse files
committed
skip rocm tests
1 parent cc3f9d9 commit aec1039

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

test/dtypes/test_affine_quantized_tensor_parallel.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unittest
22

3+
import pytest
34
import torch
45
from torch.distributed._tensor import DeviceMesh, DTensor, Replicate, Shard
56
from torch.testing._internal import common_utils
@@ -26,6 +27,9 @@
2627
except ModuleNotFoundError:
2728
has_gemlite = False
2829

30+
if torch.version.hip is not None:
31+
pytest.skip("Skipping the test in ROCm", allow_module_level=True)
32+
2933

3034
class TestAffineQuantizedTensorParallel(DTensorTestBase):
3135
"""Basic test case for tensor subclasses"""

test/test_ops.py

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
pack_tinygemm_scales_and_zeros,
3737
)
3838

39+
if torch.version.hip is not None:
40+
pytest.skip("Skipping the test in ROCm", allow_module_level=True)
41+
3942

4043
class TestOps(TestCase):
4144
def _create_floatx_inputs(

test/test_s8s4_linear_cutlass.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
)
2828
)
2929

30+
if torch.version.hip is not None:
31+
pytest.skip("Skipping the test in ROCm", allow_module_level=True)
32+
3033

3134
@pytest.mark.skipif(not torch.cuda.is_available(), reason="CUDA not available")
3235
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)