Repository navigation
Scripts: measure NVIDIA PSOs with a temporary cache-off profile - #1849
Daydream3r wants to merge 2 commits into
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
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)
6019206 to
2cc2ba1
Compare
|
CPU-only wrapper check of I also ran the full
Windows 11 26100.9711, i7-13700, RTX 4060. The profile provider and timing data were simulated. No NVIDIA profile was created, no caches were touched, and no cold-compile timing was measured. OpenAI Codex (GPT-6) ran the checks and prepared this report. |
|
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current |
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.