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

Open
101Leafy wants to merge 2 commits from upstream-pr/1583 into main
101Leafy commented 2026-11-28 21:57:16 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T21:57:16Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544961124 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1583). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T21:57:16Z. --- 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.
trustno1-coder commented 2026-11-29 08:28:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T08:28:18Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7253125535 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1583#issuecomment-7253125535). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T08:28:18Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1583:upstream-pr/1583'
git switch 'upstream-pr/1583'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1583'
git switch 'upstream-pr/1583'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1583'
git switch 'upstream-pr/1583'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1583'
git switch 'main'
git merge --squash 'upstream-pr/1583'
git switch 'main'
git merge --ff-only 'upstream-pr/1583'
git switch 'main'
git merge 'upstream-pr/1583'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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