Skip to content

Commit 25fc570

Browse files
authored
Add HELION_SKIP_CACHE env (#653)
1 parent 7d09e0a commit 25fc570

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

helion/autotuner/base_cache.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ def put(self, config: Config) -> None:
154154
raise NotImplementedError
155155

156156
def autotune(self) -> Config:
157+
if os.environ.get("HELION_SKIP_CACHE", "") not in {"", "0", "false", "False"}:
158+
return self.autotuner.autotune()
159+
157160
if (config := self.get()) is not None:
158161
counters["autotune"]["cache_hit"] += 1
159162
log.debug("cache hit: %s", str(config))

0 commit comments

Comments
 (0)