Skip to content

Commit 9636794

Browse files
committed
num_stages change
1 parent 8382e76 commit 9636794

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmarks/triton_kernels_benchmark/gemm_benchmark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
TRANSPOSE_B = os.getenv('TRANSPOSE_B', '0') == '1'
2424
use_xetla = not (TRANSPOSE_A or TRANSPOSE_B)
2525

26+
num_stages_range = [1, 2, 3] if os.getenv('TRITON_INTEL_ADVANCED_PATH', '0') == '1' else [3, 4]
27+
2628

2729
@triton.autotune(
2830
configs=[
2931
triton.Config(
3032
{'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 32, 'GROUP_SIZE_M': 4, 'grf_mode': 'large'},
31-
num_stages=s, num_warps=32) for s in [1, 2, 3]
33+
num_stages=s, num_warps=32) for s in num_stages_range
3234
] + [
3335
triton.Config(
3436
{'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 32, 'GROUP_SIZE_M': 4, 'grf_mode': 'large'},

0 commit comments

Comments
 (0)