Scripts: measure NVIDIA PSOs with a temporary cache-off profile #1849
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1849
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Daydream3r on GitHub · 2026-11-24 21:46 UTC · original
Daydream3r:fix-cold-pso-measurements→main· +277 −27 · 7 files · 2 commits · openStacked 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.
@DavidM1911 on GitHub · 2026-11-25 01:15 UTC · original
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!
@RavenCurseBurg on GitHub · 2026-11-25 17:36 UTC · original · edited 2026-11-25 17:42 UTC
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.
@DavidM1911 on GitHub · 2026-11-26 06:28 UTC · original
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.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.