hc_read PF2: a persistent up product and mix

Each wave keeps its 16 rows of d as twenty WMMA fragments (K = 320) and the
workgroup walks a run of channel blocks, with mix_up in fragment order so a
block's B is a 40 KB copy into LDS. R4D_HC_READ_PF2 5, 6 and 7 pair it with
the 64-row, the 128-row or the wide down product. Bit-identical. On gfx1201
it is slower than the 256-row tile of value 1.
This commit is contained in:
keptn42 authored and StillDeadcode committed 2026-10-06 11:22:32 +02:00
1 parent 075dfefe54
commit d7aa401568
3 files changed
+200 -23

No files matched your search

+2 -2
View File
@@ -629,8 +629,8 @@ void r4d_qsa_score_pin_form(int form);
void r4d_moe_gemm_pin_prefill(int form);
// THE GATED RESIDUAL READ'S PREFILL TILE, pinned for a test: 0 is the launcher's rule, 1 the decode
// tiles' kernels at 128 rows (hc_down_tiled, then hc_up_tiled into `ubuf` and hc_mix), 2 the wide
// kernels (which then refuse a shape they are not built for), 3..6 the PF2 forms that
// R4D_HC_READ_PF2=1..4 puts in the rule (the same, and also refused where the band cannot hold
// kernels (which then refuse a shape they are not built for), 3..9 the PF2 forms that
// R4D_HC_READ_PF2=1..7 puts in the rule (the same, and also refused where the band cannot hold
// their weight planes). All are bit-identical by construction, and r4d_selftest compares their
// bytes.
void r4d_hc_read_pin_prefill(int form);