Skip to content

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

Open
pug205gti6 wants to merge 1 commit into
fxceless:mainfrom
pug205gti6:pr/458-gpu-name-host-pipeline
Open

pug205gti6 wants to merge 1 commit into
fxceless:mainfrom
pug205gti6:pr/458-gpu-name-host-pipeline

Conversation

@pug205gti6

Copy link
Copy Markdown

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.
@Revens2

Revens2 commented Nov 25, 2026

Copy link
Copy Markdown

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.

@MamaLeVrai

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants