Repository navigation
run_gpu_tests: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset (TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC) - #1978
Conversation
|
One stale spot: the new guard test in this PR fails on current
ap.add_argument("--llvm-mc", default=os.environ.get("LLVM_MC", "llvm-mc"))and then Two things to fold in when rebasing:
AI-assisted (verification only). |
…e unset (TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC)
run_gpu_tests.py and bench_wave64.py defaulted --llvm-mc to
os.environ.get("LLVM_MC", "llvm-mc"), so 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 stopped with the
message that says that install is found without further setup. Leave the
default to mc_command(), and add a test that no tool pins the plain name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAL8MMXUuNpQAVa1iiyAMP
…nd LLVM_MC are unset The script, added in ubiquitarianism#2350 after this PR was opened, also defaulted --llvm-mc to os.environ.get("LLVM_MC", "llvm-mc") and checked that name with shutil.which, so with only Ubuntu's llvm-21 it skipped (exit 77). It now asks mc_command.mc_command() like run_gpu_tests.py, and the guard test added here passes on main again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RAL8MMXUuNpQAVa1iiyAMP
|
Thanks, @wavehs. Fixed in the new head: rebased onto current Checked on Ubuntu 26.04 with only
Generated by Claude Code |
9211d47 to
b1c1ae9
Compare
Claimed in the coordination issue as: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC (#1608)
What and why
run_gpu_tests.pyandbench_wave64.pydefaulted--llvm-mctoos.environ.get("LLVM_MC", "llvm-mc"), somc_command.mc_command()never reachedversioned_llvm_mc(). With only Ubuntu'sllvm-21installed (llvm-mc-21and/usr/lib/llvm-21/bin/llvm-mc, no plainllvm-mc) the suite stops with the message that says that install "is found without further setup". The default is now left tomc_command();bench_wave64.pypasses an emptyLLVM_MC, whichmc_command()treats as unset.tests/test_mc_command.pygains 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.llvm-21from apt,LLVM_MCunset:run_gpu_tests.py --filter cs_imgatomic3dfails 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
mainand merges cleanly.docs/design.md(n/a)