Repository navigation
vk_descriptor_bench, vk_sandbox: LEONIDA_VK_DEVICE names the GPU, and a filter that matches nothing fails the run (TEST-1141) - #9605
Conversation
…T-1141) Both tools ranked the devices themselves and ignored LEONIDA_VK_DEVICE, so on a PC with two GPUs they ran on the best-ranked one whatever the filter said. vk_sandbox now uses vk_device_pick.h's pick_device, and vk_descriptor_bench skips devices the filter leaves out. When the filter matches no usable device, both report it and fail the run, as the other harnesses do. check_device_filter_tools.py (ctest vk_device_filter_tools) runs both tools with a filter that matches nothing and skips on a machine with no Vulkan device.
|
I tested both tools with the two physical GPUs on the same machine:
One test-reporting gap. The preflight maps any nonzero No broader CTest suite run. AI-assisted (Codex). Synthetic inputs only. |
|
Checked head
No defect. No game data. AI-assisted (Claude Code). |
|
Tested
AI-assisted. |
…driver or device The preflight took any nonzero vk_descriptor_bench --list-devices exit as "no device" and skipped, so an unexpected failure of the tool was reported as a skip. It now skips only for a missing loader, a vkCreateInstance that gives VK_ERROR_INCOMPATIBLE_DRIVER, or an empty device list, and fails for any other exit. Found by matheusfermiano-source.
|
@matheusfermiano-source thank you, that was a real gap. Fixed in 652e85a: the preflight now skips only for no Vulkan loader (
-AI Assisted |
|
Tested on AMD Radeon RX 7700 XT (RDNA3), AMD Windows driver 32.0.32029.2010, Windows 11, MSVC 14.51 Release, at 9538218. Full No regression. The only failures are the same 5 as on AI-assisted (Claude Code). |
Claimed in the coordination issue as: TEST-1141 (#9522 (comment))
What and why
docs/testing.md("Choosing the GPU") says thatLEONIDA_VK_DEVICEnames the GPU in every harness, and that a value that matches no device fails the run instead of testing another GPU. Two tools inruntime/testranked the devices themselves and ignored it:vk_descriptor_bench, when no--device Nis given.vk_sandbox.On a PC with two GPUs they always ran on the best-ranked one, whatever the filter said. Found by running every
vk_*program withLEONIDA_VK_DEVICE=<no such GPU>atmain5d74c27. These two were the only ones that went on to choose a device. (vk_sampler_testandvk_bindless_test, named in the TEST-1141 row, already usevk_device_pick.hon currentmain.)vk_sandboxnow picks withleonida::vk_test::pick_device, the shared pick.vk_descriptor_benchkeeps its own Vulkan 1.1 and compute-queue checks, and skips a device thatleonida::vulkan_device_wantedleaves out.--device Nand--list-devicesdo not change.report_no_device()and exit 1, asvk_compute_testdoes. With no filter, the result is the same as before: the unsupported exit 77 for the bench, and the same device.runtime/test/check_device_filter_tools.py(ctestvk_device_filter_tools): runs both tools with a filter that matches nothing and expects the failure that names the filter. It skips (77) on a machine with no Vulkan device, wherevk_descriptor_bench --list-deviceslists none.Tested
Windows 11 Home 26300, MSVC 19.44, Ninja RelWithDebInfo (
-DLEONIDA_VULKAN_HEADERS_FETCH=ON). One PC with an NVIDIA RTX 5090 (621.24) and an AMD Radeon iGPU of a Ryzen 7 9800X3D (gfx1036, 25.10.42). No game files.ctest -R "vk_device_filter_tools|vk_device_pick|vulkan_device_filter|vk_descriptor_bench_selftest": 4/4 passed.main's binaries fails for both tools.vk_descriptor_benchran its benchmark on the RTX 5090 and exited 0.vk_sandboxchose the RTX 5090 too, and failed later on the missing shader file.LEONIDA_VK_DEVICE=radeongivesdevice: AMD Radeon(TM) Graphicsin both tools, andLEONIDA_VK_DEVICE=5090givesdevice: NVIDIA GeForce RTX 5090.ctest -j 8of this branch:vk_device_filter_toolspasses on both. WithLEONIDA_VK_DEVICE=5090: 238 of 240 passed, failingd3d12_vulkan_deviceandd3d12_depth_resolve, the same asmain. WithLEONIDA_VK_DEVICE=radeon: 237 of 240 passed, the same two plusvk_queue_query_sync. That one fails 3 of 3 times onmain's binary on this Radeon too (progress counter device loss NOT propagated, Runtime: propagate device loss found by the retire-ticket progress query (D3D-599) #6149, main 6312c057f on AMD RX 9070 XT (RDNA4, Windows 26300): 5 ctest failures; #5873 verified to fix one here #9544) and passes on the RTX 5090.git diff --check,python -m compileallof the new script, andpython -I scripts/check_no_game_data.pyon every changed file: pass.TEST-1141's triage part, on current
main5d74c27 on both GPUs, found no failure that nobody owns, so this PR holds only the code fix:run_gpu_tests.py(llvm-mc 21.1.8,--assembler python,LEONIDA_W64_EMULATE=1on the NVIDIA card): Radeon 223/241 and RTX 5090 222/241, both with 17 skipped. The failures arems_v5_workgroup(it ranspirv-valunder--no-validate, fixed by run_gpu_tests --assembler python: the mesh-compute and bary-fallback helpers use it too (no SPIRV-Tools needed) #9471) and, on the RTX 5090,ms_wave_info_s3(docs: ms_wave_info_s3 is a deterministic known problem, not a flake #9466, ms_wave_info_s3 fails natively on NVIDIA RTX 5080 (Windows, subgroup 32): all pixels read back -1 #8306, ms_wave_info_s3 fails on RTX 3050 A Laptop GPU (Windows 11, driver 621.35) #8677).ctest:d3d12_vulkan_device(GetResourceTilingafterCreateReservedResource2through the proxy: d3d12_vulkan_device_test: ask the PC device for Device10, since the proxy's slot 78 is the Xbox frame interval #9175, d3d12_vulkan_device_test: reach Device10's CreateReservedResource2 on the inner device #8496, d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 #7125) andd3d12_depth_resolve(reported by seblessa in Coordinating who works on what (56) (moved to #9401) #9235) on both GPUs, and on the Radeonvk_queue_query_sync(Runtime: propagate device loss found by the retire-ticket progress query (D3D-599) #6149).scripts/run_semantic_tests.py: onlytest_image_atomics_guardandtest_image_store_d16(tests/semantic: three image test files red on main (stale after #4473 and #6805; LLVM_MC on Windows) #7284).Not run: Linux, macOS, Wine.
AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)-AI Assisted