mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #2389] scripts: gpu_test_setup.py says what of the GPU tests this machine can run (GPU-TEST-SETUP) #2391
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2391
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2389
Author: @syfyra
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:feat/gpu-test-setup📝 Commits (1)
ed4403dscripts: gpu_test_setup.py says what of the GPU tests this machine can run (GPU-TEST-SETUP)📊 Changes
2 files changed (+407 additions, -0 deletions)
View changed files
➕
scripts/gpu_test_setup.py(+193 -0)➕
tests/test_gpu_test_setup.py(+214 -0)📄 Description
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;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 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: 10 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, 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.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.subsetandfullare ready (the commands it prints for them were not run here), Linux and macOS, Python 3.12, and no mutation check of the tests.GPUs tested: n/a (no GPU test was run;
vulkaninfowas read on the two devices 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.