Verba/Rapida

Experiments #lrx2r

The third-row cost left after [mac lrx2k]'s tail fix: the load-once multi-row qmv stays +3.6 to +11.8 us a...

done

What was tested

The third-row cost left after [mac lrx2k]'s tail fix: the load-once multi-row qmv stays +3.6 to +11.8 us a call over C9's lanes at 3 rows, and the third row adds +6.9 to +12.4 us a call on sl_o, gl_o and sh_down, which have no whole-block tail; call boundary and register occupancy ruled out by [mac lrx2k]; a blind investigation, then single-candidate arms

Model and setup

C14

Expected gain

none (a cause search; adopts nothing)

Where the idea came from

`2026-11-30-mac-lrx1-row-exact-rows/README.md` ยง Result, row [mac lrx2r]

Outcome

done 2026-12-02 08:56 (lanes-fix helper for config-board): line not met, the K split worth -0.004 ms a verify; third row +1.147; the per-path pick +0.250 over C9's lanes opens c14s2

Lesson

splitting K is worth nothing to C9's split-K lanes at 3 rows (-0.004 ms a verify at one part), so the row-exact kernel's gap is per-row work, concentrated in the third row (+1.15 ms against +0.15 for the second); choosing 4 outputs a simdgroup on the plain path and 2 on the fast path, both with the whole-block tail, brings it to +0.25 ms a verify.

Adopted

no (a diagnosis on test-only kernels; the per-path pick goes to C15's row and its pair)

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built