Commit bfc7a77
committed
feat(v4-path-d): recompute_w_u threadgroup tiling + correct Metal-4 contract (not M5-gated)
recompute_w_u materialized ~27K elems/thread in thread-private arrays -> pipeline-state
'exceeds available stack space'. Tile through threadgroup memory (BK=32/BV=16 constexprs,
GDN + KDA) -> recompute_w_u now compiles+launches on M4. Contract reword: Path D runs on
Metal 4 (macOS 26+) incl Apple M4 -- the gate is OS/SDK capability, NOT M5 silicon (my
earlier 9c7d14f 'M5-gated' reason was wrong). Note: full Path D parity still blocked by a
separate pre-existing launch-ABI num_args mismatch (make_packed_api), independent of the
now-correct matmul2d.1 parent 1f8675b commit bfc7a77
2 files changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
| |||
1472 | 1482 | | |
1473 | 1483 | | |
1474 | 1484 | | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1475 | 1490 | | |
1476 | 1491 | | |
1477 | 1492 | | |
| |||
1849 | 1864 | | |
1850 | 1865 | | |
1851 | 1866 | | |
1852 | | - | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
1853 | 1876 | | |
1854 | 1877 | | |
1855 | 1878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
| |||
0 commit comments