Skip to content

Commit 5dd2ae3

Browse files
authored
skip full autotune if configs are provided (#670)
1 parent f791da0 commit 5dd2ae3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmarks/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,9 @@ def helion_method(
626626
# Force autotuning unless HELION_USE_DEFAULT_CONFIG=1 is set
627627
# This ensures we run autotuning even if the kernel has pre-specified configs
628628
if os.environ.get("HELION_USE_DEFAULT_CONFIG", "0") != "1":
629-
attr.settings.force_autotune = True
629+
# Only force full autotuning if no configs are provided
630+
if not attr.configs:
631+
attr.settings.force_autotune = True
630632
attr.settings.static_shapes = True
631633

632634
if isinstance(kfunc, Kernel):

0 commit comments

Comments
 (0)