mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5505] [Engine] Arc A770 (Alchemist) on Windows: first serving run — graph gate, FP64 channel, UR_L0_DEBUG stall, 4 GiB cap #5475
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#5475
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?
Originally created by @Gotya-OFFCIAL on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5505
Form
Problem: The SYCL engine had never been run on a Windows Arc A-series card (
docs/INTEL_ARC.md: "What has not been run on Windows: … the Arc A-series"). Running PR #3607 head on an A770 surfaced: (1) a hard startup gate oncommand_graph_supportedthat is stricter than the engine's needs on DG2, (2) a documentation error for the Windows A-series FP64 path, (3)UR_L0_DEBUG=1silently turning the doorbell handshake into a watchdog timeout, and (4) a ≥4 GiB single-allocation cap that pins the expert cache to ~10 % residency. With two of these addressed by config and one by a two-line patch, the engine serves and generates.Environment: see the table in §1 below — Arc A770 16 GB (devid 56a0), Windows driver 32.0.101.9150, oneAPI 2026.1, Ryzen 7 1700 (AVX2), 32 GB RAM, Windows 11,
port-windows= PR #3607 heada43f3e5d(engine 0.1.57), Qwen3.8-Flash-Next-GSQ-RCO IQ2_XS ~68 GB on SSD.Reproduce: build per §2 (one two-line patch), then
sycl/serve/server_intel.py --config strata-iq2-xs.jsonwith the args/env in §3; probe withfp64_probe.cpp(§4b) andusm_probe.cpp(§4d) for the FP64 and allocation findings.Expected: per
docs/INTEL_ARC.md, no Windows A-series path exists; perdocs/INTEL.md:244, theIGC_EnableDPEmulation/OverrideDefaultFP64Settings/NEOReadDebugKeystriple should enable double kernels on A-series.Actual: the engine builds clean and serves and generates on the A770 through Level Zero (0.9 cold → 4.5–13.1 tok/s warm, cache-limited); the
IGC_*triple reportsaspect::fp64=1while everydoublekernel fails to compile, and the working channel isNEO_FP64_EMULATION=1;UR_L0_DEBUG=1slows each host↔device handshake to 2.5–5 s (trace:waitA=2511334.7 µs,waitB=5091421.5 µs) which overruns the watchdog; single device/host-pinned allocations ≥4 GiB fail unlessUR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1.Evidence: engine log excerpts inline below;
strata-stall-*.dmp(3 files), the 385 MB / 3,595,459-lineUR_L0_DEBUG=1capture, both probes, the ctest summary and the working config JSON are available on request (§6).Reproduction status: reproduced locally, end to end, on the named box. Findings (a), (b), (c), (d) were each verified by a direct experiment (build+serve, compile probe, timing trace, allocation probe) — not static analysis.
1. Environment
--list-devicesreportsvram_gb: 15.5594, PCIdevid: 56a0, Alchemist/DG2)sycl-lsreports[level_zero:gpu] Intel(R) Arc(TM) A770 Graphics 12.55.8 [1.17.39894+4]icx, CMake 4.4 + Ninjaport-windows= PR #3607 heada43f3e5d(0.1.57 / upstream 0.2.11)F:SSD; IQ pack (dense.bin1.43 GiB + tokenizer +native_experts.txt) onF:SSDNotes that cost time and may matter to others:
vswhere.exeis absent and oneAPI is not in a default location, so upstreamsycl/tools/build_windows.batexits 1 immediately. A local wrapper (build_windows_local.bat: vcvars64 →setvars.bat→ cmake/ninja) was used instead.A770shows up asdriver: level_zerowith noi915path on Windows (i915is Linux-only), which is why the documented Alchemist code path and the Windows code path had never met.PYTHONDONTWRITEBYTECODEunset on a flaky HDD repo drive:pythonhung inimportlib._bootstrap_external._write_atomicwriting__pycache__to a stalling disk and looked like an engine hang.2. Build — clean, plus one two-line gate patch
Full build of PR #3607 head
a43f3e5d: zero errors,strata.exe= 48,987,648 bytes (engine 0.1.57). No-DSTRATA_SYCL_AOT(Alchemist has no AOT target; JIT only).ctest: 71 of 83 passed, 12 failed. 11 of the 12 fail with
0xc0000409(STACK_BUFFER_OVERRUN) and are all tests whose reference kernel is written indouble— see §4b.ple_parityfails on the missing Q2_0 fixture (known, pre-existing, same on the B-series box).The one patch this port needed —
sycl/src/program/generate.cpp:2178turned a hard failure into a warning:Rebuilt with
cmake --build build-sycl-win --target strata,BUILD_RC=0.3. Run — it serves and generates on Windows
Launch:
sycl/serve/server_intel.py --config strata-iq2-xs.json, engine args of note:Engine log, startup sequence:
/healthreturnedok; the OpenAI-compatible endpoint answered on127.0.0.1:8080/v1. Generation works: coherent Englishreasoning_content; speculative decoding engaged (draft_n_accepted 2/2). IQ2_XS quality plus partial expert residency is what you would expect, not a defect.Measured decode — a ramp, not a plateau
Please read this as a range under a floor configuration, not a benchmark: single machine, greedy +
--spec 2, 8K context, and the bottleneck (expert cache size, §4d) is not yet tuned. Published anchors: A750/i915 IQ3_XXS 10–19 tok/s, B70 mirror 40.3 tok/s, #5406's A770 on Linux at 32.6/28.1 tok/s (8K/32K).Secondary observation: some prompts fall into an
"!!!!"repetition loop after ~10–20 tokens under greedy + spec 2. Isolated so far from sampling (temperature 0.7 same), cache size (sub-4-GiB same), and the serve path (mirror on/off same) — open item, correctness gates fromdocs/A770_SPEED_SPEC.mdare the planned tool.4. Findings
(a)
ext_oneapi_graphis limited on DG2 — the engine's gate is stricter than the engine needs--list-deviceson this box reportscommand_graph_supported: falsewhere the B70 reference box reportstrue. That is the driver/Level-Zero adapter, not a PATH artifact — it persists with the fullsetvarsenvironment sourced. (Per compute-runtime source, DG2 advertises a reduced mutable-command capability set vs Xe2; the numbers behind that reading are in the author's notes, not re-derived here.)sycl/src/program/generate.cpp:2178— hardreturn 2. It is really a performance path, not a correctness dependency: with the warning-only patch, generation, speculative decode and the verify window all work (this run is proof).sycl/setup_intel.py:126-128— out of the boxsetup --backend syclrefuses an A770 on Windows and the user is left to hand-write a config (which is what was done here).generate.cpp; insetup_intel.pymakecommand_graph_supporteda warning that setsSTRATA_VERIFY_EAGER=1in the written config instead of skipping the card.--mtpand the stepped/capture_segmentspaths should report a clear "needs graphs" error rather than failing later.(b) FP64 on a factory Windows driver:
NEO_FP64_EMULATION=1is the channel; theIGC_*pair is a dead endAlchemist has no FP64 units.
docs/INTEL.md:244documents the A-series path asIGC_EnableDPEmulation=1,OverrideDefaultFP64Settings=1,NEOReadDebugKeys=1. On Windows driver 32.0.101.9150 that combination does not work, and worse, it lies:aspect::fp64reports1while any kernel that actually usesdoublefails to compile:"Double type is not supported on this platform".0xc0000409ctest failures: the test's double reference kernel throws at compile time and the throw is uncaught. They are not Alchemist kernel bugs.NEO_FP64_EMULATION=1, which injects-ze-fp64-gen-emuinto the IGC build options. Verified by a standalone probe (buffer<double>parallel_forwith sqrt/div/fma, bitwise-matched against host reference, 3 stable runs).--nativeload path completed without a single FP64 error — the native path does not compile adoublekernel. The emulation variable is needed for the test suite, not for serving. Worth saying inINTEL_ARC.md, because the current text makes A-series look FP64-blocked for serving. On Linux theIGC_*keys are reported to work (#5406), so the doc fix is platform-specific.(c) The "driver hang" was
UR_L0_DEBUG=1— a 2.5–5 s per-handshake slowdown that overruns the watchdogSymptom: first inference request hangs in the verify window. The last GPU command before the hang is
zeCommandListAppendLaunchCooperativeKernel. It looks exactly like "the Alchemist Windows Level Zero driver cannot complete a cooperative launch". Knobs tried and found insufficient:STRATA_WINDOW_SYNC=1,--spec 2,STRATA_VERIFY_HOST_UNCACHED=1,STRATA_MIRROR_MIB=0,--prefill 1024,--vram-reserve-mib 2048.Root cause: the diagnostic switch itself.
UR_L0_DEBUG=1emits one log line per Level Zero call — 3,595,459 lines for a single request (385 MB). The per-call log write pushes each host↔device handshake from milliseconds to seconds, and 40 layers × 5 s cannot finish inside the watchdog. TurnUR_L0_DEBUGoff and the same window completes on the first try.Engine trace with the variable on:
waitA/waitBare the GPU spinning on the CPU expert-pool flags: 2.51 s and 5.09 s per execution. The host pool was idle with all jobs done — the host was not short of work, it was short of time to log.Two asks:
UR_L0_DEBUGon for a serve run; it converts a healthy window into a watchdog timeout with a cooperative-kernel last command — a highly misleading signature.UR_L0_DEBUGis set when--servestarts, print a one-time warning.A real open item survives:
--graph capturecurrently AVs with0xC0000005on this box (the eager path serves).(d) An A770 refuses single allocations ≥ 4 GiB — but
UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1lifts itWithout the variable the ceiling is ~3.16–3.60 GiB (9.5–10.9 % of the 24576-slot profile); the failure message says
no erroralongside a null pointer, which sends you to the page file when the real limit is the per-allocation size.UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1(referenced in the engine's own comment atexpert_cache.cpp:666) raised the cache to 5316 slots / 7.15 GiB. Worth naming in the failure message and the docs.--vram-elasticis not a workaround: on Intel it is CUDA-only (sycl/src/core/expert_cache.cpp:390-392,STRATA_EC_NO_VMM) and fails hard, dragging the fallback chain with it. A segmented allocation on the SYCL/Level-Zero side (zeVirtualMem*/zePhysicalMemCreate; all present inze_loader.dllon this box) would lift this ceiling to the full free VRAM and is probably the single highest-value upstream change for 16 GB Intel cards.(e) Bonus:
STRATA_MIRROR_MIBsemantics on a 16 GB card + 32 GB RAMWith
STRATA_MIRROR_MIB=0the PCIe mirror channel is entirely off (pcie_layer()false). With=4000the mirror fills in 9.1 s and the GPU reads missing experts over PCIe — worth an A/B in the docs, since the Windows mirror cap usesullAvailPhys(generate.cpp:5343-5344) and a 33 GB expert set against 32 GB RAM forcesSTRATA_VERIFY_NO_HOST=0.5. What works / what does not (this exact box)
a43f3e5d(MSVC + icx, JIT)iq_packon a 68 GB IQ2_XS pack/health, OpenAI-compatible/v1, generation, spec decode, PCIe mirror0xc0000409= FP64 emulation unset, 1 = missing Q2_0 fixturesetup --backend syclpicking the A770 unattendedcommand_graph_supportedgate (§4a)--graph capture(--mtp/stepped)0xC0000005, open itemUR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1(§4d); segmented alloc still wanted"!!!!"after ~10–20 tokens (open item, §3)6. Artifacts available on request
strata-stall-*.dmp— three stall dumps taken whileUR_L0_DEBUG=1was reproducing the verify-window hang.UR_L0_DEBUG=1engine capture for one request, 3,595,459 lines / 385 MB, containing the complete Level Zero call sequence up tozeCommandListAppendLaunchCooperativeKernel.fp64_probe.cpp/usm_probe.cppprobes, the ctest summary with all 12 failures named, and the workingstrata-iq2-xs.json(args + env).Say which you want and how — a targeted excerpt of the 385 MB capture is probably more useful than the file.
7. Ask
NEO_FP64_EMULATION=1and mark theIGC_*recipe Linux-only (§4b).UR_L0_DEBUGwarning to the docs/engine (§4c) — cheapest fix with the highest time saved.@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks, this follows the format now.