GPU: name a host pipeline a worker has held for a minute #520

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

@⁠pug205gti6 on GitHub · 2026-11-25 01:58 UTC · original
pug205gti6:pr/458-gpu-name-host-pipeline → main · +108 −2 · 3 files · 1 commits · open

Some driver compiles never end. On an RX 9070 XT (Adrenalin 32.0.32029.2010), AMD's compiler kept one pipeline worker on compute 39f0e9aeb156a61c for whole runs while its own heap grew past 30 GB, and the frame line only ever said "(1 being made)".

Each worker now records which pipeline it holds and since when. From the frame statistics, every second, a pipeline held for 60 s or more is named once in a warning with its shaders as stage hash, the hashes VICTORY_SKIP_PIPELINES takes. Pipelines made on the calling thread (make::now, no workers) are not watched: a never-ending compile there stops that thread outright.

**@⁠pug205gti6** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/fxceless/victory-fork/pull/520) `pug205gti6:pr/458-gpu-name-host-pipeline` → `main` · +108 −2 · 3 files · 1 commits · open Some driver compiles never end. On an RX 9070 XT (Adrenalin 32.0.32029.2010), AMD's compiler kept one pipeline worker on compute 39f0e9aeb156a61c for whole runs while its own heap grew past 30 GB, and the frame line only ever said "(1 being made)". Each worker now records which pipeline it holds and since when. From the frame statistics, every second, a pipeline held for 60 s or more is named once in a warning with its shaders as `stage hash`, the hashes VICTORY_SKIP_PIPELINES takes. Pipelines made on the calling thread (make::now, no workers) are not watched: a never-ending compile there stops that thread outright.
Some driver compiles never end. On an RX 9070 XT (Adrenalin 32.0.32029.2010),
AMD's compiler kept one pipeline worker on compute 39f0e9aeb156a61c for whole
runs while its own heap grew past 30 GB, and the frame line only ever said
"(1 being made)".

Each worker now records which pipeline it holds and since when. From the frame
statistics, every second, a pipeline held for 60 s or more is named once in a
warning with its shaders as `stage hash`, the hashes VICTORY_SKIP_PIPELINES
takes. Pipelines made on the calling thread (make::now, no workers) are not
watched: a never-ending compile there stops that thread outright.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:45:15 +00:00
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 07:36 UTC · original

Duplicate of #458: @⁠IxMxAMAR opened this patch 46 minutes earlier, and gh pr diff returns the same bytes for both (+108/-2 on 3 file(s), same title).

Please continue in #458 so the review history and any test data stay in one place.
Thanks.

**@⁠Revens2** on GitHub · 2026-11-25 07:36 UTC · [original](https://github.com/fxceless/victory-fork/pull/520#issuecomment-7156050713) Duplicate of #458: @⁠IxMxAMAR opened this patch 46 minutes earlier, and `gh pr diff` returns the same bytes for both (+108/-2 on 3 file(s), same title). Please continue in #458 so the review history and any test data stay in one place. Thanks.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:59 UTC · original

Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head d6744f6 into main f85101b in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins, depth_written, a sort; PR #841 fixes them); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: run 1: one failure The failure is indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, which fails on main itself most runs here (PR #849 fixes its assertion; see issue #850). Run 2: one failure in a different test, inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offset; I did not look at it further, and it passed in my earlier whole-suite runs of main. The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:59 UTC · [original](https://github.com/fxceless/victory-fork/pull/520#issuecomment-7160439735) Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `d6744f6` into `main` `f85101b` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins`, `depth_written`, a sort; PR #841 fixes them); with `--all-features` it fails with the same number of errors as `main` (4). This PR adds none and removes none. `cargo test --workspace --locked`: run 1: one failure The failure is `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields`, which fails on `main` itself most runs here (PR #849 fixes its assertion; see issue #850). Run 2: one failure in a different test, `inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offset`; I did not look at it further, and it passed in my earlier whole-suite runs of `main`. The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-520'
git switch 'github-bot/gh-520'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-520'
git switch 'github-bot/gh-520'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-520'
git switch 'main'
git merge --squash 'github-bot/gh-520'
git switch 'main'
git merge --ff-only 'github-bot/gh-520'
git switch 'main'
git merge 'github-bot/gh-520'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.