[PR #1390] [CLOSED] Windows: native Intel Arc build and setup (OpenCL), plus three Windows-SDK macro fixes #3423

Closed
opened 2026-11-07 14:41:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1390
Author: @demetree
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: intel-windows-v2


📝 Commits (10+)

  • 781f0b0 Windows: native Intel Arc build and setup on 0.1.40.2, verified on a B70
  • 70403cf docs/INTEL.md: the Windows path, measured on a B70 (OpenCL), and what it costs
  • ce0b24c setup: stage the DLLs a fresh Windows build needs to start at all
  • 03ae962 docs/INTEL.md: the Windows A/B, measured the way this file measures - and a correction
  • 7694de3 prefill: tile the plain-SYCL GEMM fallback (5-9x on the prompt path)
  • 6ab6dd0 docs/INTEL.md: the tiled prompt fallback, and two traps in measuring here
  • 5fedf1b prefill: STRATA_FALLBACK_NAIVE=1 sends every call to the naive kernel
  • ebb2abc sycl: keep the B-series spin bound on Windows (decode 40.9 -> 42.9, +67% at
  • f4cb017 docs: the spin bound is worth 46-67% of decode on Windows (0.1.40.3 default)
  • 184a44b serve: warn when the engine runs without --mtp (the short spin bound drafts nothing)

📊 Changes

29 files changed (+1688 additions, -140 deletions)

View changed files

📝 docs/INTEL.md (+224 -4)
📝 include/strata/core/expert_cache.hpp (+43 -0)
📝 setup.py (+115 -7)
📝 src/program/generate.cpp (+11 -1)
📝 sycl/CMakeLists.txt (+91 -5)
📝 sycl/include/dpct/device.hpp (+15 -1)
📝 sycl/include/strata/core/mtp.hpp (+5 -0)
📝 sycl/include/strata/core/verify.hpp (+13 -2)
📝 sycl/include/strata/kernels/resident_plan_mirror.hpp (+4 -2)
➕ sycl/probe/vram_pressure.cpp (+120 -0)
📝 sycl/serve/server_intel.py (+20 -0)
➕ sycl/serve/strata-sycl.bat (+44 -0)
📝 sycl/serve/xe_telemetry.py (+191 -2)
📝 sycl/setup_intel.py (+66 -14)
📝 sycl/src/core/expert_cache.cpp (+49 -0)
📝 sycl/src/core/gguf_expert_source.cpp (+43 -4)
📝 sycl/src/core/mtp.cpp (+75 -28)
📝 sycl/src/core/pinned.dp.cpp (+4 -1)
📝 sycl/src/core/verify.cpp (+44 -10)
📝 sycl/src/kernels/cuda/verify_kernels.dp.cpp (+16 -6)

...and 9 more files

📄 Description

What

Native Windows support for the SYCL port (setup --backend sycl): no Docker, the engine is built from source with

Intel oneAPI (sycl\tools\build.bat) and run directly (sycl\serve\strata-sycl.bat). Plus the fixes the port needs

to compile on Windows at all, and the no-command-graph paths ΓÇö this Windows driver exposes no user-mode Level Zero

adapter, so the OpenCL adapter has no Graph extension.

Replaces #1295: that branch predates 0.1.40.2, and the release merged most of its forward-port (and has its own

STRATA_VERIFY_EAGER window replay), so this one carries the Windows deltas only ΓÇö 4 commits.

Measured

Arc Pro B70 32 GB, Windows 10, driver 32.0.101.8976, i9-9900 / 64 GB, conda-forge dpcpp_win-64 2026.1.1, OpenCL

backend, STRATA_VERIFY_EAGER=1. Coder IQ1_M, 12,288/12,288 experts resident, --stream-experts, INT8 KV, greedy.

Each row is this branch's engine (0.1.40-sycl) against the previous 0.1.39-based build of this port, run

interleaved from the command line (v1, v2, v1, v2, …), which is how the numbers in docs/INTEL.md were taken:

| | 0.1.39-sycl | 0.1.40-sycl (this PR) | Linux / Level Zero / graphs |

|---|---|---|---|

| decode, 256 tokens, --spec 4 --mtp, 3 pairs | 69.6-69.9 (median 69.7) | 77.2-77.3 (median 77.3) | 78.2 |

| decode, 128 tokens after a 2,048-token prompt, 2 pairs | 37.6 | 38.2-41.1 (median 39.6) | ΓÇö |

| decode, 256 tokens, --spec 2 (no draft layer), 3 pairs | 53.4-53.9 (median 53.6) | 22.0-22.9 (median 22.3) | 33.6 |

| prompt reading, 2,048 tokens | 8.0-14.5 tok/s | 71-73 tok/s | 790-1,002 tok/s |

| quantize_act_parity --selftest, sampler_parity | byte-exact, 0 failures | byte-exact, 0 failures | ΓÇö |

Two traps in measuring this backend, both worth passing on. With a 2,048-token prompt the engine is not

run-to-run deterministic: the same binary diverges at token 60 and its state hash differs between two runs. And the

web app answers a temperature: 0.0 request with its own Chat defaults (temperature 1.0, top_p 0.95), so a "greedy"

run through it is sampled. The kernel-level self-tests and the CLI's --greedy are the checks that hold.

And short runs are not comparable on this backend. The same build and mode gave 48.9 and

67.5 tok/s on two consecutive 128-token runs, and a 155-token answer through the API contradicted a 256-token run by

25%. My first pass at this table used those short runs and wrongly read as a ~25% regression; interleaved medians over

256 tokens are the numbers above.

The one reproducible regression is --spec 2 ΓÇö 22.3 against 53.6 tok/s, interleaved, same card and flags. It is

the no-draft-layer path, so it is either the drafter-free window or the suffix drafter's cost; not attributed.

STRATA_VERIFY_PROFILE=1 puts 24 of a 65 ms 4-token window in the GDN hyper-connection read, nearly flat from T=2

(23.6 ms) to T=6 (25.6 ms): a per-layer fixed cost of ~0.5 ms over 48 layers ΓÇö kernel dispatch, not arithmetic.

sycl-ls lists only opencl:gpu here, so there is neither the Graph extension nor sysman's free-VRAM query.

Two things a fresh Windows build needs, both found by building it clean

  • The DLLs to start at all. strata.exe statically imports libmmd.dll (Intel's runtime, beside icx), and the

    UR adapters load ur_loader.dll / ur_win_proxy_loader.dll from beside the exe. Without those three staged the

    engine exits 0xC0000135 (STATUS_DLL_NOT_FOUND) before printing anything ΓÇö it only ran in my earlier build

    directory by accident. sycl/CMakeLists.txt now stages all three with the rest.

  • sycl/tools/build.bat finds libircmt.lib through the build dir's CMakeCache when the shell has no icx on

    PATH, so the script works from a plain prompt; otherwise the link fails LNK1104.

Three compile bugs in the port's own code

<sycl/sycl.hpp> reaches the Windows SDK, whose headers define OUT (minwindef.h), small (rpcndr.h) and near

(windef.h) as macros. An identifier with one of those names is macro-expanded away:

  • sycl/src/kernels/cuda/verify_kernels.dp.cpp: template <bool OUT> loses its parameter, so every use becomes

    error: expected expression. Renamed WRITE_OUT.

  • sycl/src/program/generate.cpp: const int64_t small becomes const int64_t char; memmem is POSIX (now

    std::search over the same bytes).

  • sycl/src/kernels/sampler_parity.cpp: const bool near.

Without command graphs

STRATA_VERIFY_EAGER=1 (set by sycl/serve\strata-sycl.bat) replays the window, the commit and the drafter's

chains on the queue instead of launching captured graphs:

  • record_commit() is the commit graph's body; capture_*() record it where there is a graph backend.

  • The capture_round / capture_step / capture_prefill bodies became record_*() functions the drafter

    replays. prepare_chain() refuses: its per-step events only exist inside a recorded graph.

  • Eager replay refuses a host-served expert plan instead of running it ΓÇö the mid-record waits expire into stale

    plans, which is silently wrong rather than slow.

  • oneMKL SYCL BLAS has no OpenCL Xe2 backend and the failed attempt poisons the queue, so the prompt GEMM is a

    plain SYCL kernel there - and the first version of that kernel read the whole weight matrix once per row (a

    2,048-row chunk of one 2,560 x 4,096 projection moved 86 GB of weights). fallback_gemm_tiled blocks a 64 x 64

    corner of Y per work-group and walks K in 16-wide tiles with the operands in local memory: **8.0-14.5 -> 71-73

    tok/s** on a 2,048-token prompt, decode unchanged. Same arithmetic - both kernels accumulate over k in ascending

    order with the fma spelled out - and STRATA_FALLBACK_SELFTEST=1 runs both over a problem that crosses every tile

    edge and prints the bitwise difference: 0 of 4,189 values, largest 0.

  • sampler_parity's fixture 18 skips its graph half without the extension instead of ending the process.

Also

  • Setup names the Intel Arc on Windows (display adapters + the display-class registry's 64-bit VRAM, which is the

    true VRAM ΓÇö WMI's AdapterRAM stops at 4 GB), and --backend sycl hands over to sycl/setup_intel.py there too.

  • sycl/CMakeLists.txt: IntelLLVM / MSVC flag branches (/fp:precise is load-bearing ΓÇö quantize_act_parity goes

    from byte-exact to 303k mismatches without it), installer-free oneMKL, and the runtime DLLs staged beside

    strata.exe.

  • GgufExpertSource reads at an offset through OVERLAPPED (there is no pread on Windows).

  • The free-VRAM query needs Level Zero sysman, so setup writes STRATA_DEVICE_FREE_MIB / _TOTAL_MIB from the

    registry, and keeps them across a rewrite when detection flakes.

The expert mirror on Windows (a model that does not fit in VRAM)

The mirror's default size came from /proc/meminfo, which does not exist here, so nothing was ever mirrored on
Windows: a model that does not fit entirely in VRAM refused to run ("6889 experts are neither in VRAM nor mirrored").
GlobalMemoryStatusEx is the same reading the process stats already take there, so with it IQ3_XXS runs on the B70
(17,687 of 24,576 experts in VRAM, the other 6,889 - 11.15 GiB - in pinned host memory the GPU reads over PCIe).

decode @2,048 decode, short prompt prompt reading @2,048
Coder IQ1_M, 23.42 GiB of experts, all resident 43.6 tok/s 76.4 tok/s 74.7 tok/s
IQ3_XXS, 39.97 GiB of experts, 72% resident 30.0 tok/s 19.2 tok/s 1.03 tok/s

Decode absorbs the misses; the prompt does not, and not at the bandwidth bound (535 GiB over PCIe in 1,988 s is
~2% of the link). Reported with the profile that would settle it as
#1549.

The Monitor tab on this card

GPU load and VRAM come from the counters Windows keeps for every WDDM adapter - GPU Engine (per process, per engine,
summed per card as Task Manager does) and GPU Adapter Memory (dedicated bytes) - filtered to the LUID of the adapter
holding the most dedicated memory, so an iGPU beside the card does not add to the numbers. Measured through the API on
the B70: 2.9% idle, 100% while decoding, 30.01 of 32.00 GiB in use (the 23.4 GiB of experts, the KV and the driver's
own buffers), which agrees with the engine's own "12,288 of 12,288 experts resident".

Temperature, power and the PCIe link have no Windows counter at all, so those three tiles stay empty - now with the
dashboard saying why instead of showing a bare dash.

Two traps in that path, both found by measuring rather than reading, both in the commit message: PDH's wildcard API
answers PDH_INVALID_ARGUMENT on this machine for every path (core counters included), so instances come from
Get-Counter -ListSet and each gets its own counter; and a byte counter must be asked for as PDH_FMT_LARGE, because
with PDH_FMT_DOUBLE PDH fills the union with a double and 4.4 GB comes out as 4,437,051,947 GB.

Limits

  • Needs an admin account for VS Build Tools and the Intel driver; the conda + VS + PyPI/NuGet oneMKL pieces install

    per-user.

  • A model whose experts do not all fit needs a RAM mirror (STRATA_MIRROR_MIB) or all-resident sizing; IQ3_XXS

    (17,687/24,576 experts resident here) stalls without one.

  • Windows-SDK macro names have to be avoided as identifiers in the port.

Tests: tools/test_setup_intel_windows.py (new), tools/test_setup_sycl.py, tools/test_setup_amd.py,

tools/test_setup_choices.py ΓÇö 87 pass, no GPU and no network.


🔄 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/1390 **Author:** [@demetree](https://github.com/demetree) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `intel-windows-v2` --- ### 📝 Commits (10+) - [`781f0b0`](https://github.com/Niko1221/Strata/commit/781f0b055216f88a2453f6c648ebadaa67fc8e9d) Windows: native Intel Arc build and setup on 0.1.40.2, verified on a B70 - [`70403cf`](https://github.com/Niko1221/Strata/commit/70403cf95b969155c45e19ceea140fb58615bd6e) docs/INTEL.md: the Windows path, measured on a B70 (OpenCL), and what it costs - [`ce0b24c`](https://github.com/Niko1221/Strata/commit/ce0b24c68b2e650600d242572c1bc9df3d041c69) setup: stage the DLLs a fresh Windows build needs to start at all - [`03ae962`](https://github.com/Niko1221/Strata/commit/03ae962104b55e4226788acd8c58db891e8dc24a) docs/INTEL.md: the Windows A/B, measured the way this file measures - and a correction - [`7694de3`](https://github.com/Niko1221/Strata/commit/7694de38a1e579614aca99420a798fdf32999ab0) prefill: tile the plain-SYCL GEMM fallback (5-9x on the prompt path) - [`6ab6dd0`](https://github.com/Niko1221/Strata/commit/6ab6dd0aabc01fd9e6afcaa9952a1a583b511912) docs/INTEL.md: the tiled prompt fallback, and two traps in measuring here - [`5fedf1b`](https://github.com/Niko1221/Strata/commit/5fedf1b984a7545a815172304076141c2157688f) prefill: STRATA_FALLBACK_NAIVE=1 sends every call to the naive kernel - [`ebb2abc`](https://github.com/Niko1221/Strata/commit/ebb2abce6c4ecad4a6f99266e089ef498e4c378c) sycl: keep the B-series spin bound on Windows (decode 40.9 -> 42.9, +67% at - [`f4cb017`](https://github.com/Niko1221/Strata/commit/f4cb017283c0460c72aad81f4ab8afb26de1a6fe) docs: the spin bound is worth 46-67% of decode on Windows (0.1.40.3 default) - [`184a44b`](https://github.com/Niko1221/Strata/commit/184a44be85b0d979fe171ca254df69db34112fdb) serve: warn when the engine runs without --mtp (the short spin bound drafts nothing) ### 📊 Changes **29 files changed** (+1688 additions, -140 deletions) <details> <summary>View changed files</summary> 📝 `docs/INTEL.md` (+224 -4) 📝 `include/strata/core/expert_cache.hpp` (+43 -0) 📝 `setup.py` (+115 -7) 📝 `src/program/generate.cpp` (+11 -1) 📝 `sycl/CMakeLists.txt` (+91 -5) 📝 `sycl/include/dpct/device.hpp` (+15 -1) 📝 `sycl/include/strata/core/mtp.hpp` (+5 -0) 📝 `sycl/include/strata/core/verify.hpp` (+13 -2) 📝 `sycl/include/strata/kernels/resident_plan_mirror.hpp` (+4 -2) ➕ `sycl/probe/vram_pressure.cpp` (+120 -0) 📝 `sycl/serve/server_intel.py` (+20 -0) ➕ `sycl/serve/strata-sycl.bat` (+44 -0) 📝 `sycl/serve/xe_telemetry.py` (+191 -2) 📝 `sycl/setup_intel.py` (+66 -14) 📝 `sycl/src/core/expert_cache.cpp` (+49 -0) 📝 `sycl/src/core/gguf_expert_source.cpp` (+43 -4) 📝 `sycl/src/core/mtp.cpp` (+75 -28) 📝 `sycl/src/core/pinned.dp.cpp` (+4 -1) 📝 `sycl/src/core/verify.cpp` (+44 -10) 📝 `sycl/src/kernels/cuda/verify_kernels.dp.cpp` (+16 -6) _...and 9 more files_ </details> ### 📄 Description ### What Native Windows support for the SYCL port (`setup --backend sycl`): no Docker, the engine is built from source with Intel oneAPI (`sycl\tools\build.bat`) and run directly (`sycl\serve\strata-sycl.bat`). Plus the fixes the port needs to compile on Windows at all, and the no-command-graph paths ΓÇö this Windows driver exposes no user-mode Level Zero adapter, so the OpenCL adapter has no Graph extension. Replaces #1295: that branch predates 0.1.40.2, and the release merged most of its forward-port (and has its own `STRATA_VERIFY_EAGER` window replay), so this one carries the Windows deltas only ΓÇö 4 commits. ## Measured Arc Pro B70 32 GB, Windows 10, driver 32.0.101.8976, i9-9900 / 64 GB, conda-forge `dpcpp_win-64` 2026.1.1, OpenCL backend, `STRATA_VERIFY_EAGER=1`. Coder IQ1_M, 12,288/12,288 experts resident, `--stream-experts`, INT8 KV, greedy. Each row is this branch's engine (0.1.40-sycl) against the previous 0.1.39-based build of this port, run **interleaved** from the command line (v1, v2, v1, v2, ΓǪ), which is how the numbers in docs/INTEL.md were taken: | | 0.1.39-sycl | 0.1.40-sycl (this PR) | Linux / Level Zero / graphs | |---|---|---|---| | decode, 256 tokens, `--spec 4 --mtp`, 3 pairs | 69.6-69.9 (median 69.7) | **77.2-77.3 (median 77.3)** | 78.2 | | decode, 128 tokens after a 2,048-token prompt, 2 pairs | 37.6 | **38.2-41.1 (median 39.6)** | ΓÇö | | decode, 256 tokens, `--spec 2` (no draft layer), 3 pairs | 53.4-53.9 (median 53.6) | **22.0-22.9 (median 22.3)** | 33.6 | | prompt reading, 2,048 tokens | 8.0-14.5 tok/s | **71-73 tok/s** | 790-1,002 tok/s | | `quantize_act_parity --selftest`, `sampler_parity` | byte-exact, 0 failures | byte-exact, 0 failures | ΓÇö | **Two traps in measuring this backend, both worth passing on.** With a 2,048-token prompt the engine is not run-to-run deterministic: the same binary diverges at token 60 and its state hash differs between two runs. And the web app answers a `temperature: 0.0` request with its own Chat defaults (temperature 1.0, top_p 0.95), so a "greedy" run through it is sampled. The kernel-level self-tests and the CLI's `--greedy` are the checks that hold. **And short runs are not comparable on this backend.** The same build and mode gave 48.9 and 67.5 tok/s on two consecutive 128-token runs, and a 155-token answer through the API contradicted a 256-token run by 25%. My first pass at this table used those short runs and wrongly read as a ~25% regression; interleaved medians over 256 tokens are the numbers above. **The one reproducible regression is `--spec 2`** ΓÇö 22.3 against 53.6 tok/s, interleaved, same card and flags. It is the no-draft-layer path, so it is either the drafter-free window or the suffix drafter's cost; not attributed. `STRATA_VERIFY_PROFILE=1` puts 24 of a 65 ms 4-token window in the GDN hyper-connection read, nearly flat from T=2 (23.6 ms) to T=6 (25.6 ms): a per-layer *fixed* cost of ~0.5 ms over 48 layers ΓÇö kernel dispatch, not arithmetic. `sycl-ls` lists only `opencl:gpu` here, so there is neither the Graph extension nor sysman's free-VRAM query. ## Two things a fresh Windows build needs, both found by building it clean - **The DLLs to start at all.** `strata.exe` statically imports `libmmd.dll` (Intel's runtime, beside `icx`), and the UR adapters load `ur_loader.dll` / `ur_win_proxy_loader.dll` from beside the exe. Without those three staged the engine exits `0xC0000135` (STATUS_DLL_NOT_FOUND) before printing anything ΓÇö it only ran in my earlier build directory by accident. `sycl/CMakeLists.txt` now stages all three with the rest. - **`sycl/tools/build.bat` finds `libircmt.lib` through the build dir's CMakeCache** when the shell has no `icx` on PATH, so the script works from a plain prompt; otherwise the link fails `LNK1104`. ## Three compile bugs in the port's own code `<sycl/sycl.hpp>` reaches the Windows SDK, whose headers define `OUT` (minwindef.h), `small` (rpcndr.h) and `near` (windef.h) as macros. An identifier with one of those names is macro-expanded away: - `sycl/src/kernels/cuda/verify_kernels.dp.cpp`: `template <bool OUT>` loses its parameter, so every use becomes `error: expected expression`. Renamed `WRITE_OUT`. - `sycl/src/program/generate.cpp`: `const int64_t small` becomes `const int64_t char`; `memmem` is POSIX (now `std::search` over the same bytes). - `sycl/src/kernels/sampler_parity.cpp`: `const bool near`. ## Without command graphs `STRATA_VERIFY_EAGER=1` (set by `sycl/serve\strata-sycl.bat`) replays the window, the commit and the drafter's chains on the queue instead of launching captured graphs: - `record_commit()` is the commit graph's body; `capture_*()` record it where there is a graph backend. - The `capture_round` / `capture_step` / `capture_prefill` bodies became `record_*()` functions the drafter replays. `prepare_chain()` refuses: its per-step events only exist inside a recorded graph. - Eager replay **refuses a host-served expert plan** instead of running it ΓÇö the mid-record waits expire into stale plans, which is silently wrong rather than slow. - oneMKL SYCL BLAS has no OpenCL Xe2 backend and the failed attempt poisons the queue, so the prompt GEMM is a plain SYCL kernel there - and the first version of that kernel read the whole weight matrix once **per row** (a 2,048-row chunk of one 2,560 x 4,096 projection moved 86 GB of weights). `fallback_gemm_tiled` blocks a 64 x 64 corner of Y per work-group and walks K in 16-wide tiles with the operands in local memory: **8.0-14.5 -> 71-73 tok/s** on a 2,048-token prompt, decode unchanged. Same arithmetic - both kernels accumulate over k in ascending order with the fma spelled out - and `STRATA_FALLBACK_SELFTEST=1` runs both over a problem that crosses every tile edge and prints the bitwise difference: **0 of 4,189 values, largest 0**. - `sampler_parity`'s fixture 18 skips its graph half without the extension instead of ending the process. ## Also - Setup names the Intel Arc on Windows (display adapters + the display-class registry's 64-bit VRAM, which is the true VRAM ΓÇö WMI's `AdapterRAM` stops at 4 GB), and `--backend sycl` hands over to `sycl/setup_intel.py` there too. - `sycl/CMakeLists.txt`: IntelLLVM / MSVC flag branches (`/fp:precise` is load-bearing ΓÇö `quantize_act_parity` goes from byte-exact to 303k mismatches without it), installer-free oneMKL, and the runtime DLLs staged beside `strata.exe`. - `GgufExpertSource` reads at an offset through `OVERLAPPED` (there is no `pread` on Windows). - The free-VRAM query needs Level Zero sysman, so setup writes `STRATA_DEVICE_FREE_MIB` / `_TOTAL_MIB` from the registry, and keeps them across a rewrite when detection flakes. ## The expert mirror on Windows (a model that does not fit in VRAM) The mirror's default size came from `/proc/meminfo`, which does not exist here, so nothing was ever mirrored on Windows: a model that does not fit entirely in VRAM refused to run ("6889 experts are neither in VRAM nor mirrored"). `GlobalMemoryStatusEx` is the same reading the process stats already take there, so with it IQ3_XXS runs on the B70 (17,687 of 24,576 experts in VRAM, the other 6,889 - 11.15 GiB - in pinned host memory the GPU reads over PCIe). | | decode @2,048 | decode, short prompt | **prompt reading @2,048** | |---|---|---|---| | Coder IQ1_M, 23.42 GiB of experts, all resident | 43.6 tok/s | 76.4 tok/s | **74.7 tok/s** | | IQ3_XXS, 39.97 GiB of experts, 72% resident | 30.0 tok/s | 19.2 tok/s | **1.03 tok/s** | Decode absorbs the misses; the prompt does not, and not at the bandwidth bound (535 GiB over PCIe in 1,988 s is ~2% of the link). Reported with the profile that would settle it as [#1549](https://github.com/Niko1221/Strata/issues/1549). ## The Monitor tab on this card GPU load and VRAM come from the counters Windows keeps for every WDDM adapter - `GPU Engine` (per process, per engine, summed per card as Task Manager does) and `GPU Adapter Memory` (dedicated bytes) - filtered to the LUID of the adapter holding the most dedicated memory, so an iGPU beside the card does not add to the numbers. Measured through the API on the B70: 2.9% idle, 100% while decoding, 30.01 of 32.00 GiB in use (the 23.4 GiB of experts, the KV and the driver's own buffers), which agrees with the engine's own "12,288 of 12,288 experts resident". Temperature, power and the PCIe link have no Windows counter at all, so those three tiles stay empty - now with the dashboard saying why instead of showing a bare dash. Two traps in that path, both found by measuring rather than reading, both in the commit message: PDH's wildcard API answers `PDH_INVALID_ARGUMENT` on this machine for *every* path (core counters included), so instances come from `Get-Counter -ListSet` and each gets its own counter; and a byte counter must be asked for as `PDH_FMT_LARGE`, because with `PDH_FMT_DOUBLE` PDH fills the union with a double and 4.4 GB comes out as 4,437,051,947 GB. ## Limits - Needs an admin account for VS Build Tools and the Intel driver; the conda + VS + PyPI/NuGet oneMKL pieces install per-user. - A model whose experts do not all fit needs a RAM mirror (`STRATA_MIRROR_MIB`) or all-resident sizing; IQ3_XXS (17,687/24,576 experts resident here) stalls without one. - Windows-SDK macro names have to be avoided as identifiers in the port. Tests: `tools/test_setup_intel_windows.py` (new), `tools/test_setup_sycl.py`, `tools/test_setup_amd.py`, `tools/test_setup_choices.py` ΓÇö 87 pass, no GPU and no network. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:23 +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#3423
No description provided.