Skip to content

Commit 0c3ef6b

Browse files
author
tsingmicro-public-e
committed
[BACKEND] fix test, rm benchmark.select_cpu_backend code
1 parent e3c83f6 commit 0c3ef6b

43 files changed

Lines changed: 4 additions & 52 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

third_party/tsingmicro/examples/bare_matmul.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def bench_matmul(N, provider):
4545

4646

4747
if __name__ == "__main__":
48-
# benchmark.select_cpu_backend()
4948
for provider in ['test']:
5049
bench_matmul(16, provider)
5150
# for X in [2**i for i in range(7, 10, 1)]:

third_party/tsingmicro/examples/bare_matmul_acc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def bench_matmul(N, provider):
4141

4242

4343
if __name__ == "__main__":
44-
benchmark.select_cpu_backend()
4544
for X in [2**i for i in range(7, 10, 1)]:
4645
for provider in ['test', 'torch', 'triton']:
4746
bench_matmul(X, provider)

third_party/tsingmicro/examples/bare_matmul_autotune.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@ def bench_matmul(M, N, K):
6666

6767

6868
if __name__ == "__main__":
69-
# benchmark.select_cpu_backend()
7069
bench_matmul(16, 16, 16)

third_party/tsingmicro/examples/mult_ir.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def bench_matmul(a, b):
182182

183183

184184
if __name__ == "__main__":
185-
# benchmark.select_cpu_backend()
186185
M = 1024
187186
K = 1024
188187
N = 1024

third_party/tsingmicro/examples/profile_matmul.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def bench_matmul(M, N, K, provider):
187187

188188

189189
if __name__ == "__main__":
190-
# benchmark.select_cpu_backend()
191190
bench_matmul(4096, 4096, 4096, 'triton')
192191
# for X in [128 * i for i in range(2, 7)]:
193192
# for provider in ['torch', 'triton']:

third_party/tsingmicro/examples/test_argmax2d.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import pytest
55
import benchmark
66

7-
benchmark.select_cpu_backend()
8-
97

108
@triton.jit
119
def argmax_kernel_2d(

third_party/tsingmicro/examples/test_bare_matmul.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def test_bare_matmul(N, dtype, device='cpu'):
5858

5959

6060
if __name__ == "__main__":
61-
benchmark.select_cpu_backend()
6261
test_bare_matmul(128, torch.float32)
6362
# for X in [2**i for i in range(7, 10, 1)]:
6463
# for provider in ['test', 'torch', 'triton']:

third_party/tsingmicro/examples/test_bare_matmul_acc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def test_bare_matmul_acc(N, dtype, device='cpu'):
5959

6060

6161
if __name__ == "__main__":
62-
benchmark.select_cpu_backend()
6362
for X in [2**i for i in range(7, 10, 1)]:
6463
for provider in ['test', 'torch', 'triton']:
6564
bench_matmul(X, provider)

third_party/tsingmicro/examples/test_cdiv.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,5 @@ def benchmark_cdiv_triton(size, dtype, provider):
101101

102102

103103
if __name__ == "__main__":
104-
# benchmark.select_cpu_backend()
105104
for X in [2**i for i in range(22, 25, 1)]:
106105
benchmark_cdiv_triton(X, torch.int32, "triton")

third_party/tsingmicro/examples/test_ceil.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,5 @@ def benchmark_ceil_triton(size, dtype, provider):
9191

9292

9393
if __name__ == "__main__":
94-
benchmark.select_cpu_backend()
9594
for size in [2**i for i in range(22, 25, 1)]:
9695
benchmark_ceil_triton(size, torch.float32, provider="triton")

0 commit comments

Comments
 (0)