Diagnostics: log the chosen wave mode per PSO class — a wrong wave mode is currently invisible in the log #1407
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#1407
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 15:40 UTC · original
The problem: a wrong wave mode is the one failure that is invisible in the log
Marvisak/VIctory#1086 (best field document of the weekend — nine stacked changes to run the world stage on a 4070 SUPER) documents a failure class that our log tail cannot currently exclude: their runtime legalized a wave64 compute PSO without lane remap on a 32-lane host (native Wave32 path), so every cross-lane compute result was wrong, the title's own gating never passed, and the run sat at world-loading forever — healthy GPU, no removals, no OOM, no refusals, nothing in the log. Our own pinned data carries runs with the same downstream signature ("GPU idle at the stop, CPU-side completion never arrives", #175 cohort) where the wave mode was assumed correct, not logged — we cannot retroactively exclude this class in any past report.
We are immune by default (
wave32_only_for_device,pso.rs:596, unknown range ⇒ split) — the point is that immunity is currently a silent property:XCL_SPLIT_WAVE64=1force-splits; the negativewave64opt (emit.rs:503) exists for 64-lane hosts; an uninformed perf-tune can reproduce VIctory#1086-row-2 exactly.graphics_wave32comment: an RDNA2 driver may pick 32 despite advertising 64) — another decision invisible at runtime today.Proposal (small, precedented)
One
xlog_info!line per PSO class at first compile, same channel as the existing[SHADER]diagnostics (pso.rs:280is the precedent):Acceptance: log tail alone determines, for each class, whether split lowering, native wave64, or native wave32 was chosen and why (device wave range / env override / unknown-range default). Turns "check the wave mode" from a source read into a grep — and makes every past and future "hangs at loading on NVIDIA" report triageable with one question.
github-bot referenced this issue2026-11-26 04:53:06 +00:00
@tiagonogueiraa-bit on GitHub · 2026-11-24 15:41 UTC · original
claiming: one
[SHADER] wave mode:line, logged once when the wave mode is first decided (wave32_only_for_device/graphics_wave32_for_device). It says split vs native wave64 for compute / mesh / geometry, whether VS / PS get the upper-lanes form, and why: the device's wave range,XCL_SPLIT_WAVE64=1, or an unknown range. The text comes from a pure function with a unit test. PR within the hour.Written with Claude Code (Claude Opus 5.5).
@pickles976 on GitHub · 2026-11-24 15:44 UTC · original
Looks exactly right — go ahead. Two precision asks from the #1086 discussion behind this, both cheap in the same line: ① make the reason field distinguish
range includes 32fromrange unknown— VIctory's host had an advertised range containing 32 (not an unknown), and the cohort value of this line is answering "which of the three decision paths fired" from a log tail alone; ② if it is one line, print the decided-at class in a fixed order (compute, mesh, geometry, vs/ps) so reports can be diffed run-to-run mechanically. No changes to scope; the acceptance in the issue stands as written.mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175