Commit 7dcc77e
Turn on new tiling by default (pytorch#154768)
Turning on in fbcode to come. Also updates `max_tiles` to have a default value of None. The existing tiling logic doesn't really handle max_tiles=3 well, but we do in the new tiling logic, so we default to 3 in the new logic and 2 elsewhere unless max_tiles has been explicitly set.
TB runners have been very unstable recently (do we need to bump batch size ?) but e.g. for a [recent torchbench](https://hud.pytorch.org/benchmark/torchbench/inductor_with_cudagraphs?dashboard=torchinductor&startTime=Tue,%2027%20May%202025%2015:38:26%20GMT&stopTime=Tue,%2003%20Jun%202025%2015:38:26%20GMT&granularity=hour&mode=inference&dtype=bfloat16&deviceName=cuda%20(a100)&lBranch=gh/eellison/803/head&lCommit=8480c220db4eb3c9e2b58d85a698d0a7113a6e37&rBranch=main&rCommit=0cd18ba1ca35d87916723d445c06664615dcae12) inference run we had 15 models with a lower execution time (i.g. green) and 2 models with higher (i.e.. red)
I am doing another run and will update here.
Dynamic shapes is not yet turned on because there are a lot of fixes to be done in splitting that don't work yet.. See:
```
(Pdb) p expr
((s25*s85)//32)
(Pdb) p FloorDiv(expr, expr)
((s25*s85)//(32*(((s25*s85)//32))))
```
and also - unbacked shape is not multiple of itself.
Pull Request resolved: pytorch#154768
Approved by: https://github.com/jansel1 parent a85ad55 commit 7dcc77e
File tree
5 files changed
+51
-22
lines changed- test/inductor
- torch/_inductor
- codegen
5 files changed
+51
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
| 801 | + | |
801 | 802 | | |
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
805 | | - | |
| 806 | + | |
806 | 807 | | |
807 | | - | |
| 808 | + | |
808 | 809 | | |
809 | 810 | | |
810 | 811 | | |
| |||
908 | 909 | | |
909 | 910 | | |
910 | 911 | | |
911 | | - | |
912 | | - | |
| 912 | + | |
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14133 | 14133 | | |
14134 | 14134 | | |
14135 | 14135 | | |
| 14136 | + | |
| 14137 | + | |
14136 | 14138 | | |
14137 | 14139 | | |
14138 | 14140 | | |
| |||
14183 | 14185 | | |
14184 | 14186 | | |
14185 | 14187 | | |
| 14188 | + | |
14186 | 14189 | | |
14187 | 14190 | | |
14188 | 14191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
1354 | 1359 | | |
1355 | 1360 | | |
1356 | 1361 | | |
1357 | | - | |
| 1362 | + | |
1358 | 1363 | | |
1359 | 1364 | | |
1360 | 1365 | | |
| |||
1993 | 1998 | | |
1994 | 1999 | | |
1995 | 2000 | | |
1996 | | - | |
| 2001 | + | |
1997 | 2002 | | |
1998 | 2003 | | |
1999 | 2004 | | |
| |||
2165 | 2170 | | |
2166 | 2171 | | |
2167 | 2172 | | |
2168 | | - | |
| 2173 | + | |
2169 | 2174 | | |
2170 | 2175 | | |
2171 | 2176 | | |
| |||
2187 | 2192 | | |
2188 | 2193 | | |
2189 | 2194 | | |
2190 | | - | |
| 2195 | + | |
| 2196 | + | |
2191 | 2197 | | |
2192 | 2198 | | |
2193 | 2199 | | |
2194 | 2200 | | |
2195 | 2201 | | |
2196 | | - | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
2197 | 2205 | | |
2198 | 2206 | | |
2199 | 2207 | | |
| |||
2204 | 2212 | | |
2205 | 2213 | | |
2206 | 2214 | | |
2207 | | - | |
| 2215 | + | |
2208 | 2216 | | |
2209 | 2217 | | |
2210 | 2218 | | |
| |||
2289 | 2297 | | |
2290 | 2298 | | |
2291 | 2299 | | |
2292 | | - | |
| 2300 | + | |
2293 | 2301 | | |
| 2302 | + | |
2294 | 2303 | | |
2295 | 2304 | | |
2296 | 2305 | | |
2297 | 2306 | | |
2298 | 2307 | | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
2302 | 2311 | | |
2303 | 2312 | | |
2304 | 2313 | | |
| |||
2333 | 2342 | | |
2334 | 2343 | | |
2335 | 2344 | | |
2336 | | - | |
| 2345 | + | |
2337 | 2346 | | |
2338 | 2347 | | |
2339 | 2348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1118 | 1126 | | |
1119 | 1127 | | |
1120 | | - | |
| 1128 | + | |
1121 | 1129 | | |
1122 | 1130 | | |
1123 | | - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1124 | 1135 | | |
1125 | 1136 | | |
1126 | 1137 | | |
| |||
1681 | 1692 | | |
1682 | 1693 | | |
1683 | 1694 | | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | 1695 | | |
1688 | 1696 | | |
1689 | 1697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
624 | 627 | | |
625 | 628 | | |
626 | 629 | | |
| |||
656 | 659 | | |
657 | 660 | | |
658 | 661 | | |
659 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
660 | 666 | | |
661 | 667 | | |
662 | 668 | | |
| |||
676 | 682 | | |
677 | 683 | | |
678 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
679 | 688 | | |
680 | 689 | | |
681 | 690 | | |
| |||
0 commit comments