Skip to content

Commit b77301f

Browse files
authored
[Benchmark CI] Use --non-square flag for gemm (#938)
1 parent 6b044c4 commit b77301f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

benchmarks/run.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class RunResult:
255255
"matmul_tritonbench",
256256
{
257257
"num_inputs": 6, # gemm takes long time on Benchmark CI, so use fewer inputs instead.
258+
"non_square": "", # use --non-square shapes
258259
},
259260
),
260261
"gemm-bwd": (
@@ -795,7 +796,12 @@ def run_kernel_variants(
795796
for arg in tritonbench_args
796797
)
797798
if not already_specified:
798-
tritonbench_args.extend([arg_flag, str(arg_value)])
799+
if arg_value == "":
800+
# Boolean flag - just add the flag, no value
801+
tritonbench_args.append(arg_flag)
802+
else:
803+
# Regular flag with value
804+
tritonbench_args.extend([arg_flag, str(arg_value)])
799805
operator_custom_args_applied[arg_name] = arg_value
800806
print(
801807
f"Applying custom args for {operator_name}: {operator_custom_args_applied}",

0 commit comments

Comments
 (0)