GPU diagnostics: report marked-page batch sizes #3627
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3627"
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?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:29:27Z.
The copy-back benchmark in #3604 found that scratch reuse behaves differently for one-page calls and larger batches. The existing aggregate page total does not show which call sizes are common.
Report raw call counts for 1, 2–15, 16–255, and 256 or more compared pages in each diagnostics reporting window. The count is taken after withheld ranges are filtered. Empty calls do not enter the histogram.
On Windows with app-local WARP 1.0.22 and D3D12 Agility 1.620.2, two synthetic calls still report three compared pages in total. The new line shows one call in each of the first two buckets. One of the calls also supplies a withheld page. A separate counter test checks the bucket boundaries and verifies that the following window is empty.
Benchmark motivating this measurement · Coordination claim
AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:30:54Z.
I ran the same synthetic copy-back checks on main and
c59ae39using app-local WARP 1.0.22 and Agility SDK 1.620.2. Both reported three compared pages. The new batch line reported one single-page call and one 2–15 page call. One of those calls also supplied a withheld page, which was excluded from the batch size.The four bucket boundaries and the reporting-window reset passed. The existing GPU suite passed 246 tests, with one ignored. The app-local SDK identity check and strict GPU Clippy with default and all features also passed.
The follow-up measurement is to collect these four counts during the same workload used in the #3604 benchmark, so the maintainers can see which synthetic batch sizes are representative.
If you reuse the code, please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg [email protected] if folding it into another commit.
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-29T20:08:44Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
c59ae39(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.