mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3367] [Engine] sycl: the hyper-connection read's reduce keeps 8 loads in flight, its up step writes lo once #4594
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#4594
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/3367
Author: @deriknel
Created: 10/20/2026
Status: 🔄 Open
Base:
main← Head:pr/sycl-gr-reduce-loads📝 Commits (1)
1535e19sycl: the hyper-connection read's reduce keeps 8 loads in flight, its up step writes lo once📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
sycl/src/kernels/cuda/fused_gr.dp.cpp(+5 -3)📄 Description
Problem and result
On the Arc Pro B70, the hyper-connection read (
gr, 2 sites per layer) is one of the largest kernel classes in decode. Its reduce issues one load at a time, and its up step writesloon every iteration. The variants that keep 8 loads in flight and writeloonce already exist, but only behindSTRATA_GR_MORE_GROUPS, which bundles them with two layouts that run slower on the B70. This change makes the two variants the default without the slower layouts. Same output bits; decode about 0.7% faster here.Related discussion
none. A focused kernel change, no defaults outside these two kernels.
Approach
sycl/src/kernels/cuda/fused_gr.dp.cpp, two launches:gr_down_reduce_kernel<true>: the same 80 adds in the same order, with 8 loads issued ahead instead of waiting on each L2 load in turn;gr_up_multi_kernel<C, false, true>: the per-tokenlovalues are written by block 0 instead of by all 160 blocks (the same values).Both variants were only reached under
STRATA_GR_MORE_GROUPS(on by default for the A-series), which also switches in a 480-group down kernel and an 8-column up step; together those lost 2% on two B70s, so they stay where they are.STRATA_GR_MORE_GROUPSkeeps its meaning.Validation
Setup for every run:
maine88ee39dbuilt for SYCL (AOTbmg-g31, oneAPI 2026.1, Compute Runtime 26.35.39758.10, IGC 2.41.5) in a container; host CachyOS, kernel 7.2.11,xe. 2x Intel Arc Pro B70 32 GB, layer split 26, Swift 1.5 Flash-Next IQ3_S with every expert in VRAM,--max-context 262144, int8 KV,--spec 4 --spec-min-p 0.6,--prefill 4096. Each build has only this PR's commit on top ofmain. Greedy check: 5 fixed prompts (prose, code, maths, an edit, a story), temperature 0, 400 tokens, thinking off, compared character by character. Pipeline windows off;mainand this change alternated on fresh engines, two runs each.Passed:
main83.2 / 82.8 (prose), 106.6 / 106.6 (code); this change 83.7 / 83.7 and 107.4 / 107.3 (+0.8% / +0.7%).main's, both runs.cteston both cards: the same 3 failures as onmain(gr_parityamong them, failing the same way without this change);iq_paritywith fixtures, 0 failures.Failed:
Not run:
sycl/only.Limits
A small gain.
gr_parityfails onmainas well (itsSTRATA_QFUSEcase), so it does not check this change.We investigated (myself and Claude Opus 5.5 in Claude Code) and I reviewed the findings and ran every test on my two Arc Pro B70s on my CachyOS machine.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.