Files
llama.cpp-xrip/ggml
xrip 6f65493dde cuda: drop SM75 Q4_K decode reuse, superseded by upstream branchless unpack
Same story as the packed scale loads. The Q4_K reuse path decoded a block once
and applied it across ncols_dst columns, which beat the old branchy generic
path because that path re-ran the scale unpack per column. Upstream's
branchless rewrite hoists the unpack out of the loop, and the generic path is
now the faster of the two.

Measured on a CMP 50HX (cc 7.5), test-backend-ops perf, medians of 5 reps after
a discarded warmup, two independent runs:

  reuse disabled vs enabled, q4_K n=2..4:  -0.52% and -0.54% (faster without)
  n=5..8, identical code in both builds:   -0.02%  (noise check)
  widening the gate to n<=8 instead:       +0.80%  (worse)

14 of 15 cases at n=2..4 favour removal, so the effect is consistent rather
than drift.

The IQ4_XS reuse path is deliberately kept: upstream's change only touched
Q4_K/Q5_K scale unpacking, IQ4_XS decodes via kvalues_iq4nl table lookups and
its generic path did not improve. Measured with GGML_SM75_IQ4_REUSE=0, removing
it costs +1.14% at n=2..4, so it stays.
2026-09-21 20:52:02 +03:00
..
2024-07-13 18:12:39 +02:00