[PR #1111] [CLOSED] Intel arc 0.1.40 #3034

Closed
opened 2026-11-04 02:05:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1111
Author: @maxfridbe
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: intel-arc-0.1.40


📝 Commits (10+)

  • 6607546 sycl: the 0.1.39 port builds - #626's thread affinity and #559's per-stage dense layers in the port's copies
  • 1939dc1 sycl: benchy v1 (the standard Intel bench), the probe programs and three kernel benches
  • 81e0c4f sycl: prompt-path speedups - the lend mirror, QSA block scores as GEMM tiles, per-cell attention scores
  • 3b88502 sycl: several Intel cards - setup --check sizes models across every card; a --layer-split sees every card
  • 01efa8d docs: INTEL.md as the port's reference; every measured speed in INTEL_PERFORMANCE.md; sycl/TODO.md
  • 939e3c6 sycl: #559's conversation parking in the port's conversation_state.cpp and its test
  • 37d03d6 sycl: conversation_snapshot_test frees its pinned buffers with sycl::free (dpct wrote libc free)
  • cb1f5cf sycl: host-only copies go through the CPU - the Arc's copy engine hung on pinned-host <-> pageable copies
  • babd71c sycl: the kernel tests all pass on the B70 - iq/ple_parity registered as upstream does; s2 grouped kernels bitwise
  • bdb421d sycl: run without Docker (a toolbox with oneAPI); benchy v1 on a Gen5 host, B70 and B65

📊 Changes

117 files changed (+31946 additions, -3241 deletions)

View changed files

📝 docs/INTEL.md (+566 -563)
➕ docs/INTEL_PERFORMANCE.md (+903 -0)
📝 sycl/.gitignore (+1 -0)
📝 sycl/CMakeLists.txt (+90 -5)
➕ sycl/TODO.md (+126 -0)
➕ sycl/bench/v1/long.ids (+1 -0)
➕ sycl/bench/v1/short.ids (+1 -0)
➕ sycl/benchy.sh (+52 -0)
📝 sycl/include/dpct/dpct.hpp (+13 -0)
➕ sycl/include/strata/core/dma_batch.hpp (+182 -0)
➕ sycl/include/strata/core/exchange_storage.hpp (+115 -0)
➕ sycl/include/strata/core/expert_source.hpp (+774 -0)
📝 sycl/include/strata/core/gguf_expert_source.hpp (+7 -5)
📝 sycl/include/strata/core/mtp.hpp (+94 -4)
📝 sycl/include/strata/core/remote_experts.hpp (+7 -1)
📝 sycl/include/strata/core/verify.hpp (+174 -4)
📝 sycl/include/strata/kernels/dp4a.hpp (+4 -0)
📝 sycl/include/strata/kernels/mrope.hpp (+3 -0)
📝 sycl/include/strata/kernels/native_mmvq.hpp (+65 -0)
📝 sycl/include/strata/sycl_math.hpp (+20 -0)

...and 80 more files

📄 Description

Replaces #809, which closed when main's history was rewritten. Rebuilt on the new main: the 18 commits
of #809 cherry-picked, plus one commit that refreshes the port to 0.1.40. Nothing outside sycl/ and
docs/INTEL*.md changes.

Why the refresh was needed

main's SYCL build had stopped compiling: fused_gr, expert_source and prefill/gemm no longer
matched the 0.1.40 headers, because sycl/ still held its 0.1.39 copies.

The port is re-migrated with dpct and 3-way merged against 5047172, the commit it was migrated from.
That leaves 175 conflicts and three hand-ported files (verify.cpp, mtp.cpp,
native_expert_parity.cpp), now resolved. dpct's mistranslations in the new code are listed in
docs/INTEL.md (0.1.40).

Fixed with it

  • #866: the per-layer ring waits read DPCT_CHECK_ERROR(q->ext_oneapi_empty()), which is always 0.
    So whenever experts were mirrored and STRATA_VERIFY_NO_HOST was off, any layer slower than 2 ms
    was reported as "never rang".
  • #1054: with a layer split, the host mirror now holds only the first GPU's layers.
    • Before, it was built before the later stages' caches existed, in the first GPU's context. Every
      later-stage expert was mirrored (13-18 GiB of RAM), then the later GPU's cache fill copied from
      that pinned memory. Using it across contexts is undefined in SYCL; on two B70s it hung at startup.
    • This doesn't reproduce on a B70 + B65, so the fix is untested on the reporter's hardware.

Port-side choices

  • Shared-expert side stream: STRATA_SH_STREAM is off. A recorded SYCL graph only takes its
    own queue's work.
  • MTP drafter: keeps launch-then-wait instead of host spins on mapped outputs.
  • Expert kernels: upstream's warp-shaped kernels are opt-in (STRATA_EXPERT_SPLIT=1); the port's
    grids stay the default.
  • VMM: vmm.cpp is upstream's no-VMM branch, so --kv-grow and --vram-elastic stay off.
  • Not built: gemm_bf16_parity (cuBLAS) and native_expert_bench (raw CUDA).
  • Version: the engine reports 0.1.40-sycl, which setup.py's MIN_ENGINE requires.

Tested (B70, plus a B70 + B65 split)

  • ctest: 34 of 34 pass, with no engine resets. mmvq_multi_parity's negative control has no power
    on the port's wide kernels, which use one layout at every column count; the test reports that the way
    it reports gfx906's wave64 layout.
  • Output: IQ2_XS greedy output is identical to the 0.1.39 port. A --layer-split 29 run over
    B70 + B65 matches one card token for token.
  • Decode (short chat prompt, 64 tokens): 63.5 -> 68.0 tok/s on one card, 57.9 -> 62.7 tok/s on
    the split.
  • Conversation cache: with streamed K/V, two conversations sharing a 15K-token prefix took turns
    (park, mount the shared checkpoint, restore). Every reply was sane, with STRATA_VERIFY_NO_HOST=1
    and with per-layer waits. The B60 token-0 report from #809 did not reproduce.

🔄 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/1111 **Author:** [@maxfridbe](https://github.com/maxfridbe) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `intel-arc-0.1.40` --- ### 📝 Commits (10+) - [`6607546`](https://github.com/Niko1221/Strata/commit/6607546e81700a9707f8ff19720e9ede62f74dd0) sycl: the 0.1.39 port builds - #626's thread affinity and #559's per-stage dense layers in the port's copies - [`1939dc1`](https://github.com/Niko1221/Strata/commit/1939dc191824ea943bfb94b3f11881ea41c1b4b9) sycl: benchy v1 (the standard Intel bench), the probe programs and three kernel benches - [`81e0c4f`](https://github.com/Niko1221/Strata/commit/81e0c4f8cf4077ce2c2809dd5ba6443dbf9a3db3) sycl: prompt-path speedups - the lend mirror, QSA block scores as GEMM tiles, per-cell attention scores - [`3b88502`](https://github.com/Niko1221/Strata/commit/3b885025fdc35185a415f029d4b13c9785a7eb9d) sycl: several Intel cards - setup --check sizes models across every card; a --layer-split sees every card - [`01efa8d`](https://github.com/Niko1221/Strata/commit/01efa8d0baee7fd085e981a09be0df917830d4ff) docs: INTEL.md as the port's reference; every measured speed in INTEL_PERFORMANCE.md; sycl/TODO.md - [`939e3c6`](https://github.com/Niko1221/Strata/commit/939e3c607c0aa3b92799ac78311e0dcfeecb14e1) sycl: #559's conversation parking in the port's conversation_state.cpp and its test - [`37d03d6`](https://github.com/Niko1221/Strata/commit/37d03d6e414a831e83b3a937bf907b26c6871579) sycl: conversation_snapshot_test frees its pinned buffers with sycl::free (dpct wrote libc free) - [`cb1f5cf`](https://github.com/Niko1221/Strata/commit/cb1f5cf3f4f2f68536f3e9e4b0c303443c43df52) sycl: host-only copies go through the CPU - the Arc's copy engine hung on pinned-host <-> pageable copies - [`babd71c`](https://github.com/Niko1221/Strata/commit/babd71ca00bb2f8fb7340adf228f8c7a98e119cf) sycl: the kernel tests all pass on the B70 - iq/ple_parity registered as upstream does; s2 grouped kernels bitwise - [`bdb421d`](https://github.com/Niko1221/Strata/commit/bdb421d7fd7eb3c34654f19fb284b50c1a086040) sycl: run without Docker (a toolbox with oneAPI); benchy v1 on a Gen5 host, B70 and B65 ### 📊 Changes **117 files changed** (+31946 additions, -3241 deletions) <details> <summary>View changed files</summary> 📝 `docs/INTEL.md` (+566 -563) ➕ `docs/INTEL_PERFORMANCE.md` (+903 -0) 📝 `sycl/.gitignore` (+1 -0) 📝 `sycl/CMakeLists.txt` (+90 -5) ➕ `sycl/TODO.md` (+126 -0) ➕ `sycl/bench/v1/long.ids` (+1 -0) ➕ `sycl/bench/v1/short.ids` (+1 -0) ➕ `sycl/benchy.sh` (+52 -0) 📝 `sycl/include/dpct/dpct.hpp` (+13 -0) ➕ `sycl/include/strata/core/dma_batch.hpp` (+182 -0) ➕ `sycl/include/strata/core/exchange_storage.hpp` (+115 -0) ➕ `sycl/include/strata/core/expert_source.hpp` (+774 -0) 📝 `sycl/include/strata/core/gguf_expert_source.hpp` (+7 -5) 📝 `sycl/include/strata/core/mtp.hpp` (+94 -4) 📝 `sycl/include/strata/core/remote_experts.hpp` (+7 -1) 📝 `sycl/include/strata/core/verify.hpp` (+174 -4) 📝 `sycl/include/strata/kernels/dp4a.hpp` (+4 -0) 📝 `sycl/include/strata/kernels/mrope.hpp` (+3 -0) 📝 `sycl/include/strata/kernels/native_mmvq.hpp` (+65 -0) 📝 `sycl/include/strata/sycl_math.hpp` (+20 -0) _...and 80 more files_ </details> ### 📄 Description Replaces #809, which closed when `main`'s history was rewritten. Rebuilt on the new `main`: the 18 commits of #809 cherry-picked, plus one commit that refreshes the port to 0.1.40. Nothing outside `sycl/` and `docs/INTEL*.md` changes. ## Why the refresh was needed `main`'s SYCL build had stopped compiling: `fused_gr`, `expert_source` and `prefill/gemm` no longer matched the 0.1.40 headers, because `sycl/` still held its 0.1.39 copies. The port is re-migrated with dpct and 3-way merged against 5047172, the commit it was migrated from. That leaves 175 conflicts and three hand-ported files (`verify.cpp`, `mtp.cpp`, `native_expert_parity.cpp`), now resolved. dpct's mistranslations in the new code are listed in `docs/INTEL.md` (0.1.40). ## Fixed with it - **#866:** the per-layer ring waits read `DPCT_CHECK_ERROR(q->ext_oneapi_empty())`, which is always 0. So whenever experts were mirrored and `STRATA_VERIFY_NO_HOST` was off, any layer slower than 2 ms was reported as "never rang". - **#1054:** with a layer split, the host mirror now holds only the first GPU's layers. - Before, it was built before the later stages' caches existed, in the first GPU's context. Every later-stage expert was mirrored (13-18 GiB of RAM), then the later GPU's cache fill copied from that pinned memory. Using it across contexts is undefined in SYCL; on two B70s it hung at startup. - This doesn't reproduce on a B70 + B65, so the fix is untested on the reporter's hardware. ## Port-side choices - **Shared-expert side stream:** `STRATA_SH_STREAM` is off. A recorded SYCL graph only takes its own queue's work. - **MTP drafter:** keeps launch-then-wait instead of host spins on mapped outputs. - **Expert kernels:** upstream's warp-shaped kernels are opt-in (`STRATA_EXPERT_SPLIT=1`); the port's grids stay the default. - **VMM:** `vmm.cpp` is upstream's no-VMM branch, so `--kv-grow` and `--vram-elastic` stay off. - **Not built:** `gemm_bf16_parity` (cuBLAS) and `native_expert_bench` (raw CUDA). - **Version:** the engine reports 0.1.40-sycl, which `setup.py`'s `MIN_ENGINE` requires. ## Tested (B70, plus a B70 + B65 split) - **ctest:** 34 of 34 pass, with no engine resets. `mmvq_multi_parity`'s negative control has no power on the port's wide kernels, which use one layout at every column count; the test reports that the way it reports gfx906's wave64 layout. - **Output:** IQ2_XS greedy output is identical to the 0.1.39 port. A `--layer-split 29` run over B70 + B65 matches one card token for token. - **Decode** (short chat prompt, 64 tokens): 63.5 -> 68.0 tok/s on one card, 57.9 -> 62.7 tok/s on the split. - **Conversation cache:** with streamed K/V, two conversations sharing a 15K-token prefix took turns (park, mount the shared checkpoint, restore). Every reply was sane, with `STRATA_VERIFY_NO_HOST=1` and with per-layer waits. The B60 token-0 report from #809 did not reproduce. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:05:06 +07:00
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#3034
No description provided.