Skip to content

Commit 427da19

Browse files
committed
Add HELION_SKIP_CACHE env
stack-info: PR: #653, branch: jansel/stack/145
1 parent bdbc1ec commit 427da19

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)