This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/libxe2
claudeandClaude Opus 5.5 fc5f00a169 libxe2: quad prefill attention scores as S^T = K Q^T, softmax vertical across key rows
The score tile is now keys by query rows: K is the A operand (plain 2D loads instead of the
transposed one), Q^T the B operand, staged once a work-group by a transposed load. With the 16
query rows across the lanes, a row's max is a vertical max over the page's 16 key rows instead of
32 horizontal reductions a thread a step, exp(S - base) one subtract a key row, and a row's sum is
taken in reduce<>'s own order (lanes i and i + 8, then i + 4, i + 2, i + 1 -- key rows here), so
every value is the old one: probe output bit-identical, 64 x 64 through 64k. P goes to the swap
area as [query][key], two keys a 32-bit scatter lane, the layout the P V step already reads.
XE2_FAQ_KA=0 at build time keeps the S = Q K^T form.

Probe, 2048 rows over 2k / 16k / 64k: 16.9 / 30.6 / 30.5 -> 18.8 / 32.9 / 32.5 TFLOPS. Fresh
prompts (mtp4fc, MTP 6), against 5e44973: ~2.1k 1425 -> 1427 tok/s, ~24k 1234 -> 1249, ~47k 1048 ->
1066. rad-kbench attn --all-rows 227/227, full replay 1410/1410, greedy 8/8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 02:41:45 +01:00
..