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

Open
opened 2026-11-24 17:16:50 +00:00 by pickles976 · 4 comments
pickles976 commented 2026-11-24 17:16:50 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T17:16:50Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6587404561 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1525). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T17:16:50Z. --- ## 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.
upipibi commented 2026-11-24 18:09:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T17:53:37Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7139856650 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7139856650). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T17:53:37Z. --- 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.
pickles976 commented 2026-11-24 18:09:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T17:55:43Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7139906469 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7139906469). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T17:55:43Z. --- **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.
b3IKK commented 2026-11-24 21:09:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T20:20:41Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7143399760 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7143399760). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T20:20:41Z. --- 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.
JJAutoCompare commented 2026-11-25 01:10:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T00:42:59Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7148800847 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1525#issuecomment-7148800847). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T00:42:59Z. --- 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://github.com/xcl-dev/xcl/issues/42#issuecomment-7148783002) **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.
Sign in to join this conversation.
No labels
No milestone
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.

Reference
xcl-dev/xcl#1515
No description provided.