Repository navigation
shaders: benchmark direct DXIL PSO compilation - #1802
mokkamokacaffe wants to merge 1 commit into
Conversation
|
Independent Windows/NVIDIA validation of exact head Setup and checks
Measured cache behaviour xcl shaders <pack> --measure-pso 1404420b38db8597 --backend direct --windows 4 --split 1 --repeat 3 --json
xcl shaders <pack> --measure-pso 1404420b38db8597 --backend hlsl --windows 4 --split 1 --repeat 3 --json
Three further fresh processes, direct backend, identical command except Microsoft documents Regression run main: PR: Not tested AI use Follow-up: a per-application NVIDIA cache-off control works here Same head, adapter, driver, DXC, record, four windows and split wave64. An experimental call to A local
The copied exe without the temporary profile, same record and The wrapper and docs are a separate uncommitted local patch on this head, 186 added lines, not changes to your branch. Four profile-lifetime checks passed under both Windows PowerShell 5.1 and PowerShell 7. The real missing-record failure also removed its profile and exe; an independent NVAPI query confirmed all six wrapper-created profiles were absent afterwards. Windows PowerShell 5.1 also completed a real HLSL measurement successfully. Full workspace suite rerun on the local tree: 891 passed, 0 failed, 42 ignored, same three explicit skips listed above. No runtime Rust source changes, shared cache deletion, or changes to other application/global profiles. The wrapper is not committed or published as a PR yet. |
|
Regression run for this PR: head main this PR: No device removals or crashes; 101 % of main's frames, 99 % of its peak commit. Not tested: the whole suite; the new Written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
Adding an AMD GPU (RDNA2, native wave64) to the report above, which has none, with an NVIDIA run alongside. Tested exact head Tested
Not tested
AI use
|
ca9deb7 to
4edddca
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
XCL PR #1802 — Windows / Arc A770 verificationClean detached head Tested
Workspace failures and skips Of 24 GPU library failures, 20 returned Not tested Successful benchmark JSON, PSO timing, cold compilation, a matched AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
4edddca to
3eaf978
Compare
|
Regression run of Against the limits in CONTRIBUTING.md: 100 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
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)
Part of #1269.
Extends the exact-record PSO benchmark to compare the HLSL/DXC and Direct-DXIL routes. D3D12 cache disabling is requested for every measured call, but the output explicitly does not claim that a driver performed a cold compile.
What is in it
--measure-pso ... --backend hlsl|directfor one exact console compute record.cache_disable_requested: trueandcold_compile_verified: false; document that D3D12 cache control is a driver hint and a fast repeat is not proof of a cold compile.Tested
7d14d49:cargo build --release -p xclpassed;cargo test --workspace -- --test-threads=4reported 891 passed, 0 failed, 42 ignored. Exact-record Direct-DXIL translation and validation translated one CS with zero unsupported programs, validator failures, panics or timeouts.1404420b38db8597(CS_PedStandardSkinning_3). Direct produced 264,408-byte DXIL; HLSL produced 395,152-byte DXIL. Without vendor cache control, repeat times collapsed to milliseconds despite D3D12 accepting the cache-disable request.main:cargo test -p xcl --libpassed with 0 failures and approximately 23 ignored tests.4edddca: workspace build and--no-runpassed; argument validation passed. Cache control returned0x887A002D, so successful benchmark JSON/timing was not covered. Its broader GPU suite had failures without a matchedmainrun, so no regression attribution was made.git diff --check: passed on current head3eaf978.Regression run
Exact-head paired retail smoke from
scripts/smoke.ps1; same title and 60-second duration. These runs check startup/menu stability, not the benchmarked shader or world rendering.main:
PR:
The PR produced 100.4% of main frames and 100.5% of main peak commit, with no crash or device removal.
Not tested
AI use