Reuse shared warm marks for the selected adapter library #4192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4192"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Hellwire on 2026-11-30T17:17:49Z.
Problem
victory warm --usedwithVICTORY_WARM_SHARED=1checks for a pipeline library at the root of the cache. The runtime now stores the active library underadapters/<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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.