qwen4exp: verify/decode pass launch order, prefetch width, chain polling, turnover slots

Lossless (no kernel arithmetic or operand change): the router weight is read beside the mixer
all-reduce; k/v projections before q|gate; the indexer's keys behind the attention launches within
the exact bound; verify-height prefetch at 32 workgroups (`prefetch` takes an optional `blocks`
param) and the shared down arm before the routed down from 2 rows (kVerifyRows); chain waits poll by
grid size (R4D_CHAIN_TINY/SMALL/MID); the mover's kept-free turnover slots follow the swaps the
engine asked for (MoverConfig::turnover_adaptive) instead of a fixed 640.

arch_test: new a_flash_next_decode_step_orders_its_small_launches; the pinned graph fingerprints and
step hashes of qwen4exp_fp8 move (re-pinned). place_test: the adaptive turnover. r4d_selftest: the
`blocks` param of prefetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Code000andClaude Opus 5.5 authored and StillDeadcode committed 2026-11-17 20:33:07 +01:00
1 parent 946a6f9e2b
commit ca7a7212ec
20 files changed
+598 -44

No files matched your search

+5 -2
View File
@@ -945,10 +945,13 @@ the count from `tail`, as a GEMM takes its M from its operands.
| op | params | operands |
|---|---|---|
| `prefetch` | `bytes` | `w`w |
| `prefetch` | `bytes` `blocks`/opt | `w`w |
Reads the first `bytes` of a weight's stored form and writes nothing, so a kernel that streams the
weight next finds those bytes in the on-die cache (64 MB on gfx1201). It is issued beside a
weight next finds those bytes in the on-die cache (64 MB on gfx1201). `blocks` is the number of
workgroups reading where the architecture measured its own (the read holds wave slots and queues
its loads in front of the kernels it runs beside, so the best count depends on them); absent or 0
it is the kernel's `nb` axis. It is issued beside a
collective that leaves the card's memory idle: on the second lane (`rad_lane`), or, where launches
chain (`rad_chain_on`), as its chained form on the same lane right behind the GEMM before the
collective, which waits for that GEMM only and does not hold the collective. A plain read on the