Skip to content

Commit 360945c

Browse files
committed
test/prototype/mx_formats/test_kernels.py
1 parent 06f9fed commit 360945c

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
@@ -528,7 +528,7 @@ def test_rearrange(shape):
528528

529529

530530
@pytest.mark.skipif(
531-
torch.cuda.is_available() and not is_sm_at_least_100(),
531+
not is_sm_at_least_100(),
532532
reason="MXFP8 requires CUDA capability 10.0 or greater",
533533
)
534534
@pytest.mark.parametrize("M", (32, 256))
@@ -576,7 +576,7 @@ def test_cuda_mx_dim1_numerics(M, K, input_dtype, scaling_mode):
576576

577577

578578
@pytest.mark.skipif(
579-
torch.cuda.is_available() and not is_sm_at_least_100(),
579+
not is_sm_at_least_100(),
580580
reason="MXFP8 requires CUDA capability 10.0 or greater",
581581
)
582582
def test_cuda_mx_dim0_not_supported():
@@ -600,7 +600,7 @@ def test_cuda_mx_dim0_not_supported():
600600

601601

602602
@pytest.mark.skipif(
603-
torch.cuda.is_available() and not is_sm_at_least_100(),
603+
not is_sm_at_least_100(),
604604
reason="MXFP8 requires CUDA capability 10.0 or greater",
605605
)
606606
def test_cuda_mx_dim1_invalid_block_size():

0 commit comments

Comments
 (0)