Skip to content

Commit d963181

Browse files
authored
[Benchmark CI] Use equally-spaced-k mode to sample input shapes (#861)
1 parent e500e91 commit d963181

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

benchmarks/run.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,14 @@ def run_kernel_variants(
787787
file=sys.stderr,
788788
)
789789

790+
# Use equally-spaced-k input sample mode if not otherwise specified
791+
if "--input-sample-mode" not in tritonbench_args:
792+
tritonbench_args.extend(["--input-sample-mode", "equally-spaced-k"])
793+
print(
794+
f"Using input-sample-mode=equally-spaced-k for {operator_name}",
795+
file=sys.stderr,
796+
)
797+
790798
# Parse known args and collect unknown ones for operator
791799
tb_args, unknown_args = tb_parser.parse_known_args(tritonbench_args)
792800

0 commit comments

Comments
 (0)