Scripts: measure NVIDIA PSOs with a temporary cache-off profile #1839
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1849"
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 ivall/xcl. Originally posted by Daydream3r on 2026-11-24T21:46:24Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:15:38Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
upstream-sync referenced this pull request2026-11-25 10:09:30 +00:00
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T17:36:21Z.
CPU-only wrapper check of
2cc2ba1ac89b53e3e025ea273e29e4c5d45f92c4on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. The fourscripts/test-measure-nvidia-pso.ps1lifetime checks passed per shell.I also ran the full
scripts/measure-nvidia-pso.ps1 -Pack <fixture> -Hash 1122334455667788 -Xcl <stand-in> -Backend <backend> -Repeat <count>entry point with an in-process profile test double and a native executable that recorded its arguments. Nine scenarios passed per shell:cold_compile_verified=false, and added the cache-control field.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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:28:09Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:59:04Z.
Triage (#1607) – head
2cc2ba1This PR is stacked on #1802. Its diff includes #1802's
--measure-pso --backend/--jsonpatch (the Rust changes inshaders.rs/pso.rs/main.rs), and only the top commit2cc2ba1is its own:scripts/measure-nvidia-pso.ps1, its test, README usage and the NVAPI row in THIRD_PARTY.md. That is a stack, not a duplicate. The parent copy in this branch is older than #1802's current head (f2fbd8a, which now defaults--backendto the runtime'sXCL_DIRECT_DXILchoice), and the branch conflicts with main. It should be rebased onto #1802's current head once #1802 lands. No problems found in the script's profile create/remove lifetime.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.