Skip to content

Commit cf903b5

Browse files
committed
[CI] skip sparse tensor core related tests as only sm90 is supported
1 parent a9dcfc3 commit cf903b5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

examples/sparse_tensorcore/test_example_sparse_tensorcore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Copyright (c) Tile-AI Corporation.
22
# Licensed under the MIT License.
33
import tilelang.testing
4-
4+
import tilelang
55
import tilelang_example_sparse_tensorcore
66

77

88
@tilelang.testing.requires_cuda
9+
@tilelang.testing.requires_cuda_compute_version(9, 0)
910
def test_tilelang_example_sparse_tensorcore():
1011
tilelang_example_sparse_tensorcore.main()
1112

testing/python/tilelibrary/test_tilelang_tilelibrary_gemm_sp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def _matmul(A, B):
210210
print("pass")
211211

212212

213+
@tilelang.testing.requires_cuda
214+
@tilelang.testing.requires_cuda_compute_version(9, 0)
213215
def test_gemm_sp():
214216
run_gemm_sp(512, 1024, 768, "float16", "float16", "float32", 64, 64, 32, 2, 128)
215217
run_gemm_sp(512, 1024, 768, "float16", "float16", "float32", 64, 64, 32, 0, 256)

testing/python/utils/test_compress_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import torch
2+
import tilelang
23
from tilelang.utils.sparse import compress_sm90
34

45

@@ -32,6 +33,8 @@ def _test_compress_sm90(M, K, block_k, dtype):
3233
A_sparse, E = compress_sm90(A, block_k)
3334

3435

36+
@tilelang.testing.requires_cuda
37+
@tilelang.testing.requires_cuda_compute_version(9, 0)
3538
def test_compress_sm90():
3639
_test_compress_sm90(1024, 1024, 128, torch.float16)
3740
_test_compress_sm90(1024, 1024, 64, torch.float16)

0 commit comments

Comments
 (0)