Skip to content

Commit 6ae57f9

Browse files
authored
[frontend] Fix autotune cache lookup when interpreter enabled (#6678)
The newly-added autotune cache needs to bail out if given an InterpretedFunction (it has no cache key, and autotuning the interpreter is a little meaningless)
1 parent ac14287 commit 6ae57f9

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
@@ -32,7 +32,7 @@ def __init__(self, fn, arg_names, configs, key, reset_to_zero, restore_value, pr
3232
self.keys = key
3333
self.cache: Dict[Tuple, Config] = {}
3434
self.arg_names = arg_names
35-
self.cache_results = cache_results or knobs.autotuning.cache
35+
self.cache_results = cache_results or (knobs.autotuning.cache and not knobs.runtime.interpret)
3636

3737
# Reset to zero or restore values
3838
self.reset_to_zero = []

0 commit comments

Comments
 (0)