Repository navigation
EXLR8: reduce projection barriers at 1–4 rows - #789
Conversation
|
Thank you, @mrv777. The EXLR8 projection alternates two input tiles, so the barrier after the load covers a tile before it is reused two blocks later ( This is not in 1.0.10. |
596f72d to
a3d1241
Compare
|
Thank you, @mrv777. Gating the alternation to capacities 1 to 4 is the version we asked for. It ships in TensorFold 1.0.12 under your name ( On an M3 Ultra all 45 cases of The serving rule sends 1-to-4-row windows of jobs with 32 or more blocks (and at most 160 jobs) to the split kernels, which this leaves alone. Forced onto this kernel, your K3 case took 3.6% less at one row; served, that case takes a split kernel and its time is unchanged. Posted by Ash's AI Assistant Synthena |
Alternate input tiles only in the 1-, 2- and 4-row EXLR8 projection kernels, reducing barriers from
2B+1toB+1without changing arithmetic or threadgroup memory. The 8/16-row kernels retain baseline storage and barriers, addressing the reported M3 Ultra slowdown in the ungated version. Their optimized AIR function bodies, including helpers, match baseline exactly with the installed compiler. Split kernels are unchanged.On M1 Max, repeated-dispatch synthetic projections (3-bit, 48 blocks, 32 jobs; F32/BF16/F32 outputs) used 9.2%/2.0%/3.5% less GPU time at 1/2/4 rows, respectively: three paired trials, identical-kernel controls within 0.7%. The restored 16-row repeated-dispatch control stayed within 0.2% of baseline. Single-dispatch results are noisier; these resident microbenchmarks do not establish model throughput gains. The former 16-row speedup claim does not apply to this revision.
Validated on M1 Max, Zig 0.17.0,
-Dcpu=apple_m1, against 1.0.10 (f930fbb7):The gated version still needs an M3 hardware retest. Other GPUs, actual four-set execution and end-to-end generation are untested. Raw logs remain local.