mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1710] [CLOSED] sycl: experimental A770 fast router and paired mapped transfers #3624
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#3624
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/1710
Author: @duncanmcqueen
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:a770-speed-upstream📝 Commits (9)
8f69d94sycl: publish the doorbell with the uncached write hint33064c3sycl: chunk the expert mirror and raise memlock in the wrapper039992esycl: keep Alchemist's prompt path on its own buffersc756d4bsycl: add the doorbell payload checksumaa71188sycl: stage oneMKL GEMM operands that lie more than 4 GiB into their allocationb40f69fsycl: build Alchemist kernels for allocations past 4 GiBebe06f9sycl: setup picks the Intel card by PCI id and configures Alchemist712bbc9sycl: fix the GEMM staging scratch lifetime and unregister freed allocations501f675sycl: add experimental A770 router and mapped-transfer tuning📊 Changes
21 files changed (+883 additions, -193 deletions)
View changed files
📝
docs/INTEL.md(+9 -0)📝
include/strata/kernels/elementwise.hpp(+15 -0)📝
sycl/CMakeLists.txt(+14 -1)📝
sycl/include/strata/core/gguf_expert_source.hpp(+7 -4)📝
sycl/include/strata/sycl_doorbell.hpp(+48 -0)📝
sycl/include/strata/sycl_queue.hpp(+45 -1)➕
sycl/probe/doorbell_store.cpp(+43 -0)➕
sycl/probe/payload_pairs.cpp(+61 -0)➕
sycl/probe/router_fast.cpp(+71 -0)📝
sycl/serve/strata-sycl.sh(+1 -0)📝
sycl/setup_intel.py(+51 -16)📝
sycl/src/core/expert_cache.cpp(+6 -0)📝
sycl/src/core/gguf_expert_source.cpp(+72 -38)📝
sycl/src/core/layer.cpp(+2 -2)📝
sycl/src/core/session.cpp(+8 -0)📝
sycl/src/core/verify.cpp(+16 -0)📝
sycl/src/kernels/cuda/elementwise.dp.cpp(+134 -101)📝
sycl/src/kernels/cuda/router_top10.dp.cpp(+139 -3)📝
sycl/src/kernels/cuda/verify_kernels.dp.cpp(+54 -25)📝
sycl/src/prefill/gemm.dp.cpp(+58 -0)...and 1 more files
📄 Description
Summary
Experimental follow-up to #1602: a fast SYCL router, paired uncached mapped-memory transfers, and an opt-in host-clock GPU-stage profiler for investigating slow Arc A770 decode.
Dependency: #1602 is still open. This branch includes its eight commits plus the speed-work commit
501f675, so it builds against upstreammain. The new work is the seven-file diff fromduncanmcqueen:intel-sycl-handshaketoduncanmcqueen:a770-speed-upstream. Once #1602 merges, this follow-up should be rebased to remove the dependency commits from its review diff.Draft status: normal inference and the targeted parity tests pass, but the experimental profiler still has unresolved synchronization concerns and enabled runs have encountered a payload-arrival timeout. This is submitted for review and further investigation, not as a claim of a production-ready profiler or 20 tok/s decode.
What changed
STRATA_SYCL_ROUTER_OLD=1keeps the old implementation.Measurements
Hardware: Intel Arc A770 16 GB (
xe), Ryzen 5 5600, 31 GiB RAM, oneAPI 2026.1. The A770 is behind the chipset's PCIe 3.0 x4 connection; Strata's host-to-device probe measured 1.7-1.8 GB/s.Model: Qwen3.8-Flash-Next Coder IQ1_M. Engine based on upstream 0.1.41. Tests retained 131,072-token context capacity, INT8 KV with 32,768 resident cells, MTP speculation, and disabled prompt caching. Actual prompts were 73-546 tokens; these are not full-128K-context measurements. Generated-token rates include reasoning tokens.
41. Cold first-request generation remains much slower because of initialization/JIT costs.Useful tested configuration changes relative to the pinned-mirror setup:
The existing wrapper consumes
STRATA_VERIFY_NO_HOST=0to disable its default NO_HOST setting. Onxewithout--stream-experts, the engine defaults the PCIe miss share to zero, so CPU workers compute misses from the resident RAM complement. Adequate free RAM is still required.Validation
Rechecked against the latest fetched upstream
main(fb58e0d); the branch was already based on it and needed no conflict resolution.strata,sycl_router_fast,sycl_payload_pairs,elementwise_parity,router_top10_paritysucceeded with oneAPI.sycl_router_fastsycl_payload_pairselementwise_parityrouter_top10_paritygit diff --checkpassed.Known profiler limitations
STRATA_VERIFY_PROFILE=1encounteredverify: layer ... rang but its payload never arrived whole. The cause is unresolved; ordinary unprofiled benchmarks passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.