Tests: time DXC on generated RDNA2 programs and write JSON / CSV (#1269) #2100
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!2100
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2100"
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?
@BetterJdue on GitHub · 2026-11-25 04:01 UTC · original
BetterJdue:compile-bench-dxc→main· +696 −0 · 3 files · 3 commits · draftStacked on #1763; only the top commit (
cc131b2) belongs here.Times the HLSL → DXIL compile of the programs #1763 generates, so the compile-time work in #1269 gets numbers that need no game data and can run in CI. Shader and pipeline compile time is the biggest obstacle to getting past world loading (#1833). Test-only: nothing in
crates/xcl/src.Part of #1269
What is in it
crates/xcl/tests/compile_bench/measure.rs: each program is translated (recomp::translate) and compiled withdxc::compile, one at a time; it records the HLSL and DXIL sizes and the DXC times (a repeat must give the same HLSL and DXIL size). A small set of 6 programs runs in every test run;XCL_COMPILE_BENCH=fullruns 44: five shapes at 500 to 20 000 operations, the four wave64 ones also in the split form (a GPU with only 32-lane waves) with 4 memory windows, and two controls.XCL_COMPILE_BENCH_OUTwrites JSON and CSV with the commit, DXC version, build profile and CPU.crates/xcl/tests/compile_bench/gen.rs: buffer, image and compute knobs. At zero they give #1763's programs unchanged (a golden-hash test).crates/xcl/tests/compile_bench/main.rs: tests of the new knobs, of the JSON / CSV and the DXC run (SKIPPEDwithout DXC).Tested
cargo test --workspace --no-fail-fast -- --test-threads=4oncc131b2(debug): 761 passed, 3 failed, 41 ignored. The failures are not from this PR:placed_title_textures_share_vram_and_preserve_pixels,transitions_apply_when_their_list_is_submitted,d32s8_targets_take_their_own_size_of_video_memory; the first ("3D 64x64x64 4 mips: subresource 2 mismatch") also fails alone onmainb9b6ea6, and the other two fail on the lock it poisons (PoisonError). #1028 is about the same failure. SKIPPED: none.cargo test -p xcl --test compile_bench: 13 passed, 0 failed.ae43075(this commit before its rebase onto0f257d1, plus one that adds scripts and a README section), 44 programs;0f257d1only refuses loops out of the branch range, so the programs are the same (the golden-hash test passes on both). Their medians add up to 693 s; the 5 slowest programs take 70 % of it. The split form (a 32-lane GPU) against the native one, DXC median:Sources over 1 MiB get
-O1and over 8 MiB-O0fromdxc.rs, so the 20 000-operation divergent programs are compiled at-O0.Not tested
scripts/smoke.ps1: none used; the change is test-only.AI use
@DavidM1911 on GitHub · 2026-11-25 05:43 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.