From 5460656186f6b6153b73d364bf3d096543391c02 Mon Sep 17 00:00:00 2001 From: Oguz Ulgen Date: Mon, 27 Oct 2025 18:06:15 -0700 Subject: [PATCH] Always print cached config stack-info: PR: https://github.com/pytorch/helion/pull/1036, branch: oulgen/stack/162 --- helion/autotuner/base_cache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helion/autotuner/base_cache.py b/helion/autotuner/base_cache.py index 62216c611..415927dc8 100644 --- a/helion/autotuner/base_cache.py +++ b/helion/autotuner/base_cache.py @@ -183,6 +183,10 @@ def autotune(self, *, skip_cache: bool = False) -> Config: if (config := self.get()) is not None: counters["autotune"]["cache_hit"] += 1 log.debug("cache hit: %s", str(config)) + kernel_decorator = self.kernel.format_kernel_decorator( + config, self.autotuner.settings + ) + print(f"Using cached config:\n\t{kernel_decorator}", file=sys.stderr) cache_info = self._get_cache_info_message() self.autotuner.log( f"Found cached config for {self.kernel.kernel.name}, skipping autotuning.\n{cache_info}"