Diagnostics: log the chosen wave mode per PSO class — a wrong wave mode is currently invisible in the log #1407

Open
opened 2026-11-26 04:53:05 +00:00 by github-bot · 2 comments
Owner

@⁠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=1 force-splits; the negative wave64 opt (emit.rs:503) exists for 64-lane hosts; an uninformed perf-tune can reproduce VIctory#1086-row-2 exactly.
  • Graphics PS wave size is driver-chosen (graphics_wave32 comment: 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:280 is the precedent):

[SHADER] wave mode: compute=split(device wave32) vs=driver32-possible ps=... 

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.

**@⁠pickles976** on GitHub · 2026-11-24 15:40 UTC · [original](https://github.com/xcl-dev/xcl/issues/1407) ## 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=1` force-splits; the negative `wave64` opt (`emit.rs:503`) exists for 64-lane hosts; an uninformed perf-tune can reproduce VIctory#1086-row-2 exactly. - Graphics PS wave size is driver-chosen (`graphics_wave32` comment: 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:280` is the precedent): ``` [SHADER] wave mode: compute=split(device wave32) vs=driver32-possible ps=... ``` 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 locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:53:05 +00:00
Author
Owner

@⁠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).

**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-24 15:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/1407#issuecomment-7136448301) 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).
Author
Owner

@⁠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 32 from range 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.

**@⁠pickles976** on GitHub · 2026-11-24 15:44 UTC · [original](https://github.com/xcl-dev/xcl/issues/1407#issuecomment-7136538210) 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 32` from `range 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.