Skip to content

Commit 2d7c237

Browse files
authored
Ignore passed in config when force autotune is turned on (#1060)
1 parent 62a736c commit 2d7c237

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

helion/runtime/kernel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ def _implicit_config(self) -> Config | None:
580580
configs = self.kernel.configs
581581
if self._config is not None:
582582
return self._config
583+
if self.settings.force_autotune:
584+
# If force autotune is enabled, do not pick an implicit config
585+
return None
583586
if len(configs) == 1:
584587
return configs[0]
585588
if len(configs) == 0 and self.kernel.settings.autotune_effort == "none":

0 commit comments

Comments
 (0)