mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #667] [CLOSED] Add Intel XPU backend: Qwen decode on Arc Pro B60 via SYCL #2755
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#2755
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/667
Author: @the-talos
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:intel-xpu-backend📝 Commits (2)
ca2e216Add Intel XPU backend (SYCL) for Qwen decode on Arc Pro B60ef5ce92xpu: replay graphs natively and add STRATA_XPU_PROFILE📊 Changes
14 files changed (+2023 additions, -5 deletions)
View changed files
📝
CMakeLists.txt(+18 -3)➕
cmake/xpu_backend.cmake(+69 -0)➕
docs/INTEL_XPU.md(+55 -0)➕
include/strata/xpu_compat/cublas_v2.h(+74 -0)➕
include/strata/xpu_compat/cuda_fp16.h(+70 -0)➕
include/strata/xpu_compat/cuda_runtime.h(+1016 -0)➕
include/strata/xpu_compat/cuda_runtime_api.h(+2 -0)➕
include/strata/xpu_compat/intrinsics.hpp(+220 -0)📝
src/core/device.cu(+6 -0)📝
src/core/native_dense.cpp(+3 -1)📝
src/core/weights.cpp(+7 -1)📝
src/kernels/cuda/native_mmvq.cu(+4 -0)📝
src/kernels/cuda/s2_gemv_fast.cu(+14 -0)➕
tools/xpu/rewrite_cuda.py(+465 -0)📄 Description
What this adds
A third backend next to CUDA and HIP, enabled with
STRATA_ENABLE_XPU=ON(icpx/icx, oneAPI 2025.3). The CUDA kernels are reused unchanged:tools/xpu/rewrite_cuda.pyrewrites launch syntax and declarations to SYCL at build time, andinclude/strata/xpu_compat/implements the CUDA runtime API the engine leans on (graphs, streams, events, mapped memory, cublas via oneMKL) on SYCL/Level Zero.docs/INTEL_XPU.mddocuments the design and the build.Numbers
Qwen3.8-Flash-Next GSQ-RCO Q2_0 on one Intel Arc Pro B60 (23.3 GB), expert cache auto (14,570 slots, 18.8 GiB), context 1024,
--spec 2 --kv int8:Porting notes worth reviewing
cudaStreamQueryis an honest non-blocking idle check on the in-order queue; the verify loop polls it while spinning on doorbells.malloc_hostbounce with an in-orderhost_taskfill; Level Zero faults on raw pages and strands every later op on the stream.__nanosleep(called by everystrata_spin_pause()site each iteration) issues asycl::atomic_fence(seq_cst, system). Without it the verify window times out at the first flag wait, every run.__dp4aand shuffles are correct subgroup implementations, XMX paths are future work.I have run the greedy smoke test and the measurement above on the B60 container only; the CUDA and HIP builds are untouched (the new code compiles in only under
STRATA_ENABLE_XPU).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.