Replay's every-shape rerun (job 42974, 780M) dispatched 51.0% of gb's dispatches: 47.3% of them
set a threadgroup memory length, which a description could not say, and most of RowLockstep's do.
- The plan gains Binding::ThreadgroupMemory { index, length }; validate refuses a length off a
multiple of 16, as Metal does.
- The harness's encoder trait gains set_threadgroup_memory_length, which both runtimes' sessions
pass to their encoders.
- A description's `threadgroup-length INDEX LENGTH` sets it before the next dispatch, as
set-buffer and set-bytes do; a length off 16, or other arguments, is refused with its line.
- The authored fixture gains group_sums, a kernel that sums each threadgroup's words through
threadgroup memory the host sizes, regenerated by scripts/regen-air-fixtures (--dir harness
workloads) on the M3 with the recorded toolchain. No authored workload uses it: the device test
of descriptions does.
Verified: the description unit tests (the directive parsed into its binding; refused at 1000 bytes
and without its length), and the described-workload device test on lavapipe, whose new `groups`
workload (16 threadgroups of 256, 1024 bytes of threadgroup memory) matches between the old
runtime and the new and matches its CPU reference.