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

Closed
opened 2026-11-24 15:40:17 +00:00 by pickles976 · 2 comments
pickles976 commented 2026-11-24 15:40:17 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T15:40:17Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:6585568670 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1407). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T15:40:17Z. --- ## 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.
tiagonogueiraa-bit commented 2026-11-24 16:07:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonogueiraa-bit on 2026-11-24T15:41:26Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7136448301 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/1407#issuecomment-7136448301). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-24T15:41:26Z. --- 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 commented 2026-11-24 16:07:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T15:44:40Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7136538210 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/1407#issuecomment-7136538210). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T15:44:40Z. --- 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.
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#1397
No description provided.