Repository navigation
GPU: persist early-pipeline keys even without a host pipeline library - #1429
fuzeofficlal wants to merge 1 commit into
Conversation
…ine library Ported onto our background saver: the early list is written when the host has no pipeline library. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I tested the Windows MSVC build of Adding only #347 ( I also pushed a test-only follow-up on this PR head. It forces directory creation and atomic replacement to fail, removes each obstruction and verifies the original keys are saved and reloaded. Removing the dirty-flag restoration on a failed write reproduced the expected test failure. Restoring it passed on the same Proton setup (0.81 s). Cherry-pickable test commit. |
|
Automated triage for the maintainers. Merge candidate. It merges cleanly. On CI: passing ( Generated by Claude Code |
Decouple saving `early-pipelines.txt` from `ID3D12PipelineLibrary1` in `crates/victory-gpu/src/pipeline/library.rs` so runs without a host pipeline library (or when library serialisation fails) still atomically record used title pipeline keys in MRU order for warmup on the next launch. Closes Marvisak#768.
48bf0d7 to
88ecb4c
Compare
Consume the dirty flag with the key snapshot and restore it when writing the snapshot fails. A forced save can then persist the same keys after a temporary filesystem obstruction clears. Exercise the actual cache filename and retry without recording another key. Ported from the VIctory handoff and the retry test on Marvisak/VIctory#1429 with assistance from OpenAI Codex (GPT-6.2-astra). (cherry picked from commit 6ca01748abf0daddf4c6ea804f932d9f85e8159d)
Consume the dirty flag with the key snapshot and restore it when writing the snapshot fails. A forced save can then persist the same keys after a temporary filesystem obstruction clears. Exercise the actual cache filename and retry without recording another key. Ported from the VIctory handoff and the retry test on Marvisak/VIctory#1429 with assistance from OpenAI Codex (GPT-6.2-astra). (cherry picked from commit 6ca01748abf0daddf4c6ea804f932d9f85e8159d)
Consume the dirty flag with the key snapshot and restore it when writing the snapshot fails. A forced save can then persist the same keys after a temporary filesystem obstruction clears. Exercise the actual cache filename and retry without recording another key. Ported from the VIctory handoff and the retry test on Marvisak/VIctory#1429 with assistance from OpenAI Codex (GPT-6.2-astra). (cherry picked from commit 6ca01748abf0daddf4c6ea804f932d9f85e8159d)
|
Automated triage for the maintainers, second look (a review against current Closing because it serves no host once the cause is fixed. On Windows If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
Fixes #768.
Summary
early-pipelines.txtpersistence fromlibrary()inpipeline::library::saveso hosts or compatibility layers whereID3D12PipelineLibrary1is unavailable (or fails serialization) still atomically write sortedearly-pipelines.txtkeys wheneverUSED_CHANGEDis set.SAVE_EVERYthrottle timestamp when dirty state exists, and restoreUSED_CHANGEDon directory or atomic-write errors.Verification
early_pipeline_keys_persist_and_reload_without_a_host_librarytestinglibrary == Nonepersistence, deduplicated sorted output, and next-launch reload viawanted_earlyacross RTX 5090, AMD Radeon(TM) Graphics, and D3D12 WARP.cargo clippy --workspace --all-targets --all-featuresandcargo xtask policy: passed.