Repository navigation
Conversation
…n run (GPU-TEST-SETUP) docs/testing.md lists everything the GPU tests can use, but not all of it is needed for a first result, and which part is missing shows only when a run stops. run_gpu_tests.py already runs the fixtures kept as listings without llvm-mc and assembles with tools/spirv_asm.py without SPIRV-Tools; nothing tells a newcomer that this is enough to start. scripts/gpu_test_setup.py looks once: llvm-mc and whether it has the AMDGPU target, spirv-as and spirv-val, the three test programs in the build folders the runner searches, the listings, and the devices vulkaninfo reports with their subgroup range. It prints three levels (semantic, subset, full) with the command for each or what is missing, and says when a device needs the second run with LEONIDA_W64_EMULATE=1. It builds nothing and runs no test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
I tested the ready paths at
Please carry the explicit LLVM argument through to the full command, quote path and command-valued arguments for the target shell, and identify the additional helpers needed for full fixture coverage. Each failure above can be checked using The saved-listing path also exposed the previously reported partial-swizzle fixture gap. In a scratch copy I replaced just that listing with LLVM’s encoded listing from the repository’s synthetic assembly. With LLVM and SPIRV-Tools off PATH and I also ran the full command with all the Windows helper binaries built. At the unmodified PR head, 278/278 shaders translated and passed SPIR-V validation. The runtime suite had 211 passes, 55 skips and two fixture failures. In a separate build at the same head I applied only the fixture changes from #1518 ( AI-assisted hardware verification with OpenAI Codex (GPT-6). |
…ures start Run on an RTX 5080 with only the three programs run_gpu_tests.py checks for, the full run failed 30 fixtures with "could not start vk_texture_test.exe" (and vk_bindless_test, vk_sampler_test, d3d12_texture_uav_test), while this script called the level ready. The full level now names the ones that are missing; the subset needs none of them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Two review findings on ProjectLeonida#2389: a build folder with a space was printed as two arguments, and an llvm-mc given with --llvm-mc (not in LLVM_MC) made the full level ready while the command it printed did not pass it on to run_gpu_tests.py. The folder is quoted and the option is carried over. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Thanks for running it. All three are fixed, each with a test:
The description says the
Not run: the emulated run on the AMD device, and the tests of this pull request on Linux, macOS or Python 3.12. AI-assisted. |
|
Tested d669e9a on Windows 11 with Python 3.12. All 12 tests in tests/test_gpu_test_setup.py passed, with exit code 0. I also ran scripts/gpu_test_setup.py on my HP OMEN with --build pointing to an extracted runtime-windows artifact from PR #1818, outside the checkout. It found the test programs, counted 108 listings, and reported both GPUs: Intel Graphics (101.8626, subgroup 8–32) and NVIDIA RTX 5070 Laptop (621.40, subgroup 32–32). With llvm-mc, spirv-as, and spirv-val absent, the report showed semantic: ready, subset: ready, and full: not yet, and identified an AMDGPU-capable llvm-mc as the missing requirement for the full suite. The diagnostic exited with code 0. I did not run the suggested suites as part of this check. Tested locally. AI-assisted setup and reporting. |
Claimed in the coordination issue as: GPU-TEST-SETUP (#1608 (comment))
Depends on: none. No open pull request changes these two files (checked with the
scripts/pr_overlap.pyof #2349).What and why
docs/testing.mdlists everything the GPU tests can use: llvm-mc with the AMDGPU target, SPIRV-Tools, the Vulkan test programs, a GPU. Not all of it is needed for a first result.run_gpu_tests.pyalready runs the fixtures kept as listings without llvm-mc (--disasm-dir tests/semantic/fixtures/disasm, 108 listings onmain) and assembles withtools/spirv_asm.pywhen spirv-as is missing. Nothing says so up front, and which part is missing shows only when a run stops.python -I scripts/gpu_test_setup.pylooks once and prints what is there:LLVM_MC,--llvm-mcor PATH, throughtools/mc_command.py), its version and whether it has the AMDGPU target;vk_texture_test,vk_bindless_test,vk_sampler_test,d3d12_texture_uav_test);vulkaninforeports with driver and subgroup range.Then three levels, each with its command or what it still needs:
semantic(Python alone),subset(the listings: the programs and a device, no llvm-mc, no SPIRV-Tools) andfull(llvm-mc with the AMDGPU target and all seven programs as well). For a device whose largest subgroup is below 64 it says that the wave64 fixtures need a second run withLEONIDA_W64_EMULATE=1.--jsongives the same as one object. It builds nothing, runs no test and writes nothing.Tested
Windows 11, Python 3.14.7:
python -I tests/test_gpu_test_setup.py: 12 tests with stand-in tools (recorded--versionandvulkaninfotext) and a temporary checkout: nothing installed, the subset without llvm-mc, an llvm-mc without and with the AMDGPU target,LLVM_MCas a whole command,--llvm-mccarried into the printed command, a build folder with a space, programs in a configuration subfolder and an incomplete build, SPIRV-Tools that do not start, the device parser, the text and JSON reports. One test readsscripts/run_gpu_tests.pyto check that the program names and--disasm-dirit relies on are still the runner's.semantic: ready, and forsubsetandfullthe missing programs and llvm-mc.scripts\build_llvm_mc.ps1), SPIRV-Tools v2026.4 and the seven test programs built:subsetandfullare reported ready, and the commands it prints were run on both devices. Full run atmain935a2cd: NVIDIA GeForce RTX 5080 (driver 617.42, subgroup 32..32) 211/268 passed, 55 skipped, 2 failed native and 246/268 passed, 20 skipped, 2 failed withLEONIDA_W64_EMULATE=1; integrated AMD Radeon (Granite Ridge, driver 25.10.36, subgroup 32..64) 246/268 passed, 20 skipped, 2 failed in both runs. The two failures (cs_imgatomic_ext,cs_texture_uav) are in the tests, not in this script. Subset run on the RTX 5080: 83/101 passed, 17 skipped, 1 failed (cs_w64x_partial_swizzle, reported in GPU test: Intel Arc A770 (Alchemist) - 180/248 pass, 66 skip, 2 fail (the tfe pair in #31); retail exe maps with 0 unimplemented #725).python -Iontests/test_tool_stdout_encoding.py,tests/test_text_write_line_endings.pyandtests/test_ci_registration.py;python -I scripts/check_no_game_data.pyon both files.GPUs tested: NVIDIA GeForce RTX 5080 (driver 617.42) and AMD Radeon Graphics, Granite Ridge iGPU (driver 25.10.36), Windows 11: the commands this script prints, results above
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule in this change.)🤖 Generated with Claude Code