mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2586] [CLOSED] sycl/A770: decode GDN recurrence in large GRF, and the split recurrence by default on Alchemist (bitwise; recurrence 2.6x faster) #4148
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#4148
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/2586
Author: @aslater3
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:a770/up-gdn-grf📝 Commits (1)
9c63375sycl/A770: decode GDN recurrence in large GRF, and the split recurrence by default on Alchemist (bitwise)📊 Changes
3 files changed (+103 additions, -38 deletions)
View changed files
📝
sycl/CMakeLists.txt(+2 -0)📝
sycl/src/kernels/cuda/verify_kernels.dp.cpp(+54 -38)➕
sycl/src/kernels/gdn_bench.cpp(+47 -0)📄 Description
Title
sycl/A770: decode GDN recurrence in large GRF, and the split recurrence by default on Alchemist (bitwise; recurrence 2.6x faster)
Summary
On an Arc A770 the decode window's GDN recurrence kernels spilled registers: the step kernel used ~7.6 KB of scratch per SIMD32 thread at the default 128 registers, according to unitrace's compile table. Its 32 state rows per thread alone fill the default register file.
On Alchemist this PR does two things:
STRATA_GDN_SPLIT, already bitwise) the default.The arithmetic is unchanged, so the output is bit-identical. Every other device launches the same kernels as before.
What changed
sycl/src/kernels/cuda/verify_kernels.dp.cpp:gdn_large_grf(): Alchemist by default;STRATA_GDN_LARGE_GRF=0/1overrides.gdn_launch<Name>(), which picks the large-GRF or default launch for every kernelgdn_step_norm_multilaunches.STRATA_GDN_SPLITnow defaults to on for Alchemist (=0/=1still choose).sycl/src/kernels/gdn_bench.cpp(new, plus aCMakeLists.txttarget):gdn_step_norm_multiat the Coder's shape (h_k 16, h_v 48, S 128) for 1-6 tokens, with 48 layers' own states so they stream from VRAM, host-timed, with an output checksum.Extra Notes
Arc A770 16 GB, xe, compute runtime 26.05, oneAPI 2026.1.
gdn_benchtimings:gdn_parityreports 0 failures, includinggdn_step_norm_multi T=1..8 == single-token, bitwise in all 47 cases.--resident-experts, stepped window, same-day pairs. The verify window's GPU wait per round went 39.5 / 38.8 -> 37.6 / 37.9 ms with the split, then 35.9-36.3 -> 33.8-34.0 ms with large GRF on top (3 pairs). The output ids follow the usual run-to-run CPU/GPU placement variation.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.