4414c2988 (0.2.20) put the dot_x4 kernels in front of the 1-row dots in native_gu_rows /
native_down_rows (Q4_K, Q5_K, Q6_K, Q8_0, IQ4_XS, IQ3_XXS ...), on by default. They give the
same bits (dot_x4_test) and share the activation loads, which pays with the weights in cache.
A cold expert is read from DRAM, and there the 4-row form is slower. New dot_x4_bench (one
thread, 512 MiB of rows, n = 2560), x4 speed against four 1-row calls:
Ryzen 7 255 (Zen 4, AVX-512 VNNI) Q4_0 0.77 Q8_0 0.42 Q4_K 0.26 Q5_K 0.33 Q6_K 0.24 IQ4_XS 0.27 IQ3_XXS 0.52
Ryzen 5 5600X (Zen 3, AVX2) Q8_0 0.85 Q4_K 0.29 IQ4_XS 0.32
i9-13900K (AVX-VNNI) Q8_0 1.20 Q4_K 0.86 IQ4_XS 0.80
(cache-resident: 0.8 - 1.3 everywhere)
This is the #6552 reporter's Ryzen 7 7700 (STRATA_NO_DOT_X4=1 brought the old speed back).
dot_x4_enabled() (strata/quant/dot_x4_policy.hpp): STRATA_DOT_X4=1 turns the kernels on,
STRATA_NO_DOT_X4 (any value) still turns them off and wins. The answers are the same bits either
way. dot_x4_policy_test covers the rule; dot_x4_bench is registered as an executable only.