Repository navigation
Scripts: measure NVIDIA PSOs with a temporary cache-off profile - #1849
Open
Daydream3r wants to merge 2 commits into
Open
Daydream3r wants to merge 2 commits into
Daydream3r wants to merge 2 commits into
Conversation
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Daydream3r
marked this pull request as ready for review
November 25, 2026 10:21
ShaderCacheControl succeeds on this RTX 5070 Ti but repeated PSO creation still reuses compiled results. Associate a unique sibling executable with a temporary NVIDIA cache-off profile, then remove both after success or failure. Part of xcl-dev#1269. Depends on the JSON/backend measurement support in xcl-dev#1802. Profile lifetime tests and real NVIDIA controls verify cleanup and eliminate the observed millisecond repeat timings. Assisted-by: Codex desktop (GPT-6; exact variant not exposed)
Daydream3r
force-pushed
the
fix-cold-pso-measurements
branch
from
November 25, 2026 15:45
6019206 to
2cc2ba1
Compare
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.
Stacked on #1802; only the top commit
2cc2ba1belongs to this PR. Part of #1269. Updated to #1802's current patch3eaf978, rebased unchanged ontomain 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6ase58293b(git range-diffreports an identical parent patch).On RTX 5070 Ti, successful
ShaderCacheControlcalls still allowed repeated PSO creation to collapse from seconds to milliseconds. This wrapper associates a unique sibling exe with a temporary NVIDIA application profile whose shader disk cache is off, runs the measurement, and removes the profile and exe afterwards. It leaves other profiles and shared cache files alone.What is in it
scripts/measure-nvidia-pso.ps1, four profile-lifetime checks, usage documentation and NVAPI ABI-reference attribution. No Rust runtime change in our own commit; the full diff includes the parent.Tested
cargo build --release --workspace --locked: passed on clean main and clean head2cc2ba1ac89b53e3e025ea273e29e4c5d45f92c4.cargo test --workspace --locked --no-fail-fast -- --test-threads=4: head 1246 passed, 4 failed, 46 ignored; clean main 1246 passed, same 4 failed, 46 ignored; both exit 101. The four failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0,1,2,3},CreateComputePipelineState 0x8007000E. OptionalXCL_SAMPLE_*inputs unset.scripts/test-measure-nvidia-pso.ps1: 4 checks passed in Windows PowerShell 5.1 and 4 in PowerShell 7.1404420b38db8597,-Repeat 2, 4 windows / split wave64: PowerShell 7-Backend directexited 0 (262000 B DXIL; driver 2.3939078 / 2.4177889 s); PowerShell 5.1-Backend hlslexited 0 (395152 B DXIL; 3.916841 / 5.0216012 s). Both returned the expected backend/adapter/count JSON andcache_control=temporary_nvidia_profile_off;cold_compile_verified=falseremains intact. These are compatibility checks, not interleaved cold/performance proof.git diff --check: passed.Regression run
Official
scripts/smoke.ps1, same retail package 1.0.2.1, 60 s, no input, isolated copies of the same saved data/cache seed, networking off. Head run performed after pushing the new commit. Startup/menu coverage only.main:
head:
Not tested
Other NVIDIA GPUs/drivers, AMD/Intel/native wave64, Linux/Wine, full-pack throughput, world rendering or shader GPU-output parity. The four baseline GPU-fuzz failures remain. A forcibly terminated PowerShell host cannot execute
finally; the printed unique profile name permits manual cleanup. Requires permission to save an NVIDIA application profile and #1802's support; drop/rebase the parent after it merges.AI use
Codex desktop, GPT-6 (exact variant not exposed): our original implementation/tests/measurements, updating the dependency and rebasing, actual local builds/tests/measurements/smoke and this description. Parent #1802 retains its original author and unchanged patch.