mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3607] [Engine] native Windows support for the Intel Arc SYCL port #4709
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#4709
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/3607
Author: @demetree
Created: 10/21/2026
Status: 🔄 Open
Base:
main← Head:windows-sycl📝 Commits (10+)
71db79eAdd native Windows support for Intel SYCL GPUs795acb3Validate native Windows SYCL backend and runtime dependenciesac9d080Merge upstream main and resolve Windows Intel setup conflicts6031741gguf reads: the engine and a host-only test share one positioned reader (marcelloc's offer on #2079)ca4aaddnvfp4 decode rows: the UE4M3 table through the double ldexp, not the float oneb3e8fd5Merge origin/main (1,165 commits, control 0.1.46.1) into windows-sycl: the Windows SYCL work kept60feb52prefill: the i9/int8 crossover cache makes its folder with _mkdir on Windows73ff887docs: the Windows Intel path, what was measured on it, and the Level Zero check7fe03b8docs: Windows Level Zero works; the loader path is a folder, plus the B70 parity results3fa4969bench: name an Intel Arc on Windows instead of reporting "CPU only"📊 Changes
86 files changed (+20608 additions, -92 deletions)
View changed files
➕
bench/results/2026-10-21-community-arc-pro-b70-coder-iq1_m-all-resident/README.md(+66 -0)➕
bench/results/2026-10-21-community-arc-pro-b70-coder-iq1_m-all-resident/results.json(+938 -0)➕
bench/results/2026-10-21-community-arc-pro-b70-coder-iq1_m/README.md(+66 -0)➕
bench/results/2026-10-21-community-arc-pro-b70-coder-iq1_m/results.json(+938 -0)➕
bench/results/2026-10-21-community-arc-pro-b70-iq3_xxs/README.md(+62 -0)➕
bench/results/2026-10-21-community-arc-pro-b70-iq3_xxs/results.json(+936 -0)➕
bench/results/2026-10-25-community-r-arc-tm-pro-b70-qwen3-8-flash-next-coder-iq1-m/README.md(+57 -0)➕
bench/results/2026-10-25-community-r-arc-tm-pro-b70-qwen3-8-flash-next-coder-iq1-m/results.json(+955 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/README.md(+70 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/config.json(+13 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/outputs.jsonl(+22 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/provenance/chat_template.jinja(+184 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/provenance/corpus-build.json(+206 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/provenance/corpus-manifest.sha256(+35 -0)➕
bench/results/2026-10-26-dev-256k-standard-v1/results.json(+1671 -0)➕
bench/results/2026-10-27-dev-256k-standard-v1-b/README.md(+70 -0)➕
bench/results/2026-10-27-dev-256k-standard-v1-b/config.json(+13 -0)➕
bench/results/2026-10-27-dev-256k-standard-v1-b/outputs.jsonl(+22 -0)➕
bench/results/2026-10-27-dev-256k-standard-v1-b/provenance/chat_template.jinja(+184 -0)➕
bench/results/2026-10-27-dev-256k-standard-v1-b/provenance/corpus-build.json(+206 -0)...and 66 more files
📄 Description
Problem and result
The Intel Arc engine in
sycl/is Linux only. On Windows,setup --backend syclstopped with "there is no Windowspath yet" (
docs/INTEL_ARC.md), the port did not compile with icx on Windows (GCC-style flags, POSIX calls), setupcould not find an Arc (it reads
/sys/class/drm), and nothing had been run on a card.This branch adds a native Windows path: no Docker, no WSL, no bash.
sycl\tools\build_windows.batconfigures and builds the port with MSVC + oneAPI (icx, oneMKL): the wholesyclproject, 232 targets, no errors. GCC-style flags are spelled for icx on Windows (/fp:precise,/Qmkl:sequentialthrough a_sycl_mklvariable) and the few POSIX calls are behind#ifdef _WIN32.START-HERE.batfinds an Intel Arc in the display class registry (and offers it beside NVIDIA / AMD when both arepresent), then hands the run to
sycl/setup_intel.pyas on Linux. The engine isbuild-sycl-win\strata.exe, builtby setup when missing; the run config carries the oneAPI runtime folders in
lib_dirsinstead of the container'ssycl_root.Result on the card (Windows 11 25H2, Core i9-9900, 64 GB, Arc Pro B70 32 GB, driver 32.0.101.8976, oneAPI 2026.2):
Coder IQ1_M with 32K context and 11,264 experts resident (21.46 GiB of VRAM) reads a 4K prompt at 1,451 tok/s and a
16K prompt at 1,407 tok/s, decodes at 51 tok/s on the benchmark suite's chat questions (66 tok/s on a nine-question
short-answer set) and 57.7 tok/s in its agent session; IQ3_XXS, whose experts partly stream, gives 906 / 955 tok/s and
38 tok/s. Both reports are in
bench/results/andCOMMUNITY.md.Related discussion
None: no issue asked for this, so there is no scope agreement yet. It is a substantial addition rather than a focused
fix, and the reasonable alternative is to split it: the Windows port and setup path as one change, and the two
smaller fixes (
tools/strata_bench.pynaming an Intel card instead of "CPU only", andgr_parityskipping a block theport does not build) plus the documentation and benchmark reports as separate ones. Say which you prefer and I will
reshape it.
Approach
sycl/CMakeLists.txt,sycl/src/**): Windows spellings for the compiler flags,_mkdirfor the new i9/int8 cache folder,
#ifdef _WIN32around the parity tests' POSIX includes, and a few kernel-launchpaths that need the Windows queue (pinned loader,
sycl_queue.hpp,generate.cpp's native device probe).setup.py,sycl/setup_intel.py,sycl/tools/build_windows.bat,tools/test_setup_sycl.py): an Arc isdetected from the registry before the NVIDIA/AMD choice, the engine is built by
build_windows.batwhenbuild-sycl-win\strata.exeis missing, the config points at it with the oneAPI runtime folders onlib_dirs, andthe Level Zero device selector, free-memory and command-graph aspects the port needs are checked before a run.
sycl/include/strata/positioned_file.hpp,sycl/src/core/gguf_expert_source.cpp,sycl/tests/host/positioned_file_test.cpp): one positioned reader shared byGgufExpertSourceand a host-only test(the Windows overlapped read, the POSIX
pread), so the test exercises what--stream-expertsdoes.tools/strata_bench.pyalso names Intel cards on Windows (it asked the registry for AMD only,so a B70 run was headed "CPU only"), and
sycl/src/kernels/gr_parity.cppprints SKIP forSTRATA_QFUSE, which theport does not build.
Nothing here changes the default path of any other backend: CUDA and HIP builds are untouched, the Intel build stays a
separate CMake target off by default, and the Windows behaviour only appears on Windows.
Validation
Passed:
sycl\tools\build_windows.bat— 232 targets, 0 errors, 50 executables (icx 2026.2, MSVC 14.51, Windows 11 25H2,Arc Pro B70 32 GB, driver 32.0.101.8976).
build-sycl-win\positioned_file_test.exe— PASS (8 threads on one shared handle, an offset past 4 GiB, shortreads, end of file, an invalid handle, a missing file).
ctest --test-dir build-sycl-win— 30 of 31 model-free parity tests pass on the card through Level Zero; thedetails of the one failure are below.
sycl_payload_pairspasses when run through ctest (it needsSTRATA_DOORBELL_CHECK=1, which the test entry sets).python tools\test_setup_*.py— all pass excepttest_setup_golden.py(19) andtest_setup_menu.py(1), whichfail the same way on upstream main without this branch.
python tools\test_strata_bench.py— 18 pass, including the new Windows case for the Intel card.tools/strata_bench.py --longon Coder IQ1_M and IQ3_XXS — numbers above; reports inbench/results/.Failed:
s2_expert_grouped_parity— the 20-groupmoe_grouped_s2and resident cases differ bitwise between the new and theprevious grouped kernel on Battlemage (fp32: 140,689 output floats; fp16: gate/up scratch only), while both stay
within 1e-7 of the host reference. The "hit" variants are bitwise identical. I have not established whether this is
intended precision on this card or a real ordering difference; it is the one open item.
Not run:
setup.pyand the SYCL tree only, and the Windows setup path is behindWIN, but I could not build those backends here.bmg-g31) builds measuredthe same, so neither is recommended over the other for speed.
Limits
[opencl:gpu], setup refuses it; on the PC measured herethat happened because
HKLM\SOFTWARE\Intel\oneAPI\LevelZero\1\LevelZeroLoaderPathheld the DLL path instead of thefolder that holds it (
C:\Windows\System32).docs/INTEL_ARC.mddocuments the symptom, theUR_L0_DEBUG=1check and the one-line fix.
within one suite.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.