Repository navigation
GPU: pipeline library saves run one at a time, with per-process temporary files - #237
fffluffy-dev wants to merge 1 commit into
Conversation
…rary files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Duplicate of #164? |
|
I tested recovery of the early-pipeline list on Windows with this change integrated onto On unmodified main, the second save still left only the original key on disk. With I published the regression test as a separate commit that applies cleanly to this PR head. It runs with |
Two saves of the pipeline library could run at once: the end-of-run
save(true)and a pipeline worker's periodicsave(false). Both wrote the samehost-pipelines.tmpandearly-pipelines.tmp, so one could truncate the file the other was about to rename over the library. Nothing keeps two runs off one cache folder either.one_save): a periodic save that finds one running is skipped; the end-of-run save waits for it. Same idea as GPU: serialize pipeline library atomic writes with unique temp files Marvisak/VIctory#1660..tmp-<pid>) and removed when a rename fails.addedis lowered by what was saved only after the rename succeeds. Before, it was zeroed before the rename, so a failed rename dropped those pipelines until another one was added.Validation (cargo-xwin, x86_64-pc-windows-msvc, tests under Wine):
cargo test -p victory-gpu112 passed, 1 ignored, with two new tests (a_periodic_save_skips_a_running_one_and_an_end_of_run_save_waits,a_save_leaves_a_whole_file_and_no_temporary_one); clippy-D warningsclean with and without--all-features;cargo xtask policyok. Not run against the title.AI use: written with Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.