Files
Strata/include
Niko1221 c1fa42c134 HIP: the RX 6000 cards read prompts with FP16 GEMMs by default (#5151)
prompt_f16_resolve: with STRATA_HIP_PROMPT_F16 unset, a discrete gfx1030 / gfx1031 / gfx1032 card
(the RX 6000 package's cards, Linux and Windows) now runs the prompt path's 16-bit GEMMs FP16 in and
out, the route rocBLAS has tuned kernels for on gfx103x. STRATA_HIP_PROMPT_F16=0 keeps the old route
(register entry updated); =1 as before. The 780M rule is unchanged; gfx11, gfx12, gfx1034, the
integrated gfx1035 / gfx1036 and every other part keep the old route. The engine says once at start
that the default is in force.

Measured on an RX 6700 XT (gfx1031, Linux container, ROCm 10.1 / rocBLAS 5.7), Qwen3.8-Flash-Next
IQ2_XS pack, gate2.py forced-token KL: 16 prompts of 2,048 tokens, 64 forced tokens, truth = the
exact FP32 products (STRATA_RDNA2_SGEMM=1), reference = the old default, its repeat bit-identical
(ratio 1.000 [1.000, 1.000]):

  positions   KL old route   KL FP16    FP16 / old [95 %]      top-1 = truth (old / FP16)
  1           0.00681        0.00688    1.010 [0.672, 1.941]   100.00 % / 93.75 %
  2-8         0.00491        0.00552    1.125 [0.923, 1.454]   99.11 % / 98.21 %
  9-32        0.00585        0.00550    0.941 [0.769, 1.184]   97.14 % / 97.66 %
  33-64       0.00675        0.00542    0.802 [0.711, 0.890]   98.63 % / 98.83 %
  all         0.00621        0.00549    0.883 [0.829, 0.948]   98.14 % / 98.24 %

Prompt time (2,000 tokens, 3 interleaved pairs): 0.873 / 0.869 / 0.884 of the old route
(8 prompts of ~2K: 0.862-0.891). 8K prompts not measured (the box's 88 C junction stop line was
reached in the 8K start). Windows not measured on our side (community runs on RX 6800 / 6900 XT
used =1, docs/AMD_HIP.md).

Test: src/core/arch_defaults_test.cpp (the gfx103x rule: fails on the base, passes here).
2026-11-16 20:45:41 +01:00
..