mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2488] [CLOSED] sycl/A770: faster hyper-connection read on Arc A-series (gr_bench 88/123/151 -> 62/83/100 us at 1/4/6 tokens) #4072
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4072
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2488
Author: @aslater3
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:a770/up-gr-read📝 Commits (2)
f6b5657sycl/A770: faster hyper-connection read607f211sycl/A770: the hc read's norm-folded down kernel at 256-column slices (STRATA_GR_DOWN_COLS, Alchemist default); gr_bench GR_BENCH_LAYERS📊 Changes
2 files changed (+467 additions, -15 deletions)
View changed files
📝
sycl/src/kernels/cuda/fused_gr.dp.cpp(+444 -8)📝
sycl/src/kernels/gr_bench.cpp(+23 -7)📄 Description
Title
sycl/A770: faster hyper-connection read on Arc A-series (gr_bench 88 / 123 / 151 -> 62 / 83 / 100 us at 1 / 4 / 6 tokens)
Summary
fused_gr_read_multion Alchemist, thegr_more_groupspath. This is the decode window's per-layer hc read, run twice per layer, and it sits on the stepped window's critical path. There are five changes, each with an env switch and each the default on Alchemist only. Every other device runs the same kernels as before.Three are bit-identical (
gr_benchchecksums unchanged):STRATA_GR_FUSED_REDUCE). That is one launch fewer.STRATA_GR_UP_MORE_COLS).lovalues the fused reduce computed once, instead of every block recomputing them (STRATA_GR_LO_READY).Two change the fp32 summation order. The output sums agree to about 1e-7 relative, and the output was quality-checked:
STRATA_GR_NORM_FOLD). The slices stage the pending-updated residual ×w_normunscaled, together with its sums of squares. The reduce then applies each stream'srsto that stream's partial dots. This removes the norm launch and thexnwrite and re-read.STRATA_GR_UP_V5). The old kernel re-read all oflofrom local memory for every row and every token, about 160 KB per block, and was local-memory bound on the A770. Now all lanes read the samelovalue at once, as a broadcast.STRATA_GR_NORM_FOLD=0 STRATA_GR_UP_V5=0gives back the old bits exactly.What changed
sycl/src/kernels/cuda/fused_gr.dp.cpp:gr_down_sliced_kernelgains theFUSED/NFepilogues.gr_up_v5_kernel.launch_gr_down_more/launch_gr_up_morechoose between them.gr_fused_reduce,gr_norm_fold,gr_up_more_cols,gr_lo_ready,gr_up_v5.Extra Notes
Arc A770 16 GB, xe, compute runtime 26.05, oneAPI 2026.1.
gr_bench, in µs:Decode (Coder IQ1_M,
--resident-experts, spec 4):Not tested: A750 / A580, i915, Windows.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.