[PR #2110] [Engine] sycl: STRATA_WINDOW_SYNC=1 by default on an integrated GPU (Arc 140T: 6 of 6 requests stalled, 10 of 10 pass) #3866

Open
opened 2026-11-07 15:31:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2110
Author: @andersson82
Created: 10/12/2026
Status: 🔄 Open

Base: main ← Head: sycl-igpu-window-sync


📝 Commits (1)

  • 856ece5 sycl: STRATA_WINDOW_SYNC=1 by default on an integrated GPU (Arc 140T: 10 of 10 requests stalled with 0, 20 of 20 pass with 1)

📊 Changes

1 file changed (+9 additions, -2 deletions)

View changed files

📝 sycl/src/core/verify.cpp (+9 -2)

📄 Description

Problem and result

On an Arc 140T (the integrated GPU of a Core Ultra 9 285H, xe driver) every request stalls: the first verify window
after the prompt never finishes ("verify window: waiting for the GPU to finish the window (flags A/B/M raised)"), and
the 60 s watchdog restarts the engine. It is the hang verify.cpp already describes for the A750 (a window launched
behind GPU work still in flight never starts), and STRATA_WINDOW_SYNC=1 removes it the same way.

This makes 1 the default on a device that reports host_unified_memory, beside i915 and Alchemist.

  • Before (Strata 0.2.2, engine 0.1.47, STRATA_WINDOW_SYNC=0, which is main's value on this GPU): 6 of 6 requests stalled.
  • After (no variable set): 10 of 10 answered at 10.2-15.0 tok/s decode, 0 stall reports.

Related to #1545 (the same knob on an A770 under xe). The maintainer's note on the first version of this pull request:
a stall fix for an integrated Arc, not a speed change; it goes with #2114. This is that pull request, rebased on 0.2.2
and re-run, rebased on 0.2.3 on 2026-10-23, and rebased on 0.2.8 (main 870aedd9) on 2026-10-30 (no conflict either time; built, not re-run on the GPU).

Approach

sycl/src/core/verify.cpp, Verifier::run: the STRATA_WINDOW_SYNC default is 1 on an i915 card, an Alchemist card
(both main's) or a device with sycl::info::device::host_unified_memory (queried once, a failed query counts as
false). The variable still overrides it either way. The comment above it has the measurement.

Compatibility: every card keeps the default main gives it. A discrete card has its own VRAM and should not report
host_unified_memory, so its path is the one before (not checked on a discrete card, see Not run). No other backend is
touched.

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 (sycl/tools/build.sh). Model: Coder IQ1_M, --spec 4 --mtp,
--max-context 98304, --kv int8, --stream-experts, served by sycl/serve/server_intel.py. Requests: short chat
questions, 100 tokens, greedy, thinking off, one after another.

Passed:

  • Build of this branch alone, sycl/tools/build.sh: BUILD EXIT 0, 0 errors, on main 011c9e60 (v0.2.2) + this commit
    and again on main 5c8dd322 (v0.2.3) + this commit (2026-10-23).

  • 2026-10-30, main 870aedd9 (v0.2.8, engine 0.1.54): sycl/tools/build.sh BUILD EXIT 0, 0 errors, on main + this
    commit + #2114 + #2115 together (not this commit alone).

  • On the 140T, engine 0.1.47 with this change and #2114's two engine changes (without #2114 the expert cache cannot be
    sized on this GPU, so this change cannot be run alone there):

    run (2026-10-22, same boot) experts cached / mirrored requests answered decode
    STRATA_WINDOW_SYNC=0 (main's value here) 12,288 / 0 0 of 6 (each timed out after 90 s; the log has 2 stall reports at that window, each followed by a watchdog restart) -
    this change, no variable 10,284 / 2,004 10 of 10, 0 stall reports 10.2-15.0 tok/s
    this change, no variable, later run 9,628 / 2,660 10 of 10, 0 stall reports 10.6-15.2 tok/s
    this change, a 74,939-token prompt 10,284 / 2,004 answered, the fact at its start recalled read at 149.9 tok/s
  • The is_prime answer is correct code.

Failed: none observed.

Not run:

  • The runs on the 140T on 0.2.3 or 0.2.8 (engine 0.1.48 / 0.1.54): the table is from 0.2.2 (engine 0.1.47).
  • Any discrete Intel card: I have none, so I could not check that host_unified_memory is false there.
  • CUDA and HIP builds: no file of theirs is touched.
  • Other integrated GPUs (Lunar Lake, Panther Lake / B390 in #515), Windows.
  • STRATA_WINDOW_SYNC=2 (the gap rule) on the 140T.
  • The general model (IQ2_XS) on 0.1.47.

Limits

I did not find which GPU work the window lands behind here: with the cache mirrored the adaptive tier is off
(STRATA_VERIFY_NO_HOST), so unlike #1545 it is not the tier's swaps. Run-to-run spread of decode on this laptop is
about 15% (two runs of one config: 8.5-13.3 and 10.6-15.2 tok/s), so no speed claim is made beyond "it runs".


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2110 **Author:** [@andersson82](https://github.com/andersson82) **Created:** 10/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sycl-igpu-window-sync` --- ### 📝 Commits (1) - [`856ece5`](https://github.com/Niko1221/Strata/commit/856ece5012abfff38f9f3c42527580cf8a7d8301) sycl: STRATA_WINDOW_SYNC=1 by default on an integrated GPU (Arc 140T: 10 of 10 requests stalled with 0, 20 of 20 pass with 1) ### 📊 Changes **1 file changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `sycl/src/core/verify.cpp` (+9 -2) </details> ### 📄 Description ## Problem and result On an Arc 140T (the integrated GPU of a Core Ultra 9 285H, `xe` driver) every request stalls: the first verify window after the prompt never finishes ("verify window: waiting for the GPU to finish the window (flags A/B/M raised)"), and the 60 s watchdog restarts the engine. It is the hang `verify.cpp` already describes for the A750 (a window launched behind GPU work still in flight never starts), and `STRATA_WINDOW_SYNC=1` removes it the same way. This makes 1 the default on a device that reports `host_unified_memory`, beside i915 and Alchemist. - Before (Strata 0.2.2, engine 0.1.47, `STRATA_WINDOW_SYNC=0`, which is main's value on this GPU): **6 of 6 requests stalled**. - After (no variable set): **10 of 10 answered** at 10.2-15.0 tok/s decode, 0 stall reports. ## Related discussion Related to #1545 (the same knob on an A770 under `xe`). The maintainer's note on the first version of this pull request: a stall fix for an integrated Arc, not a speed change; it goes with #2114. This is that pull request, rebased on 0.2.2 and re-run, rebased on 0.2.3 on 2026-10-23, and rebased on 0.2.8 (main 870aedd9) on 2026-10-30 (no conflict either time; built, not re-run on the GPU). ## Approach `sycl/src/core/verify.cpp`, `Verifier::run`: the `STRATA_WINDOW_SYNC` default is 1 on an i915 card, an Alchemist card (both main's) **or** a device with `sycl::info::device::host_unified_memory` (queried once, a failed query counts as false). The variable still overrides it either way. The comment above it has the measurement. Compatibility: every card keeps the default main gives it. A discrete card has its own VRAM and should not report `host_unified_memory`, so its path is the one before (not checked on a discrete card, see Not run). No other backend is touched. ## 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 (`sycl/tools/build.sh`). Model: Coder IQ1_M, `--spec 4 --mtp`, `--max-context 98304`, `--kv int8`, `--stream-experts`, served by `sycl/serve/server_intel.py`. Requests: short chat questions, 100 tokens, greedy, thinking off, one after another. **Passed:** - Build of this branch alone, `sycl/tools/build.sh`: `BUILD EXIT 0`, 0 errors, on main 011c9e60 (v0.2.2) + this commit and again on main 5c8dd322 (v0.2.3) + this commit (2026-10-23). - 2026-10-30, main 870aedd9 (v0.2.8, engine 0.1.54): `sycl/tools/build.sh` `BUILD EXIT 0`, 0 errors, on main + this commit + #2114 + #2115 together (not this commit alone). - On the 140T, engine 0.1.47 with this change and #2114's two engine changes (without #2114 the expert cache cannot be sized on this GPU, so this change cannot be run alone there): | run (2026-10-22, same boot) | experts cached / mirrored | requests answered | decode | |---|---|---|---| | `STRATA_WINDOW_SYNC=0` (main's value here) | 12,288 / 0 | **0 of 6** (each timed out after 90 s; the log has 2 stall reports at that window, each followed by a watchdog restart) | - | | this change, no variable | 10,284 / 2,004 | **10 of 10**, 0 stall reports | 10.2-15.0 tok/s | | this change, no variable, later run | 9,628 / 2,660 | 10 of 10, 0 stall reports | 10.6-15.2 tok/s | | this change, a 74,939-token prompt | 10,284 / 2,004 | answered, the fact at its start recalled | read at 149.9 tok/s | - The `is_prime` answer is correct code. **Failed:** none observed. **Not run:** - The runs on the 140T on 0.2.3 or 0.2.8 (engine 0.1.48 / 0.1.54): the table is from 0.2.2 (engine 0.1.47). - Any discrete Intel card: I have none, so I could not check that `host_unified_memory` is false there. - CUDA and HIP builds: no file of theirs is touched. - Other integrated GPUs (Lunar Lake, Panther Lake / B390 in #515), Windows. - `STRATA_WINDOW_SYNC=2` (the gap rule) on the 140T. - The general model (IQ2_XS) on 0.1.47. ## Limits I did not find which GPU work the window lands behind here: with the cache mirrored the adaptive tier is off (`STRATA_VERIFY_NO_HOST`), so unlike #1545 it is not the tier's swaps. Run-to-run spread of decode on this laptop is about 15% (two runs of one config: 8.5-13.3 and 10.6-15.2 tok/s), so no speed claim is made beyond "it runs". --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3866
No description provided.