Skip to content

Commit e3d0ec9

Browse files
authored
[AMD] [Testing] Skip routing tests on AMD (#7166)
All of the routing tests are currently broken on AMD. They fail because some of the reference checks are wrong. This disables the tests until a proper fix.
1 parent cf9ebd1 commit e3d0ec9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/triton_kernels/tests/test_routing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from triton_kernels.routing import routing, routing_torch
44
from triton_kernels.testing import assert_close
55
from triton_kernels.testing import assert_equal
6+
from triton_kernels.target_info import is_hip
67

78

89
def init_data(n_tokens, n_expts_tot, dtype=torch.float32, device="cuda"):
@@ -18,6 +19,7 @@ def init_data(n_tokens, n_expts_tot, dtype=torch.float32, device="cuda"):
1819
@pytest.mark.parametrize("n_expts_tot, n_expts_act", [(128, 32), (1500, 8)])
1920
@pytest.mark.parametrize("use_expt_indx", [False, True])
2021
@pytest.mark.parametrize("sm_first", [True, False])
22+
@pytest.mark.skipif(is_hip, reason="Tests are currently broken on AMD")
2123
def test_op(n_tokens_pad, n_tokens_raw, n_expts_tot, n_expts_act, sm_first, use_expt_indx, device):
2224
torch.manual_seed(2)
2325
if n_tokens_raw is None:

0 commit comments

Comments
 (0)