File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ echo "Applying PyTorch patches in $REPO_ROOT"
1717cd " $REPO_ROOT "
1818
1919curl -sSL https://github.com/pytorch/pytorch/pull/126516.diff | git apply -
20- # trigger 4
20+ # trigger 3
2121git apply " ${SCRIPT_DIR} /pytorch.patch"
Original file line number Diff line number Diff line change @@ -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..901263df4aa 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,3 +182,17 @@ index 281d0e78ba4..901263df4aa 100644
182182 compile_meta["constants"],
183183 compile_meta["configs"][0],
184184 ),
185+ @@ -502,13 +513,11 @@ class CachingAutotuner(KernelInterface):
186+ call_args = [
187+ arg
188+ for i, arg in enumerate(self.fn.arg_names)
189+ - if i not in self.fn.constexprs and arg not in none_args
190+ ]
191+
192+ 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
You can’t perform that action at this time.
0 commit comments