GPU: save only changed host pipeline-library shards #1651
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1651
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1651/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@avt0m4t48 on GitHub · 2026-11-24 20:28 UTC · original
avt0m4t48:fix/pipeline-library-shards→main· +506 −95 · 2 files · 2 commits · closed without mergingGPU-PIPELINE-LIBRARY-SIZE, tracked in #1633.
Partition host pipeline-library entries by the first hexadecimal digit of the existing content hash. The sixteen files open on first use, and a save serializes only the opened shards with new entries. Each file is replaced atomically. Failed serialization or writes retain the dirty state for a later save. The early-pipeline list saves independently.
Existing
host-pipelines.binfiles stay untouched. A shard miss can fall back to the legacy library and promote a successful lookup into the new shard. This preserves warm legacy entries. After the first miss the legacy blob can remain in memory until exit, and the legacy file and new shards coexist on disk until the legacy file is removed separately. Saves are serialized within one process. Separate processes sharing a cache still replace a shared shard on a last-writer-wins basis.Verification:
cargo check --locked --tests --target x86_64-pc-windows-msvc -p victory-gpu --features diagnostics,blake3/pure.VICTORY_D3D12_WARP=1andcargo test --locked -p victory-gpu --features diagnostics pipeline::library:: -- --nocapturepassed 7/7, including creating, saving, reopening and loading a real synthetic D3D12 compute pipeline. Windows verificationThis changes file granularity. Merge-tree checks found conflicts with #275 (background saves), #1041 (pipeline deduplication), and #640 (failed-save retry) in the library file. These need reconciliation if combined. Title workload I/O savings and physical-adapter behavior remain unmeasured.
AI-assisted, using original source and synthetic inputs.
@Marvisak on GitHub · 2026-11-25 01:23 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1653. Same sharding task as #1653 (#1633) in four times the code, with a legacy-file fallback that keeps the old blob in memory.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
@Marvisak on GitHub · 2026-11-25 01:33 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/pipeline/library.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
Pull request closed