Skip to content

Commit 8d57626

Browse files
committed
test/prototype/mx_formats/test_kernels.py
1 parent b9bd0de commit 8d57626

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/prototype/mx_formats/test_kernels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def test_rearrange(shape):
561561

562562

563563
@pytest.mark.skipif(
564-
torch.cuda.is_available() and not is_sm_at_least_100(),
564+
not is_sm_at_least_100(),
565565
reason="MXFP8 requires CUDA capability 10.0 or greater",
566566
)
567567
@pytest.mark.parametrize("M", (32, 64, 2048))
@@ -609,7 +609,7 @@ def test_cuda_mx_dim1_numerics(M, K, input_dtype, scaling_mode):
609609

610610

611611
@pytest.mark.skipif(
612-
torch.cuda.is_available() and not is_sm_at_least_100(),
612+
not is_sm_at_least_100(),
613613
reason="MXFP8 requires CUDA capability 10.0 or greater",
614614
)
615615
def test_cuda_mx_dim0_not_supported():
@@ -633,7 +633,7 @@ def test_cuda_mx_dim0_not_supported():
633633

634634

635635
@pytest.mark.skipif(
636-
torch.cuda.is_available() and not is_sm_at_least_100(),
636+
not is_sm_at_least_100(),
637637
reason="MXFP8 requires CUDA capability 10.0 or greater",
638638
)
639639
def test_cuda_mx_dim1_invalid_block_size():

0 commit comments

Comments
 (0)