Commit 648a664
[Helion + torch.compile] Fix MultiOutput write deps to eliminate fusion workarounds (#177062)
MultiOutput.get_read_writes() now produces proper MemoryDep writes from
FixedLayout instead of inheriting StarDep from InputsKernel. This lets
the scheduler match template-output writes with downstream epilogue reads
without the manual StarDep→MemoryDep rewrite that was in
FusedSchedulerNode.fuse().
Also fixes score_fusion_memory to use name-based matching for templates
(a view/reshape between template output and epilogue can produce different
index expressions) and fixes the buggy duplicate isinstance check.
Pull Request resolved: #177062
Approved by: https://github.com/jansel1 parent a7e6b9d commit 648a664
2 files changed
Lines changed: 39 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8834 | 8834 | | |
8835 | 8835 | | |
8836 | 8836 | | |
| 8837 | + | |
| 8838 | + | |
| 8839 | + | |
| 8840 | + | |
| 8841 | + | |
| 8842 | + | |
| 8843 | + | |
| 8844 | + | |
| 8845 | + | |
| 8846 | + | |
| 8847 | + | |
| 8848 | + | |
| 8849 | + | |
| 8850 | + | |
| 8851 | + | |
| 8852 | + | |
| 8853 | + | |
| 8854 | + | |
| 8855 | + | |
| 8856 | + | |
| 8857 | + | |
| 8858 | + | |
| 8859 | + | |
| 8860 | + | |
8837 | 8861 | | |
8838 | 8862 | | |
8839 | 8863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1913 | 1913 | | |
1914 | 1914 | | |
1915 | 1915 | | |
1916 | | - | |
1917 | | - | |
1918 | | - | |
1919 | | - | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
1928 | | - | |
1929 | | - | |
1930 | | - | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
| 1916 | + | |
1938 | 1917 | | |
1939 | 1918 | | |
1940 | 1919 | | |
| |||
6148 | 6127 | | |
6149 | 6128 | | |
6150 | 6129 | | |
6151 | | - | |
6152 | | - | |
6153 | | - | |
| 6130 | + | |
| 6131 | + | |
| 6132 | + | |
| 6133 | + | |
| 6134 | + | |
| 6135 | + | |
6154 | 6136 | | |
6155 | | - | |
6156 | | - | |
| 6137 | + | |
| 6138 | + | |
| 6139 | + | |
| 6140 | + | |
| 6141 | + | |
| 6142 | + | |
6157 | 6143 | | |
6158 | 6144 | | |
6159 | 6145 | | |
6160 | 6146 | | |
6161 | 6147 | | |
6162 | 6148 | | |
6163 | 6149 | | |
6164 | | - | |
6165 | | - | |
| 6150 | + | |
| 6151 | + | |
6166 | 6152 | | |
6167 | 6153 | | |
6168 | 6154 | | |
| |||
0 commit comments