[PR #1978] run_gpu_tests: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset (TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC) #1984

Open
opened 2026-11-26 21:19:38 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1978
Author: @vinceychu
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/run-gpu-tests-versioned-llvm-mc


📝 Commits (2)

  • aa3e217 run_gpu_tests: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset (TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC)
  • b1c1ae9 run_address_guard_gpu_test: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset

📊 Changes

4 files changed (+30 additions, -7 deletions)

View changed files

📝 scripts/bench_wave64.py (+2 -1)
📝 scripts/run_address_guard_gpu_test.py (+7 -3)
📝 scripts/run_gpu_tests.py (+6 -3)
📝 tests/test_mc_command.py (+15 -0)

📄 Description

Claimed in the coordination issue as: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC (#1608)

What and why

run_gpu_tests.py and bench_wave64.py defaulted --llvm-mc to os.environ.get("LLVM_MC", "llvm-mc"), so mc_command.mc_command() never reached versioned_llvm_mc(). With only Ubuntu's llvm-21 installed (llvm-mc-21 and /usr/lib/llvm-21/bin/llvm-mc, no plain llvm-mc) the suite stops with the message that says that install "is found without further setup". The default is now left to mc_command(); bench_wave64.py passes an empty LLVM_MC, which mc_command() treats as unset. tests/test_mc_command.py gains a check that no tool pins the plain name (it fails on main for both scripts).

Tested

  • python -I tests/test_mc_command.py, test_run_gpu_tests.py, test_run_gpu_tests_paths.py, test_run_gpu_tests_python_assembler.py, test_bench_wave64.py: OK.
  • Ubuntu 26.04 with only llvm-21 from apt, LLVM_MC unset: run_gpu_tests.py --filter cs_imgatomic3d fails with the not-found message on main and passes (1/1) with this change.

GPUs tested: NVIDIA GeForce RTX 5090, driver 595.99.02, Ubuntu 26.04.1

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption, including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md (n/a)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1978 **Author:** [@vinceychu](https://github.com/vinceychu) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/run-gpu-tests-versioned-llvm-mc` --- ### 📝 Commits (2) - [`aa3e217`](https://github.com/ubiquitarianism/leonida/commit/aa3e217ac6aaa84398b9e60fb4c76e9b89347351) run_gpu_tests: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset (TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC) - [`b1c1ae9`](https://github.com/ubiquitarianism/leonida/commit/b1c1ae97b018ad46db9f1bc7c2258764d566e654) run_address_guard_gpu_test: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset ### 📊 Changes **4 files changed** (+30 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `scripts/bench_wave64.py` (+2 -1) 📝 `scripts/run_address_guard_gpu_test.py` (+7 -3) 📝 `scripts/run_gpu_tests.py` (+6 -3) 📝 `tests/test_mc_command.py` (+15 -0) </details> ### 📄 Description Claimed in the coordination issue as: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC (#1608) ### What and why `run_gpu_tests.py` and `bench_wave64.py` defaulted `--llvm-mc` to `os.environ.get("LLVM_MC", "llvm-mc")`, so `mc_command.mc_command()` never reached `versioned_llvm_mc()`. With only Ubuntu's `llvm-21` installed (`llvm-mc-21` and `/usr/lib/llvm-21/bin/llvm-mc`, no plain `llvm-mc`) the suite stops with the message that says that install "is found without further setup". The default is now left to `mc_command()`; `bench_wave64.py` passes an empty `LLVM_MC`, which `mc_command()` treats as unset. `tests/test_mc_command.py` gains a check that no tool pins the plain name (it fails on main for both scripts). ### Tested - `python -I tests/test_mc_command.py`, `test_run_gpu_tests.py`, `test_run_gpu_tests_paths.py`, `test_run_gpu_tests_python_assembler.py`, `test_bench_wave64.py`: OK. - Ubuntu 26.04 with only `llvm-21` from apt, `LLVM_MC` unset: `run_gpu_tests.py --filter cs_imgatomic3d` fails with the not-found message on main and passes (1/1) with this change. GPUs tested: NVIDIA GeForce RTX 5090, driver 595.99.02, Ubuntu 26.04.1 AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption, including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md` (n/a) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1984
No description provided.