scripts: gpu_test_setup.py says what of the GPU tests this machine can run (GPU-TEST-SETUP) #2389
Closed
leonida/mandy
syfyra wants to merge 0 commits from
feat/gpu-test-setup into main
pull from: feat/gpu-test-setup
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2389
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/gpu-test-setup"
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 closed
This pull request cannot be reopened because the branch was deleted.
Claimed in the coordination issue as: GPU-TEST-SETUP (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7198352545)
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 atmain935a2cd5b: 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 #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
I tested the ready paths at
ed4403dd37on Windows 11 with a physical RTX 4090 and test programs built from that revision. The survey correctly found NVIDIA 616.64, subgroup 32–32, LLVM 23.1.6 with AMDGPU, and 108 saved listings. All 10 setup unit tests passed. I found three cases where the report needs more information to give a working command.--llvm-mcoption only.LLVM_MCwas unset and LLVM was off PATH.llvm-mc.--llvm-mcto the runner produced all 80 expected words forcs_fmt_d16_xyz.gpu build.--build gpu build. PowerShell passed two arguments and the runner exited 2 before testing.--filter cs_texture_uavthen failed looking ford3d12_texture_uav_test.exe, and--filter ps_ssharpfailed looking forvk_sampler_test.exe.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
--filterand--require-pass.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
LEONIDA_W64_EMULATE=1, the complete subset then passed 101/101 on the RTX 4090.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 (
7bcb5ba529) and #2261 (409da28db7). The default run then passed 213 with 55 skipped. Wave64 emulation passed 248 with 20 skipped. Neither run had a failure.AI-assisted hardware verification with OpenAI Codex (GPT-6).
Thanks for running it. All three are fixed, each with a test:
vk_texture_test,vk_bindless_test,vk_sampler_test,d3d12_texture_uav_test):fullis ready only with them and names the missing ones (129f56ca7). I had hit the same thing here: with only the three, the full run failed 30 fixtures with "could not start".--llvm-mcis carried into the printed full command; one fromLLVM_MCis not repeated, since the runner reads it itself (d669e9add).The description says the
subsetandfullcommands were not run on this machine. They have been since, at ed4403dd3 with all seven programs built (Ninja, RelWithDebInfo, MSVC 14.44), Vulkan SDK 1.4.363.1 and an llvm-mc 21.1.8 built byscripts\build_llvm_mc.ps1, Windows 11:cs_w64x_partial_swizzle, the listing without encodings you mention); full native 211/268 passed, 55 skipped, 2 failed;LEONIDA_W64_EMULATE=1246/268 passed, 20 skipped, 2 failed. 278 shaders translated and passed spirv-val.cs_imgatomic_ext(6 of 64 sint words differ, first word 32: got 0x0badf00d, expected 0x00000101) andcs_texture_uav(exit 1 fromd3d12_texture_uav_test).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 d669e9add 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.
CachyOS/Linux setup verification on head
d669e9ad, merged locally intomain1bc055e6.python -I tests/test_gpu_test_setup.py -vpassed 12/12 (Python 3.14.10).python -I scripts/gpu_test_setup.py --jsonagreed with the host'svulkaninfo. It reported the RTX 4070 SUPER (NVIDIA 620.73.04, subgroups 32–32) and the Ryzen 7800X3D iGPU (RADV 26.3.1, 32–64). It found LLVM 23.1.5 with AMDGPU, both SPIR-V tools, and 109 fixture listings. It marked semantic tests ready and listed the unbuilt Vulkan test programs as the prerequisite for the subset and full runs, which matches this checkout.This exercised setup and device detection only. No GPU suites or game files were used. AI-assisted with Codex.
Follow-up on
d669e9adwith all six Linux Vulkan test programs built: the survey markssemanticandsubsetready, butfullstill reports onlyd3d12_texture_uav_testmissing. That executable is a Windows-only CMake target, whileMORE_PROGRAMSrequires it on every OS. I confirmed on the same build that excluding just that name from the program list makesfullready on Linux. The existing fixture expectation should distinguish Linux from Windows as well.The built harness also passed the synthetic
cs_w32_new_opssubset smoke test on the RTX 4070 SUPER (1/1, SPIR-V validation passed). No game files were used. AI-assisted with Codex.macOS run: Apple M5 Max, macOS 27.2.1, MoltenVK 1.4.2, Homebrew llvm 23.1.6, Python 3.15
d669e9addwith currentmaindd87aa405merged in (clean merge).tests/test_gpu_test_setup.py: 12/12 OK.python -I scripts/gpu_test_setup.py --build runtime/build/linux --llvm-mc .../llvm-mcfinds everything correctly: llvm-mc with the AMDGPU target, spirv-as / spirv-val, 109 listings,Apple M5 Max (1.4.2), subgroup 4..32: wave64 fixtures need LEONIDA_W64_EMULATE=1;semantic: ready,subset: ready.full: not yet ... needs the test programs d3d12_texture_uav_test. On this machine the full run needs nothing more.scripts/run_gpu_tests.pyonmainwith the same build: 203/274 passed, 0 failed, 71 skipped.cs_texture_uavis one of the skips:check.py'stexture_uav_test()returnsSkip("needs the Windows D3D12 runtime")whenos.name != "nt"before it looks for the program.Suggested fix: count
d3d12_texture_uav_testinMORE_PROGRAMSonly on Windows, e.g.MORE_PROGRAMS = (...) + (("d3d12_texture_uav_test",) if os.name == "nt" else ()), and a test case for the non-Windows list.LEONIDA_W64_EMULATE=1gives 237/274 passed, 0 failed. The 34no 64-wide compute subgroupskips run, and one fragment-subgroup skip remains.AI-assisted: yes.
Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.
(AI-assisted triage.)
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.