Repository navigation
test(agc): split the runtime buffer span tests by wave size and coherence - #22123
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
72ae977 to
b79da5a
Compare
|
Windows + NVIDIA result for head Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, Validation-layer protocol on
The tests this PR adds or changes ( AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Windows + AMD run; I found no AMD run in the description or in the comments. Head Setup: Windows 11 25H2 (build 26200), AMD Radeon 760M integrated graphics (
Test names24 tests: AI-assisted: yes (build and runs scripted with an AI assistant, on the hardware above). |
|
Head No new failures and no new validation messages on either GPU.
Layer runs used AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The changed test selection and CTest registration are consistent with the stated goal, and the inspected code shows no blocking defect.
What I ran
Reviewed head b79da5aba8f76ff8c8dbace922b178b304e321b6. I did not run commands or tests in this review environment. The author reports test runs on main and this PR, plus convention and mutation checks; these are not runs I performed.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Both changed files read |
| Tests in this review | not run | No command execution available |
| Author-reported checks | not run | Reported in the PR description |
Negative control
Not run in this review. The author reports mutation checks that flipped an expected output and verified invalid wave and coherence arguments fail.
Findings
Blocking
None.
Non-blocking
None.
Sources
The changed CMake registration splits each component and mode across the four wave and coherence combinations while retaining the environment, skip code, timeout, and Windows path setup (core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_runtime_buffer_spans_tests.cmake:10-17). The executable validates selections, filters the loops, and rejects an empty selection (core/libs/prx/libSceAgcDriver/tests/execution/RuntimeBufferSpans.cpp:245-263). CMake test registration at the reviewed commit, runtime selection at the reviewed commit.
Not verified
No tests or conventions checks were run in this review. The PR description reports that the full CTest suite was not run. Read both reviewed files: core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_runtime_buffer_spans_tests.cmake and core/libs/prx/libSceAgcDriver/tests/execution/RuntimeBufferSpans.cpp; no changed files were excluded.
To get this to a good state
Nothing is required.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
…ence
Each agc_driver_runtime_buffer_spans_x{2,3,4}_{spans,reference} test ran
all 112 cases (2 wave sizes x 2 coherence settings x 2 barrier settings
x 14 cases) in one process. Almost all of the time is the Vulkan
pipeline compile of each case's dispatch (about 230 ms per case on
lavapipe, under 1 s of recompile in total), so on the Linux CI runner,
which runs ctest in parallel on lavapipe, x3_spans and x4_spans went past
the 30 s limit and x2_spans took 22.6 s.
The test executable takes an optional wave size (32 or 64) and coherence
(0 or 1) after the mode and runs only that quarter; ctest registers the
four quarters of each test as _wave{32,64}_glc{0,1}. The quarters run the
same 112 cases per test as before. With no selection the executable
still runs every case.
b79da5a to
96bc66f
Compare
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The split preserves the full case matrix while letting each registered test cover one wave size and coherence setting; no blocking defect was found in the changed code.
What I ran
- Reviewed head
96bc66f125762fe05c79bb134ba87be5d72fd3ed. - Read
description.md,commits.md,manifest.json,diff.patch, and both changed files in full throughrepo_read.py. - No commands or tests were run by me; the test and mutation results in the PR description are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Changed-code review | passed | Both changed files read in full |
| Tests run by reviewer | not run | Author reports targeted runs; full ctest not run |
Findings
Blocking
None.
Non-blocking
None.
Not verified
- I did not independently run the reported lavapipe, Vulkan validation, or mutation checks.
files.jsonwas not available as a review-folder document; the manifest lists both changed files as included, and both were read in full.
To get this to a good state
Nothing is required.
What
agc_driver_runtime_buffer_spans_x{2,3,4}_{spans,reference}each ran all 112 cases in one process: 2 wave sizes × 2 GLC settings × 2 barrier settings × 14 cases. On the Linux job, which runs ctest in parallel on lavapipe,x3_spansandx4_spanstime out at 30 s.x2_spanstook 22.6 s in run 43841416406, and run 43834891663 also timed outx2_spansandx4_reference. In run 43878956391 onmain7c444b7,x4_spanstimed out again andx3_spanstook 14.1 s, while the three_referencetests took 1.5 to 2.0 s.Almost all of that time is the Vulkan pipeline compile of each case's dispatch. In one x4
--check-spansrun on lavapipe with no Mesa cache, timed case by case,ShaderRecompiler::Recompiletook 0.78 s in total andDispatch+WaitIdletook 29.0 s for the 112 cases. The cost is spread evenly over wave size, GLC and barrier (3.0 to 4.2 s per combination). CONTRIBUTING.md asks to split such a test instead of raising its timeout.RuntimeBufferSpans.cpptakes an optional wave size (32or64) and GLC selection (0or1) after the mode and runs only that quarter. Any other value fails withinvalid wave sizeorinvalid coherence selection. A selection that leaves no case fails withno case selected. With no selection, the executable runs every case as before.agc_driver_runtime_buffer_spans_tests.cmakeregisters each test as four tests,..._x{2,3,4}_{spans,reference}_wave{32,64}_glc{0,1}, 24 in place of 6. Environment,TIMEOUT 30and skip code are unchanged._fault_stopand_fault_barrierare unchanged.--check-spans+ 112--reference), the same as before.Tested
Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, Intel i9-14900KF,
main7c444b7.CI-like contention (16 cores, lavapipe threads set to 16, no Mesa cache):
taskset -c 0-15 env MESA_SHADER_CACHE_DISABLE=true LP_NUM_THREADS=16 ANYPS5_GPU=llvmpipe ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx ctest --test-dir build -R '^agc_driver_runtime_buffer_spans_' -j <N> --timeout 120main-j 8x3_spansandx4_spansTimeout 30.0 s,x2_spans24.8 sx4_spans_wave64_glc1)-j 15x4_spansTimeout 30.0 s,x3_spans25.9 sx4_spans_wave32_glc0)At
-j 15,mainran 8 tests at once and this PR 26, so the PR side had more contention.AGC protocol, once per side and per configuration:
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '^agc_driver_runtime_buffer_spans_' -V, on the RTX 4090 and on lavapipe. lavapipe also ran a second time underbwrapwith/dev/udmabufunopenable, as on the runner.main: 8/8 pass on all three. This PR: 26/26 pass on all three. Every log showsInsert instance layer "VK_LAYER_KHRONOS_validation", and none containswas not found but was requested by env var VK_INSTANCE_LAYERS. No log on either side has aVUID-line. Validation layer 1.4.363.1.Mutation checks:
Run, all 8 x2 quarters fail.2 --check-spans 48exits 1 withinvalid wave size, and2 --check-spans 32 xexits 1 withinvalid coherence selection.python3 tools/check_conventions.py --base origin/mainpasses. Full ctest was not run.Overlap
python3 tools/pr_overlap.py --names agc_driver_runtime_buffer_spans_tests RuntimeBufferSpans: not declared on main, no open PR.python3 tools/pr_overlap.py --branch fix/agc-runtime-buffer-spans-split: #21641 changes the same lines ofagc_driver_runtime_buffer_spans_tests.cmake. It raises these six tests toTIMEOUT 60instead. Measured with the command above at-j 15, it passes withx3_spansat 36.5 s andx4_spansat 44.8 s, which the "Report tests slower than 30 s" step flags. Only one of the two can merge as is.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)GALLIUM_OVERRIDE_CPU_CAPS=avx, Arch Linux (kernel 7.3.4)