Skip to content

[pr-fix] Isolate pipeline OOM retry signals by thread - #1

Open
slyd3 wants to merge 1 commit into
superboynick:perf/oom-refusal-retryfrom
slyd3:fix-oom-retry-thread-isolation
Open

slyd3 wants to merge 1 commit into
superboynick:perf/oom-refusal-retryfrom
slyd3:fix-oom-retry-thread-isolation

Conversation

@slyd3

@slyd3 slyd3 commented Nov 30, 2026

Copy link
Copy Markdown

Fixes # (no issue; follow-up to trustno1-coder#2616)

What it changes

The proposed OOM retry flag is process-wide. Concurrent pipeline builds can consume each other's signals, preventing an OOM retry or retrying an unrelated failure. Make the signal thread-local, clear it at the start of a build, and discard it if the build panics. This PR targets the OOM-retry branch, not main.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): synthetic Windows unit tests; no gameplay profile tested.
  • Before: cargo test --locked -p victory-gpu --lib out_of_memory -- --test-threads=1 failed the two new regression tests on commit 0224c27.
  • After: cargo test --locked -p victory-gpu --lib pipeline:: -- --test-threads=1 passed: 75 passed, 2 ignored. git diff --check passed.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): not applicable; no shader changes.
  • cargo test passed for the crates it touches: yes, targeted pipeline library tests; the full crate suite was not run.

Checked for overlap

Keep retry signals local to the thread building the pipeline and discard them on panic. Add regressions for concurrent builds and panics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant