Reuse shared warm marks for the selected adapter library #4193

Open
github-bot wants to merge 1 commit from github-bot/gh-4192 into main AGit
Owner

@⁠Hellwire on GitHub · 2026-11-30 17:17 UTC · original
Hellwire:fix/selected-adapter-pipeline-warm-cache → main · +54 −34 · 3 files · 1 commits · open

Problem

victory warm --used with VICTORY_WARM_SHARED=1 checks for a pipeline library at the root of the cache. The runtime now stores the active library under adapters/<device>. This makes a second preload rebuild already cached PSOs when there is no root-level library.

Change

Use the same adapter selection and cache path as the runtime, then check that the selected D3D12 device can open the saved library before reusing its marks. The check leaves the normal library writer free to load the latest saved file later.

Verification

The Windows production build and 11 CLI warm tests passed. The D3D12 hardware and WARP fixture covers compatible scoped and legacy files, a cache belonging to another adapter, and an invalid scoped file. On an RTX 3070 Ti, a fresh process reused all 2,730 supported marked entries in 1.97 seconds with the scoped library alone. With the same marks and an empty library directory, it reused zero.

**@⁠Hellwire** on GitHub · 2026-11-30 17:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4192) `Hellwire:fix/selected-adapter-pipeline-warm-cache` → `main` · +54 −34 · 3 files · 1 commits · open ## Problem `victory warm --used` with `VICTORY_WARM_SHARED=1` checks for a pipeline library at the root of the cache. The runtime now stores the active library under `adapters/<device>`. This makes a second preload rebuild already cached PSOs when there is no root-level library. ## Change Use the same adapter selection and cache path as the runtime, then check that the selected D3D12 device can open the saved library before reusing its marks. The check leaves the normal library writer free to load the latest saved file later. ## Verification The Windows production build and 11 CLI warm tests passed. The D3D12 hardware and WARP fixture covers compatible scoped and legacy files, a cache belonging to another adapter, and an invalid scoped file. On an RTX 3070 Ti, a fresh process reused all 2,730 supported marked entries in 1.97 seconds with the scoped library alone. With the same marks and an empty library directory, it reused zero.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:08:22 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4192'
git switch 'github-bot/gh-4192'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4192'
git switch 'github-bot/gh-4192'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4192'
git switch 'main'
git merge --squash 'github-bot/gh-4192'
git switch 'main'
git merge --ff-only 'github-bot/gh-4192'
git switch 'main'
git merge 'github-bot/gh-4192'
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!4193
No description provided.