Devices with WaveLaneCountMax < 32: every split-wave64 compute PSO refuses with per-PSO errors — preflight the capability #1525

Open
opened 2026-11-26 04:56:26 +00:00 by github-bot · 4 comments
Owner

@⁠pickles976 on GitHub · 2026-11-24 17:16 UTC · original

Symptom (predicted, from two external measurements — filing so it's on record before the first iGPU tester hits it)

A device that reports WaveLaneCountMax < 32 (measured in the wild: Intel UHD 13th-gen iGPU reports 16..16 — Marvisak/VIctory#1132) cannot run any of our compute: the split-wave64 lowering emits [WaveSize(32)] for every kernel/compute/mesh program (emit.rs:4302/4402/4565), and out-of-range WaveSize requests are refused at PSO creation — the sibling project has 107 exactly-such refusals as field proof on a 32..32 NVIDIA device ("wave size 64, device max 32", Marvisak/VIctory#1107). Substitute 32-for-16 and every compute PSO of a retail title refuses, with per-PSO errors that will read like a translator bug rather than a device-capability wall. We have no wave_max < 32 guard anywhere (pso.rs decision path checks only the ≥64 property: wave32_only), so today's behavior is the silent-by-attribute mass refusal.

Good news to state in the same breath: our failure here is loud (refusals, not lane-count silent-wrongness — the hint makes the ceiling visible), which is the right failure direction; this issue is about making it legible and early, and deciding the policy.

Proposal (small first step, policy later)

  1. Preflight: at device creation (alongside the existing capability probes), if WaveLaneCountMax < 32, log one decisive line — "device wave max N < 32: console wave64 lowering cannot run; compute will refuse" — and count it in report.json. A tester on an iGPU-only laptop currently learns this from a wall of identical PSO errors.
  2. Policy decision to have (not to discover mid-debug): either treat max < 32 as unsupported-device with that message (honest, done today in substance), or grow the lowering to a wave16 form (split-4×16, wmask = 15) — real work, and the 16-lane host population is thin (Intel iGPUs mostly appear as the second GPU, where the dGPU's range wins). Recommendation: step 1 now; revisit only if someone brings an actual Intel-only machine worth enabling.
**@⁠pickles976** on GitHub · 2026-11-24 17:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/1525) ## Symptom (predicted, from two external measurements — filing so it's on record before the first iGPU tester hits it) A device that reports `WaveLaneCountMax < 32` (measured in the wild: Intel UHD 13th-gen iGPU reports **16..16** — Marvisak/VIctory#1132) cannot run **any** of our compute: the split-wave64 lowering emits `[WaveSize(32)]` for every kernel/compute/mesh program (`emit.rs:4302/4402/4565`), and out-of-range `WaveSize` requests are **refused at PSO creation** — the sibling project has 107 exactly-such refusals as field proof on a 32..32 NVIDIA device ("wave size 64, device max 32", Marvisak/VIctory#1107). Substitute 32-for-16 and every compute PSO of a retail title refuses, with per-PSO errors that will read like a translator bug rather than a device-capability wall. We have no `wave_max < 32` guard anywhere (pso.rs decision path checks only the ≥64 property: `wave32_only`), so today's behavior is the silent-by-attribute mass refusal. Good news to state in the same breath: our failure here is **loud** (refusals, not lane-count silent-wrongness — the hint makes the ceiling visible), which is the right failure direction; this issue is about making it *legible and early*, and deciding the policy. ## Proposal (small first step, policy later) 1. **Preflight**: at device creation (alongside the existing capability probes), if `WaveLaneCountMax < 32`, log one decisive line — "device wave max N < 32: console wave64 lowering cannot run; compute will refuse" — and count it in `report.json`. A tester on an iGPU-only laptop currently learns this from a wall of identical PSO errors. 2. **Policy decision to have (not to discover mid-debug)**: either treat `max < 32` as unsupported-device with that message (honest, done today in substance), or grow the lowering to a wave16 form (split-4×16, `wmask = 15`) — real work, and the 16-lane host population is thin (Intel iGPUs mostly appear as the *second* GPU, where the dGPU's range wins). Recommendation: step 1 now; revisit only if someone brings an actual Intel-only machine worth enabling.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:56:26 +00:00
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 17:53 UTC · original

Step 1 of the proposal is already in main (9e3831e), in the launcher's preflight, so no new check is needed:

  • crates/xcl/src/preflight.rs:73-78: from the adapter's WaveLaneCountMin / WaveLaneCountMax, a range with neither 64 nor 32 in it (Intel UHD's 16–16, for one) is an error: "waves of 16–16 lanes: neither 64 nor 32, the console's programs cannot run". 32–32 (NVIDIA) gets the split-form note.
  • It runs at every launch (launcher.rs:353-354, preflight::run / print), and the checks go into the report (checks_round_trip_through_the_report).
  • Test: preflight::tests::wave_width covers 32–32 (note), 64–64 (nothing) and 8–16 (error).

What it doesn't do is stop the boot: the title still starts and every compute PSO is then refused one by one. Whether an error here should end the run early is step 2's policy question.

AI use: Claude Code (Claude Opus 5.5) read the code and wrote this.

**@⁠upipibi** on GitHub · 2026-11-24 17:53 UTC · [original](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7139856650) Step 1 of the proposal is already in `main` (`9e3831e`), in the launcher's preflight, so no new check is needed: - `crates/xcl/src/preflight.rs:73-78`: from the adapter's `WaveLaneCountMin` / `WaveLaneCountMax`, a range with neither 64 nor 32 in it (Intel UHD's 16–16, for one) is an **error**: "waves of 16–16 lanes: neither 64 nor 32, the console's programs cannot run". 32–32 (NVIDIA) gets the split-form note. - It runs at every launch (`launcher.rs:353-354`, `preflight::run` / `print`), and the checks go into the report (`checks_round_trip_through_the_report`). - Test: `preflight::tests::wave_width` covers 32–32 (note), 64–64 (nothing) and 8–16 (error). What it doesn't do is stop the boot: the title still starts and every compute PSO is then refused one by one. Whether an error here should end the run early is step 2's policy question. AI use: Claude Code (Claude Opus 5.5) read the code and wrote this.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 17:55 UTC · original

Closing this — my premise was wrong, as @⁠upipibi says. The preflight I claimed existed nowhere is exactly the check I proposed (preflight.rs:73-79): a wave range containing neither 32 nor 64 is an Error ("the console's programs cannot run") before the first PSO, and there's even a Note explaining split-wave64 for 32-only hosts — better than my proposal asked for. The grep that produced "no guard anywhere" covered gpu/recomp/* and the capability probe site but never the launcher's preflight file, which is where capability policy actually lives in this codebase — a reminder that absence-of-evidence is my failure mode, not the repo's. Residual from my proposal that genuinely is not covered, small enough to state rather than keep open: surfacing the wave range as a report.json field for remote triage (today it is a preflight line, so a user without console output still needs the screenshot). Take it or fold it into #1407's diagnostics workstream; this issue as filed is invalid. Closing.

**@⁠pickles976** on GitHub · 2026-11-24 17:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7139906469) **Closing this — my premise was wrong, as @⁠upipibi says.** The preflight I claimed existed nowhere is exactly the check I proposed (`preflight.rs:73-79`): a wave range containing neither 32 nor 64 is an `Error` ("the console's programs cannot run") *before* the first PSO, and there's even a `Note` explaining split-wave64 for 32-only hosts — better than my proposal asked for. The grep that produced "no guard anywhere" covered `gpu/recomp/*` and the capability probe site but never the launcher's preflight file, which is where capability policy actually lives in this codebase — a reminder that absence-of-evidence is my failure mode, not the repo's. Residual from my proposal that genuinely is not covered, small enough to state rather than keep open: surfacing the wave range as a `report.json` field for remote triage (today it is a preflight line, so a user without console output still needs the screenshot). Take it or fold it into #1407's diagnostics workstream; this issue as filed is invalid. Closing.
Author
Owner

@⁠b3IKK on GitHub · 2026-11-24 20:20 UTC · original

Checked against main@c160d86: proposal item 1 (a decisive line, early, and in report.json) is already there — crates/xcl/src/preflight.rs:73-79:

let wave64 = g.wave_min <= 64 && g.wave_max >= 64;
let wave32 = g.wave_min <= 32 && g.wave_max >= 32;
if !wave64 && wave32 {
    v.push(check(Level::Note, format!("waves of {}–{} lanes: the console's 64-lane programs run as two 32-lane halves (…)")));
} else if !wave64 && !wave32 && g.wave_max > 0 {
    v.push(check(Level::Error, format!("waves of {}–{} lanes: neither 64 nor 32, the console's programs cannot run", g.wave_min, g.wave_max), None));
}

so a 16..16 iGPU gets one Error before the game starts, and launcher.rs:353-354 puts the same list in report.json (report.rs:52, environment). preflight::tests::wave_width pins the 8–16 case (preflight.rs:232).

What is still true is your item 2, and it is a policy call rather than a missed guard: pso::wave32_only(min, max) is min..=32-style (pso.rs:742-758), so a 16-lane device takes the split-wave64 path and every compute PSO emits [WaveSize(32)], which the device refuses per PSO — the wall of refusals is still behind the preflight line. Growing a wave16 lowering (wmask = 15) or refusing the device outright are both open, and the second is what the preflight currently says in words.

No PR for this from me — flagging so nobody spends a day adding the line that is already printed.

Hardware / software: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 MSVC, DXC 1.9.2609.5.

AI use: OpenCode, Gemini 4 Neon — read the preflight and PSO paths and wrote this up.

**@⁠b3IKK** on GitHub · 2026-11-24 20:20 UTC · [original](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7143399760) Checked against `main@c160d86`: proposal item 1 (a decisive line, early, and in `report.json`) is already there — `crates/xcl/src/preflight.rs:73-79`: ```rust let wave64 = g.wave_min <= 64 && g.wave_max >= 64; let wave32 = g.wave_min <= 32 && g.wave_max >= 32; if !wave64 && wave32 { v.push(check(Level::Note, format!("waves of {}–{} lanes: the console's 64-lane programs run as two 32-lane halves (…)"))); } else if !wave64 && !wave32 && g.wave_max > 0 { v.push(check(Level::Error, format!("waves of {}–{} lanes: neither 64 nor 32, the console's programs cannot run", g.wave_min, g.wave_max), None)); } ``` so a 16..16 iGPU gets one `Error` before the game starts, and `launcher.rs:353-354` puts the same list in `report.json` (`report.rs:52`, `environment`). `preflight::tests::wave_width` pins the 8–16 case (`preflight.rs:232`). What is still true is your item 2, and it is a policy call rather than a missed guard: `pso::wave32_only(min, max)` is `min..=32`-style (`pso.rs:742-758`), so a 16-lane device takes the split-wave64 path and every compute PSO emits `[WaveSize(32)]`, which the device refuses per PSO — the wall of refusals is still behind the preflight line. Growing a wave16 lowering (`wmask = 15`) or refusing the device outright are both open, and the second is what the preflight currently says in words. No PR for this from me — flagging so nobody spends a day adding the line that is already printed. Hardware / software: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 MSVC, DXC 1.9.2609.5. AI use: OpenCode, Gemini 4 Neon — read the preflight and PSO paths and wrote this up.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 00:42 UTC · original

I prepared a local diagnostic patch based on 80f4819098e921f2e1ab371144d4832f68ffedd6. Launcher preflight already flags devices whose wave range supports neither 32 nor 64 lanes. The patch records the actual runtime device’s minimum and maximum under d3d12.wave_lane_range and logs a startup diagnostic if the device reports a maximum of 1–31 lanes.

Both new tests passed with cargo test -p xcl --lib wave_lane_report_tests. All six existing preflight tests passed with cargo test -p xcl --lib preflight::tests. The test title’s report showed {"min":8,"max":32} on the Arc A770. The complete workspace run had the same 26 failure names and 23 runtime skip events as the clean base. The patch adds two passes. Full Intel Arc baseline and commands

Not tested on physical hardware below 32 lanes or in a retail smoke run. The patch is local. AI use Codex in T3 Code (gpt-6.2-sol) for implementation and validation.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 00:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7148800847) I prepared a local diagnostic patch based on `80f4819098e921f2e1ab371144d4832f68ffedd6`. Launcher preflight already flags devices whose wave range supports neither 32 nor 64 lanes. The patch records the actual runtime device’s minimum and maximum under `d3d12.wave_lane_range` and logs a startup diagnostic if the device reports a maximum of 1–31 lanes. Both new tests passed with `cargo test -p xcl --lib wave_lane_report_tests`. All six existing preflight tests passed with `cargo test -p xcl --lib preflight::tests`. The test title’s report showed `{"min":8,"max":32}` on the Arc A770. The complete workspace run had the same 26 failure names and 23 runtime skip events as the clean base. The patch adds two passes. [Full Intel Arc baseline and commands](https://git.gtahub.st/github/xcl-dev--xcl/issues/42) **Not tested** on physical hardware below 32 lanes or in a retail smoke run. The patch is local. **AI use** Codex in T3 Code (`gpt-6.2-sol`) for implementation and validation.
This discussion has been locked. Commenting is limited to contributors.
No description provided.