Devices with WaveLaneCountMax < 32: every split-wave64 compute PSO refuses with per-PSO errors — preflight the capability #1525
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1525
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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-rangeWaveSizerequests 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 nowave_max < 32guard 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)
WaveLaneCountMax < 32, log one decisive line — "device wave max N < 32: console wave64 lowering cannot run; compute will refuse" — and count it inreport.json. A tester on an iGPU-only laptop currently learns this from a wall of identical PSO errors.max < 32as 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 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'sWaveLaneCountMin/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.launcher.rs:353-354,preflight::run/print), and the checks go into the report (checks_round_trip_through_the_report).preflight::tests::wave_widthcovers 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 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 anError("the console's programs cannot run") before the first PSO, and there's even aNoteexplaining split-wave64 for 32-only hosts — better than my proposal asked for. The grep that produced "no guard anywhere" coveredgpu/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 areport.jsonfield 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 on GitHub · 2026-11-24 20:20 UTC · original
Checked against
main@c160d86: proposal item 1 (a decisive line, early, and inreport.json) is already there —crates/xcl/src/preflight.rs:73-79:so a 16..16 iGPU gets one
Errorbefore the game starts, andlauncher.rs:353-354puts the same list inreport.json(report.rs:52,environment).preflight::tests::wave_widthpins 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)ismin..=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 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 underd3d12.wave_lane_rangeand 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 withcargo 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 commandsNot 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.