Pipeline library: shared folder (VICTORY_LIBRARY_DIR) with a writer lock #1583

Open
github-bot wants to merge 2 commits from github-bot/gh-1583 into main AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 21:57 UTC · original
101Leafy:nv/library-shared → main · +13 −5 · 1 files · 2 commits · open

Runs with different cache folders each built their own host pipeline library, so each folder paid for the same driver compiles again (about 1,300 slow pipelines, around 14 minutes here).

VICTORY_LIBRARY_DIR puts the library file itself in one shared folder. The early and slow pipeline lists stay per cache folder. Unset, nothing changes.

A run takes a lock (host-pipelines.lock) while it writes the shared library, so two runs never write the same temporary file. A save that finds the lock taken skips that save and keeps its pipelines counted as added for the next one. The save at exit waits up to 30 s for the lock. Two runs that both save keep the last one's library, since the host cannot list or merge another library's pipelines.

**@⁠101Leafy** on GitHub · 2026-11-28 21:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1583) `101Leafy:nv/library-shared` → `main` · +13 −5 · 1 files · 2 commits · open Runs with different cache folders each built their own host pipeline library, so each folder paid for the same driver compiles again (about 1,300 slow pipelines, around 14 minutes here). `VICTORY_LIBRARY_DIR` puts the library file itself in one shared folder. The early and slow pipeline lists stay per cache folder. Unset, nothing changes. A run takes a lock (`host-pipelines.lock`) while it writes the shared library, so two runs never write the same temporary file. A save that finds the lock taken skips that save and keeps its pipelines counted as added for the next one. The save at exit waits up to 30 s for the lock. Two runs that both save keep the last one's library, since the host cannot list or merge another library's pipelines.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:59:54 +00:00
github-bot force-pushed github-bot/gh-1583 from 0b3b7d3cd3 to 6f5554d2a4 2026-11-29 07:26:54 +00:00 Compare
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 08:28 UTC · original

Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.

**@⁠trustno1-coder** on GitHub · 2026-11-29 08:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1583#issuecomment-7253125535) Thank you! An earlier version of this pull request was merged into main with its original commits and is part of [v2026.11.29.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.01), where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
github-bot force-pushed github-bot/gh-1583 from 6f5554d2a4 to 5cf20a6d5a 2026-11-29 09:12:20 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/library.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1583/head:github-bot/gh-1583'
git switch 'github-bot/gh-1583'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1583'
git switch 'github-bot/gh-1583'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1583'
git switch 'github-bot/gh-1583'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1583'
git switch 'main'
git merge --squash 'github-bot/gh-1583'
git switch 'main'
git merge --ff-only 'github-bot/gh-1583'
git switch 'main'
git merge 'github-bot/gh-1583'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1583
No description provided.