Tests: the high-coordinate table check takes 2 s instead of 14 #1821
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!1821
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1821"
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?
@marquezinii on GitHub · 2026-11-24 21:20 UTC · original
marquezinii:tests/tiling-period-check→main· +19 −11 · 1 files · 1 commits · openhigh_coordinate_tables_keep_their_offsets_at_one_period(gpu/tiling.rs) was the slowest unit test by far: 13.5–14.3 s here, next one 4 s. With--test-threads=4the lib's run waited on it alone. Now it takes 2 s and checks the same things.cis the XOR of the offsets of its bits. The single-bit offsets still use the direct formula. Production'sfrom_bitskeeps the direct formula for every entry, so the reference is no longer the same code as what it checks.0..want.len()) instead of 2^18 / 3 coordinates. Both lengths are powers of two and the table's divides the reference's, sot[c % t.len()] == want[c % want.len()]for one period means it for everyc. The old loop reached those same residues, several times each. The two large coordinates stay.How I checked that it still catches what it should: halving the table length in
Layout::from_bits(table((1 << (32 - used.leading_zeros())) / 2, …)) fails the test, as it does onmain.What is in it
crates/xcl/src/gpu/tiling.rs: the test above only.Tested
maine9e94ce, 2.08 s on this head.cargo test -p xcl --lib -- --test-threads=4, two runs each: 22.7 / 25.4 s onmain, 14.7 / 15.0 s on this head (843 passed, 0 failed, 22 ignored).cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache).Regression run
Run by @Toons29 on an AMD Radeon RX 9070, 60 s each,
XCL_NETWORK=0, release, copied from their comment as posted. The diff itself is test-only, insidemod testsoftiling.rs.pr_check.pystill fails on these two: theirtitle:lines differ (game.exeand34df7c50), so amainrun that prints the same title line, or thetest-onlylabel, would settle it.main:
PR:
Not tested
AI use
@Toons29 on GitHub · 2026-11-24 21:43 UTC · original
Regression run of
fd62adebon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@marquezinii on GitHub · 2026-11-24 21:54 UTC · original
@Toons29 thank you for running these. I've copied both blocks into Regression run as you posted them, with credit.
One catch:
pr_check.pycompares thetitle:lines, and they differ here:game.exeonmain,34df7c50on this head. So the check still says the runs are not of the same title. The run itself looks fine (101 % of the frames, same peak commit). It's only howsmoke.ps1named the title in each run, probably from the folder or exe path it was given. If you can rerunmainthe way you ran the PR, so it printstitle: 34df7c50, I'll swap that block in. Otherwise thetest-onlylabel settles it, since the diff is only inmod tests.AI use: Claude Code (Claude Opus 5.5) drafted this reply.
@futurepro62 on GitHub · 2026-11-24 22:37 UTC · original · edited 2026-11-24 22:54 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
fd62ade(on its basee9e94ce).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: 891 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out five tests where this PR's base has them. They fail on main689f2dbtoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures. These areheap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 00:39 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!
@JJAutoCompare on GitHub · 2026-11-25 04:14 UTC · original
XCL PR #1821 verification
Clean detached head
fd62adeb24on STOR-WINLAB. Windows 11 Enterprise Evaluation x64 (build 26200), Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175, WDDM 3.2), DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Unoptimized Cargo profiles with debug info and incremental compilation disabled. The diff changes one unit test in crates/xcl/src/gpu/tiling.rs.Tested
cargo build --workspacepassed in 29.03 s.cargo test --workspace --no-runpassed in 50.26 s and built 19 test executables. Both ran outside the GPU mutex.cargo test -p xcl --lib gpu::tiling::tests::high_coordinate_tables_keep_their_offsets_at_one_period -- --exact --test-threads=1ran outside the mutex with XCL_ADAPTER=NONE_CPU_ONLY. It passed (1 passed, 0 failed, 0 ignored, 0 skipped, 864 filtered out). Cargo wall time was 6.59 s and the Rust harness measured 2.55 s. The test checks 2D and 3D X/Y/Z high-coordinate offset tables against a mask-parity reference over one complete reference period and at u32::MAX and 2^40 + 5. It also checks table length bounds.cargo test --workspace --no-fail-fast -- --test-threads=4ran once inside Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Cargo exited 101 in 39.46 s (194.61 s including lock wait). The changed test passed again.Workspace failures and skips
Not tested
Matched main run or baseline timing, retail-title smoke, AMD and NVIDIA GPUs. The AWC, RPF and TTPF sample inputs were unset.
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
pr1821-suite.logand published.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.