Skip some tests on Blackwell (#9777)

Signed-off-by: Hao Lu <14827759+hlu1@users.noreply.github.com>
This commit is contained in:
hlu1
2025-08-28 20:00:32 -07:00
committed by GitHub
parent 38cd5fb1e0
commit a7d825fccc
3 changed files with 23 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import pytest
import torch
from sgl_kernel import int8_scaled_mm
from utils import is_sm10x
def to_int8(tensor: torch.Tensor) -> torch.Tensor:
@@ -30,6 +31,10 @@ def _test_accuracy_once(M, N, K, with_bias, out_dtype, device):
torch.testing.assert_close(o, o1)
@pytest.mark.skipif(
is_sm10x(),
reason="int8_scaled_mm is only supported on sm90 and lower",
)
@pytest.mark.parametrize("M", [1, 16, 32, 64, 128, 512, 1024, 4096, 8192])
@pytest.mark.parametrize("N", [16, 128, 512, 1024, 4096, 8192, 16384])
@pytest.mark.parametrize("K", [512, 1024, 4096, 8192, 16384])