Repository navigation
Conversation
…ild on cores - 2 The library was one blob serialised whole at every save: the pre-build (`translate --cache --pipelines`) rewrote it every ~70 s, 23 times in 27 minutes, up to 387 MB each (~7 GB to a USB disk) while every logical core compiled pipelines, and the machine froze. - Segments: `host-pipelines-NNNNN.bin` (and the older single file) are each loaded as they are; a run stores into a library of its own, saved as the next segment, then into a fresh one. Every pipeline is written once. Lookups try each segment. A segment the host refuses (another driver) is deleted. The pre-build's list holds for the segments' hashes. - A save of new pipelines waits for them to reach 10% of the bytes saved and a minute, or ten minutes, or the run's end; the early and pre-built lists (small) go with any save. - `victory translate` (and the pre-build) defaults to every logical core but two. Tests: segment files in order; a stored pipeline is in the segment saved from it and not in the fresh library after; the save rule; a rejected blob. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The pipeline library was one blob serialised whole at every save. During the pre-build (
victory translate --cache --pipelines), it was rewritten every ~70 s: 23 saves in 27 minutes, growing to 336-387 MB each (~7 GB to a USB SSD), while every logical core compiled pipelines. The machine froze.What
host-pipelines-NNNNN.bin(plus the older singlehost-pipelines.bin) are each loaded as they are. A run stores into a library of its own, saved as the next segment, then stores into a fresh one, so every pipeline is written once. Lookups try each segment. A segment the host refuses (driver change) is deleted. The pre-build's list holds for the segments' hashes.victory translateand the pre-build default to every logical core but two (--jobsstill overrides).Tests
cargo test -p victory-gpu --lib -- pipeline::library: 7 passed. Clippy is clean, and the diag build is OK.Base: fork main d8ebe28.
🤖 Generated with Claude Code