Archived
docs: stall profiles of the small kernels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
1 parent
640cc7e231
commit
2a764d2d38
1 file changed
+7
@@ -785,6 +785,13 @@ tile, partials past L1) instead of its own kernel: correct, but slower at every
|
|||||||
however it is staged (31 us for 5120: probe chain2.cpp), and a tree sum failed the op's tolerance
|
however it is staged (31 us for 5120: probe chain2.cpp), and a tree sum failed the op's tolerance
|
||||||
before (MiniCPM5), so ~30 us of its 44 stay.
|
before (MiniCPM5), so ~30 us of its 44 stay.
|
||||||
|
|
||||||
|
**The small kernels under stall sampling** (rad-kbench): attention 42% scoreboard + 20% distance
|
||||||
|
stalls (its dot products are dependent add chains, no send pressure); rmsnorm 45% at a barrier
|
||||||
|
(the group waits for sub-group 0's ordered sum); gated_quant_fp8 in f64 multiply-adds (pipe and
|
||||||
|
distance stalls); quant_act_fp8 and the bf16 gemm_nt (launch_dpas8) on distance / scoreboard /
|
||||||
|
instruction-fetch stalls. None is byte-bound: launches that each do little, and ~2000 of them a
|
||||||
|
round -- fusion, or more work a launch, rather than faster loads.
|
||||||
|
|
||||||
**Layout headroom measured, not taken**: a tiled code layout (a 16-column tile's step 1 KiB
|
**Layout headroom measured, not taken**: a tiled code layout (a 16-column tile's step 1 KiB
|
||||||
contiguous, read by block loads) on top of the 16-byte exponent gathers gives 246 -> 229 us at
|
contiguous, read by block loads) on top of the 16-byte exponent gathers gives 246 -> 229 us at
|
||||||
gate_up's shape (probe m2d.cpp) -- a repack at load, which needs a layout hook for m2xfp4.
|
gate_up's shape (probe m2d.cpp) -- a repack at load, which needs a layout hook for m2xfp4.
|
||||||
|
|||||||
Reference in new issue
Block a user