mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2114] [Engine] sycl: run on an integrated Arc (Arc 140T, xe): free memory from /proc/meminfo, no prompt-slot borrowing, a native launcher #3869
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#3869
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/2114
Author: @andersson82
Created: 10/12/2026
Status: 🔄 Open
Base:
main← Head:sycl-igpu-engine📝 Commits (1)
955658esycl: run on an integrated Arc (Arc 140T, xe): free memory from /proc/meminfo, no prompt-slot borrowing, a native launcher📊 Changes
5 files changed (+128 additions, -3 deletions)
View changed files
📝
docs/INTEL.md(+64 -0)📝
docs/INTEL_ARC.md(+3 -2)📝
sycl/include/dpct/device.hpp(+23 -1)➕
sycl/serve/strata-sycl-native.sh(+28 -0)📝
sycl/src/program/generate.cpp(+10 -0)📄 Description
Problem and result
The SYCL port does not start on an integrated Arc: the Arc 140T has no free-memory query, so the expert cache is sized
from 0 and refuses to start. With the three changes below, Strata 0.2.2 (engine 0.1.47) runs the Coder IQ1_M on the 140T
with 62 GiB of RAM through the normal server: 10 of 10 short requests at 10.2-15.0 tok/s decode, and a 74,939-token
prompt read at 149.9 tok/s with the fact at its start recalled. (The decode also needs #2110; without it every request
stalls on this GPU.)
Related discussion
None agreed in an issue. It covers the "integrated Arc GPUs ... not tested" line of docs/INTEL_ARC.md; #515 (the B390 on
Windows) is not covered. The maintainer's note on the first version: platform support for an integrated Arc, which the
maintainers have no machine to gate, so not part of the speed round. This is that pull request, rebased on 0.2.2 and
re-run, rebased on 0.2.3 on 2026-10-23 (no conflict), and rebased on 0.2.8 (main
870aedd9) on 2026-10-30: main rewrotedocs/INTEL.mdanddocs/INTEL_ARC.md, so the docs part was redone in main's new layout (see Approach). Built, not re-run on the GPU.Approach
sycl/include/dpct/device.hpp,get_memory_info: on a device withhost_unified_memoryand noext_intel_free_memory, free memory isMemAvailablefrom/proc/meminfo(Linux only);STRATA_SYCL_FREE_MIBsetsit by hand (the
xedriver keeps freed GPU memory in a pool thatMemAvailabledoes not count until a reboot).sycl/src/program/generate.cpp: no prompt-slot borrowing on ahost_unified_memorydevice. With borrowing, the answerafter a borrowing prompt was token 0 (every expert activation NaN from the second prompt chunk; measured on the 0.1.40
port, any context).
sycl/serve/strata-sycl-native.sh(new): the config'sexefor the engine on the PC's own oneAPI, no Docker. Sets thesame port defaults as
strata-sycl.sh(each overridable from the config's"env") plusSTRATA_NO_MULTI_GR=1(15.1 vs 18.3 tok/s on the 140T with the multi-token GR kernels, 0.1.40, same output) and an OOM score of 1000 for the
engine.
docs/INTEL.md: a section "Integrated Arc: the Arc 140T" (build, what is different from a card, a config to run itby hand, the numbers of 0.1.43 and 0.1.47), placed before "Pictures on an Arc" and written in the page's table and
"Measured on" style; it also lists the
STRATA_WINDOW_SYNCdefault of #2110.docs/INTEL_ARC.md: the 140T is no longerin "not tested".
Compatibility: every engine change is behind
host_unified_memory, which a card with its own VRAM should not report;discrete cards keep the code path they had. CUDA and HIP files are not touched. Setup is its own pull request (#2115),
which builds on this one.
Validation
Hardware: Arc 140T (8086:7d51, Xe-LPG+), Core Ultra 9 285H, 62 GiB RAM, Fedora 44 (kernel 7.2.11,
xe),intel-compute-runtime 26.35, oneAPI 2026.0, JIT build. Model: Coder IQ1_M,
--spec 4 --spec-min-p 0.5 --mtp,--max-context 98304,--kv int8,--stream-experts,--vram-reserve-mib 2048, throughsycl/serve/server_intel.py,greedy, thinking off. All runs 2026-10-22, on one boot (not the first start after it, so part of the cache is mirrored).
Passed:
BUILD_DIR=build-sycl bash sycl/tools/build.sh:BUILD EXIT 0, 0 errors, on main011c9e60(v0.2.2) + this commit and again on main
5c8dd322(v0.2.3) + this commit (2026-10-23).870aedd9(v0.2.8, engine 0.1.54):BUILD EXIT 0, 0 errors, on main + this commit + #2110 + #2115together (not this commit alone).
bash -n sycl/serve/strata-sycl-native.sh.expert cache auto: 23.16 GiB freefromMemAvailable, 10,284 slots cached, 2,004 experts mirroredBLUE-HERON-7recalledis_primeFailed: none observed.
Not run:
i915on an iGPU, Windows.Limits
runs of one config today already differed by about 15% (8.5-13.3 and 10.6-15.2), so I make no claim about a change
between versions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.