Skip to content

Commit 6b46f3d

Browse files
committed
Revert "revert some changes"
This reverts commit 22d3f86.
1 parent 22d3f86 commit 6b46f3d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

scripts/patch-pytorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ echo "Applying PyTorch patches in $REPO_ROOT"
1717
cd "$REPO_ROOT"
1818

1919
curl -sSL https://github.com/pytorch/pytorch/pull/126516.diff | git apply -
20-
# trigger 4
20+
# trigger 3
2121
git apply "${SCRIPT_DIR}/pytorch.patch"

scripts/pytorch.patch

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ index fa2a1334380..11de4dc6e5f 100644
156156
except ImportError:
157157
from triton.compiler.compiler import AttrsDescriptor
158158
diff --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

0 commit comments

Comments
 (0)