Commit 7de1214
[NO CP][release/2.7][ROCm][inductor] Inductor heuristic upstream backports (#2807)
These are backports based on these upstream PRs. Cherrypicks were
performed when they where possible.
pytorch#163908 (persistent reduction
autotune)
pytorch#161280 (reduction)
pytorch#162053 (foreach)
pytorch#163197 (pointwise)
pytorch#166470 (pointwise config for
atomic add)
Also included are some additional customer-specific configs which were
not upstreamed but are in this backport to 2.9
#2723
Did not backport filter functions such as `
_maybe_filter_configs_for_tma_restrictions`
https://github.com/ROCm/pytorch/blob/release/2.9/torch/_inductor/runtime/triton_heuristics.py#L2614
---------
Co-authored-by: Jack Taylor <[email protected]>
Co-authored-by: Jack Taylor <[email protected]>
Co-authored-by: Sampsa Riikonen <[email protected]>
Co-authored-by: AmdSampsa <[email protected]>1 parent 175d5a6 commit 7de1214
File tree
5 files changed
+448
-59
lines changed- torch/_inductor
- codegen
- runtime
5 files changed
+448
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
1876 | 1877 | | |
1877 | 1878 | | |
1878 | 1879 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
1009 | | - | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1010 | 1016 | | |
1011 | 1017 | | |
1012 | 1018 | | |
| |||
1202 | 1208 | | |
1203 | 1209 | | |
1204 | 1210 | | |
1205 | | - | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1206 | 1215 | | |
1207 | 1216 | | |
1208 | 1217 | | |
| |||
2284 | 2293 | | |
2285 | 2294 | | |
2286 | 2295 | | |
| 2296 | + | |
2287 | 2297 | | |
2288 | 2298 | | |
2289 | 2299 | | |
| |||
3226 | 3236 | | |
3227 | 3237 | | |
3228 | 3238 | | |
| 3239 | + | |
3229 | 3240 | | |
3230 | | - | |
| 3241 | + | |
3231 | 3242 | | |
3232 | 3243 | | |
3233 | 3244 | | |
| |||
3600 | 3611 | | |
3601 | 3612 | | |
3602 | 3613 | | |
| 3614 | + | |
3603 | 3615 | | |
3604 | 3616 | | |
3605 | 3617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
| 1138 | + | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments