GPU tests: give cs_pk_mul_lo_const its 128 words, keep the exit message of a dump row (TEST-GPU-OOB-AND-HARNESS-MSG) #2453
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2453
Loading…
Reference in a new issue
No description provided.
Delete branch "test-gpu-oob-harness-msg"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: TEST-GPU-OOB-AND-HARNESS-MSG (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7215737750)
What and why
From @kevincommits' finding in #1608 (sections 2 and 3, under GPU-AV with LunarG SDK 1.4.363).
cs_pk_mul_lo_constwrote past its buffer. It runs 32 lanes that each store 16 bytes, which is 128 words.scripts/run_gpu_tests.pyandruntime/test/shaders/check.pyran it withoutVKC_OUT_WORDS, sovk_compute_testgave it the default 64 words. Lanes 16-31 then wrote past the end through the buffer's device address (VUID-RuntimeSpirv-PhysicalStorageBuffer64-11819). This is the same kind of bug that 446270b08 and b9864d274 fixed. Both runners now passVKC_OUT_WORDS=128(check.PK_MUL_LO_ENV), and the fixture'sRun:line says so. The expected words are unchanged.run_gpu_tests.pydropped the failure message. The dump rows (the bounds group,cs_heap_init,cs_user_sgprs) showed the printed words whenever there were any. UnderLEONIDA_VK_VALIDATION=1the program prints the right words and then exits 1 for the validation errors, so the row saidFAILwith the expected words and no reason. The newdump_resultreportsexit N: <program output>for a non-zero exit.Not included: section 3, the
s_barrierfor the 8 single-lane LDS-atomic fixtures. The SDK on this PC (1.4.341) has no GPU-AV shared-memory data-race check: all 8 run with 0 validation errors under GPU-AV, before and after. So I can't show here that a change clears anything. It stays open for someone with SDK 1.4.363 or newer.Tested
On Windows 11 with an RTX 4070 SUPER (NVIDIA 621.01) and Vulkan SDK 1.4.341.
vk_compute_test,vk_store_testandvk_harnesswere built from this branch. The run usedVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1,VK_KHRONOS_VALIDATION_VALIDATE_SYNC=trueandLEONIDA_VK_VALIDATION=1.vk_compute_test cs_pk_mul_lo_const.spv 1 dump, as onmain: exit 1,6 validation errors, allVUID-RuntimeSpirv-PhysicalStorageBuffer64-11819(out-of-bounds writes from lanes 16+). WithVKC_OUT_WORDS=128: exit 0, no validation errors, and exact wordsout[0..7] = 0x9e88 0x3675433 0x230000 0x77f6ctwice.run_gpu_tests.py --filter cs_pk_mul_lo_const:main:FAIL cs_pk_mul_lo_const 0x9e88 0x3675433 ..., the expected words with no reason, which is the reported bug;PASS, 1/1.tests/test_run_gpu_tests.py(74 OK) has a newDumpRowThatExitsNonZerowith a fake process result. Withmain'srun_gpu_tests.pyandcheck.pyit fails (3 failures).tests/test_shader_checks.py(88 OK) now checks thatcheck.pypassesVKC_OUT_WORDS=128.tests/test_run_gpu_*.py(the other 6 files),tests/test_regen_fixtures.pyandtests/test_text_write_line_endings.pyall OK, andscripts/check_no_game_data.pyon the changed files is clean.GPUs tested: NVIDIA GeForce RTX 4070 SUPER (profile M, 12 GB desktop), driver 621.01, Windows 11, Vulkan SDK 1.4.341 validation layer with GPU-AV
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a, no translator change)🤖 Generated with Claude Code
Independently verified head
e2377070don Windows 11 Pro 26200 with LunarG Vulkan SDK1.4.363.0+ GPU-AV (LEONIDA_VK_VALIDATION=1,VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1), WSLllvm-mc 21.1.8, across both NVIDIA GeForce RTX 5080 (616.64) and AMD Radeon(TM) Graphics (25.10.30.02), no game files:origin/main@50ce8f51a, GPU-AV on SDK1.4.363.0):scripts/run_gpu_tests.py --filter cs_pk_mul_lo_const: FAIL (0/1 passed) on BOTH RTX 5080 and AMD Radeon — and as described in the PR,run_gpu_tests.pyprinted the matching hex words (0x9e88 0x3675433 ...) while silently dropping the validation error reason (vk_compute_testexited 1 under GPU-AV with default 64 words).#2453@e2377070d, GPU-AV on SDK1.4.363.0):scripts/run_gpu_tests.py --filter cs_pk_mul_lo_const: PASS (1/1 passed) on BOTH RTX 5080 and AMD Radeon, 0 validation errors.tests/test_run_gpu_tests.py: 74/74 OKtests/test_shader_checks.py: 88/88 OKClean, surgical fix — confirmed before/after on SDK
1.4.363.0GPU-AV on both NVIDIA Blackwell and AMD Radeon. AI-assisted.Verified locally at
e2377070dmerged withmainon Windows 10 / NVIDIA GeForce RTX 3060 12 GB (driver 617.14):cs_pk_mul_lo_constpassesspirv-valand 1/1 on the RTX 3060 harness.test_run_gpu_tests.py(74), shader checker tests (88), fixture tests (7), and line-ending/write tests (3) all pass.#2055,vk_xdxr_postbuild_readback, macOS).AI-assisted review.