Skip to content

Commit e8bc90c

Browse files
authored
[frontend] Disable cache when interpreter is enabled (#8499)
When `TRITON_INTERPRET=1`, the cache should always be disabled (in both cases, `cache_results=true` and `TRITON_CACHE_AUTOTUNING=1`). Otherwise, there is an error in `check_disk_cache` since it is searching for a `JITFunction` which is not available. This has been discussed in #6678 already but the introduced changes still enable caching results when `cache_results=true`.
1 parent b900855 commit e8bc90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/triton/runtime/autotuner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, fn, arg_names, configs, key, reset_to_zero, restore_value, pr
3636
self.keys = key
3737
self.cache: Dict[Tuple, Config] = {}
3838
self.arg_names = arg_names
39-
self.cache_results = cache_results or (knobs.autotuning.cache and not knobs.runtime.interpret)
39+
self.cache_results = (cache_results or knobs.autotuning.cache) and not knobs.runtime.interpret
4040

4141
# Reset to zero or restore values
4242
self.reset_to_zero = []

0 commit comments

Comments
 (0)