victory warm: each pipeline without a host pipeline is told, with why (#1881) #1923

Open
github-bot wants to merge 1 commit from github-bot/gh-1923 into main AGit
Owner

@⁠kibagami-nc on GitHub · 2026-11-29 02:51 UTC · original
kibagami-nc:warm/no-host-pipeline-why → main · +91 −24 · 5 files · 1 commits · open

Rebased on main (cec481f4). Main's new pieces are kept:

  • Shared mode: a made pipeline is marked once the library has it.
  • The library pass: fill_library's own use of known::make counts a made pipeline when no reason comes back.
  • Shader.mirror: kept beside the changed translated field.

victory warm ends with N made in X s (27 have no host pipeline, …). Its processes' stderr goes to null, so that count says how many have no host pipeline but not which, or why. In #1881 a user took the 27 for an error, and @⁠Jesper-Andersson asked for the key and the reason of each.

Now each one is told when its process reports it, the way one that ended its process already is:

pipeline 51234 <key>: no host pipeline: compute 660814153af43185 does not translate: converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported
pipeline 60001 <key>: no host pipeline: refused [vertex 1122334455667788, pixel 99aabbccddeeff00]

Change

  • known::make now reports why there is no host pipeline, instead of whether there is one. The reason is one of:
    • each shader of the pipeline that does not translate, with the translator's error;
    • otherwise refused with its shaders;
    • or that its entry, or one of its shaders, could not be read.
  • Shader keeps the translator's error beside the translation (translated: OnceLock<Result<Translated, String>>, read through Shader::refusal). translated() is unchanged for its callers. The diagnostics' make::missing reads the error through refusal too.
  • The child process writes made <n> <ms> 0 <why>, and the parent takes the rest of the line.

Nothing changes in what is made, kept or counted.

Tests

  • why_a_pipeline_has_none_names_the_shader_and_the_reason (known.rs):
    • a compute shader that does not translate is named, with the translator's error;
    • shaders that translate, or were not tried, give refused [vertex …, pixel …];
    • of two shaders, the one that does not translate is named.
  • cargo test -p victory-gpu --locked --lib: 914 passed, the new test among them. Two others fail on main itself: every_switch_of_the_translator_is_in_the_key (VICTORY_SCALAR_SPLITS is no longer read by the translator) and records_copied_as_bytes_are_made_at_the_next_sync, which passes when run again.
  • A test of main's in pipeline/host.rs builds a Shader by hand; it now sets Ok(Translated).
  • cargo test -p victory --locked: 79, 1 and 2 passed.
  • cargo clippy -p victory-gpu -p victory --all-targets: nothing in the changed lines.

Not tried here on a full victory warm run. The new protocol runs between a parent and a child of the same executable.

**@⁠kibagami-nc** on GitHub · 2026-11-29 02:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1923) `kibagami-nc:warm/no-host-pipeline-why` → `main` · +91 −24 · 5 files · 1 commits · open **Rebased on main (cec481f4).** Main's new pieces are kept: - **Shared mode:** a made pipeline is marked once the library has it. - **The library pass:** `fill_library`'s own use of `known::make` counts a made pipeline when no reason comes back. - **`Shader.mirror`:** kept beside the changed `translated` field. `victory warm` ends with `N made in X s (27 have no host pipeline, …)`. Its processes' stderr goes to null, so that count says how many have no host pipeline but not which, or why. In #1881 a user took the 27 for an error, and @⁠Jesper-Andersson asked for the key and the reason of each. Now each one is told when its process reports it, the way one that ended its process already is: ``` pipeline 51234 <key>: no host pipeline: compute 660814153af43185 does not translate: converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported pipeline 60001 <key>: no host pipeline: refused [vertex 1122334455667788, pixel 99aabbccddeeff00] ``` ## Change - **`known::make`** now reports why there is no host pipeline, instead of whether there is one. The reason is one of: - each shader of the pipeline that does not translate, with the translator's error; - otherwise `refused` with its shaders; - or that its entry, or one of its shaders, could not be read. - **`Shader`** keeps the translator's error beside the translation (`translated: OnceLock<Result<Translated, String>>`, read through `Shader::refusal`). `translated()` is unchanged for its callers. The diagnostics' `make::missing` reads the error through `refusal` too. - **The child process** writes `made <n> <ms> 0 <why>`, and the parent takes the rest of the line. Nothing changes in what is made, kept or counted. ## Tests - `why_a_pipeline_has_none_names_the_shader_and_the_reason` (`known.rs`): - a compute shader that does not translate is named, with the translator's error; - shaders that translate, or were not tried, give `refused [vertex …, pixel …]`; - of two shaders, the one that does not translate is named. - `cargo test -p victory-gpu --locked --lib`: 914 passed, the new test among them. Two others fail on main itself: `every_switch_of_the_translator_is_in_the_key` (`VICTORY_SCALAR_SPLITS` is no longer read by the translator) and `records_copied_as_bytes_are_made_at_the_next_sync`, which passes when run again. - A test of main's in `pipeline/host.rs` builds a `Shader` by hand; it now sets `Ok(Translated)`. - `cargo test -p victory --locked`: 79, 1 and 2 passed. - `cargo clippy -p victory-gpu -p victory --all-targets`: nothing in the changed lines. Not tried here on a full `victory warm` run. The new protocol runs between a parent and a child of the same executable.
`victory warm` counted the pipelines that got no host pipeline, but its
processes' stderr goes to null, so which ones and why were lost (#1881).
known::make now tells why instead of whether: each shader that does not
translate, with the translator's error (Shader keeps it beside the
translation: Shader::refusal), else "refused", or an entry that could not be
read. The child writes it after `made <n> <ms> 0`; the parent prints it with
the pipeline's number and key.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 02:56:24 +00:00
github-bot force-pushed github-bot/gh-1923 from d812b3ad35 to be17785978 2026-11-29 20:46:17 +00:00 Compare
@ -344,0 +361,4 @@
.filter_map(|s| Some(format!("{s:?} does not translate: {}", s.refusal()?)))
.collect();
if failed.is_empty() {
format!("refused {shaders:?}")
Author
Owner

@⁠tyr0nsur on GitHub · 2026-12-01 13:30 UTC · original

#4897 is a concrete case for this branch. Its two preload logs contain the same 227 mesh and 17 graphics shader keys refused with 0x8007000E. Its later warm --used logs only show the aggregate failures. This fallback would identify the entries as refused, but would still leave the failing D3D12 stage and HRESULT in the worker's discarded stderr.

Could the summary preserve the stage and HRESULT when host creation reports them? The generic fallback still makes sense when there is no D3D12 error. A smaller alternative is to point users to VICTORY_LOG_FILE with VICTORY_LOG_SYNC=1 for driver details. I verified that both parent and child log to that file in a synthetic Windows test with the same stderr and stdout setup.

**@⁠tyr0nsur** on GitHub · 2026-12-01 13:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1923#discussion_r4754838992) #4897 is a concrete case for this branch. Its two preload logs contain the same 227 mesh and 17 graphics shader keys refused with `0x8007000E`. Its later `warm --used` logs only show the aggregate failures. This fallback would identify the entries as `refused`, but would still leave the failing D3D12 stage and HRESULT in the worker's discarded stderr. Could the summary preserve the stage and HRESULT when host creation reports them? The generic fallback still makes sense when there is no D3D12 error. A smaller alternative is to point users to `VICTORY_LOG_FILE` with `VICTORY_LOG_SYNC=1` for driver details. I verified that both parent and child log to that file in a synthetic Windows test with the same stderr and stdout setup.
This pull request has changes conflicting with the target branch.
  • apps/victory/src/warm.rs
  • crates/victory-gpu/src/pipeline/known.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1923/head:github-bot/gh-1923'
git switch 'github-bot/gh-1923'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1923'
git switch 'github-bot/gh-1923'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1923'
git switch 'github-bot/gh-1923'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1923'
git switch 'main'
git merge --squash 'github-bot/gh-1923'
git switch 'main'
git merge --ff-only 'github-bot/gh-1923'
git switch 'main'
git merge 'github-bot/gh-1923'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1923
No description provided.