@@ -156,7 +156,7 @@ index fa2a1334380..11de4dc6e5f 100644
156156 except ImportError:
157157 from triton.compiler.compiler import AttrsDescriptor
158158diff --git a/torch/_inductor/runtime/triton_heuristics.py b/torch/_inductor/runtime/triton_heuristics.py
159- index 281d0e78ba4..302700dfe81 100644
159+ index 281d0e78ba4..8e7ca6b5822 100644
160160--- a/torch/_inductor/runtime/triton_heuristics.py
161161+++ b/torch/_inductor/runtime/triton_heuristics.py
162162@@ -414,10 +414,21 @@ class CachingAutotuner(KernelInterface):
@@ -182,12 +182,17 @@ index 281d0e78ba4..302700dfe81 100644
182182 compile_meta["constants"],
183183 compile_meta["configs"][0],
184184 ),
185- @@ -502,7 +513,7 @@ class CachingAutotuner(KernelInterface):
185+ @@ -502,13 +513,11 @@ class CachingAutotuner(KernelInterface):
186186 call_args = [
187187 arg
188188 for i, arg in enumerate(self.fn.arg_names)
189189- if i not in self.fn.constexprs and arg not in none_args
190- + if arg not in none_args
191190 ]
192191
193192 def_args = [
193+ name
194+ for name in self.fn.arg_names
195+ - if name not in cfg.kwargs and name not in none_args
196+ ]
197+ binary_shared = (
198+ binary.shared if hasattr(binary, "shared") else binary.metadata.shared
0 commit comments