Metal's quad_sum and quad_product of half operands are (x0 op x1) op (x2 op x3) with each
operation rounded to half, and its quad prefix sums and products the lane-order chain over the
quad's lanes with each operation rounded, the empty exclusive sum -0 and product 1. Measured on
the M3 Max (macOS 27.0.1), fast math on and off alike, over the operands of
metal2vulkan_devtools::half_simd_reductions, all 256 threads (m3-max-81130, our own MSL): those
models match every thread; the float result rounded once misses 48 of the quad sums, 64 of the
products and 6 to 25 of each prefix operation.
half_simd_reductions gains a third kernel, QUADS: thread t takes entry t of SUM_OPERANDS and
PRODUCT_OPERANDS and writes five words, its quad reductions, its quad prefix sums and its quad
prefix products, then its simdgroup prefix sums and products. devtools::half_simd_reductions::quads
answers the first three words from those models (a small exact half rounding of an f64 sum or
product). Metal's simdgroup half prefix order matches none of the models (the lane-order chain,
Hillis and Steele, and the float result rounded once miss 60 to 137 threads each), so those two
words are written, not compared: they make the kernel a simdgroup user, which a device with
subgroups narrower than 32 lanes (lavapipe's 8) runs on the emulated tier, quad operations
included.
The runtime's device test runs the kernel on every device beside the two simdgroup kernels and
prints how many of the compared words differ. This is the test of the quad half step the next
commit moves to the 16-bit instruction under the 16-bit float controls.
Verified: cargo fmt only (this Mac runs no builds); the device runs are the timing job's
correctness leg on the RTX 2080, the 780M and lavapipe.