fix(tensilelite): supply a FindNUMA module so find_package(hsakmt) resolves #11450
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 570 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.380
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11450"
general
weight: 0.35
DDEle
JIRA ID : N/A (upstream defect tracked as ROCM-21395 in rocm-systems)
Targets
users/yiding12/gemm-a2a(the source branch for #10925), notdevelop— this unblocks the2gfx950preliminary-screening stage on that PR.Motivation
The
2gfx950preliminary-screening stage fails at configure time:That stage routes to the new
tox -e commenv, which is the only config that builds with-DTENSILELITE_ENABLE_SDMA=ONand therefore the only one that reachesfind_package(hsakmt).This is not a missing libnuma.
libnuma-devis installed on theubuntu24-therockimage (dockerfile-mci-stg0-ubu24lines 40-41), and the block this PR replaces located it successfully — itslibnuma not foundFATAL_ERRORnever fired, and configure got as far as line 73.What is missing is a NUMA package config. rocm-systems
0adba114d0e2(2026-07-21) added a barefind_dependency(NUMA)tohsakmt-config.cmake.in, but nothing installs aNUMAConfig.cmakeorFindNUMA.cmakefor it to find:libnuma-devships onlynuma.h/libnuma.so/numa.pc— no CMake fileFindNUMAFindNUMA.cmakebut never installs itSo
find_package(hsakmt)is broken for every consumer on such a build, and searching harder forlibnuma.socannot fix it.Technical Details
Move the libnuma lookup out of
client/CMakeLists.txtintocmake/FindNUMA.cmake, and put that directory onCMAKE_MODULE_PATHbeforefind_package(hsakmt)so hsakmt's internalfind_dependencyresolves in module mode:The module preserves the existing preference for the ROCm-vendored libnuma under
lib/rocm_sysdepsover a system one, so hsakmt and the client still agree on a single libnuma, and it now createsnuma::numain one place instead of two. Net:client/CMakeLists.txtloses 37 lines and gains 15.Upstream fixed the defect in
4d81cbd3496f(ROCM-21395, 2026-07-29) by forcing CONFIG mode against the bundled config underlib/rocm_sysdeps. CONFIG mode does not consultCMAKE_MODULE_PATH, so a ROCm built from that commit or later ignores this module entirely — both paths keep working. The CI image's TheRock pin currently sits in the ~8-day window between the regression and the fix.This module can be deleted once every ROCm we build against postdates
4d81cbd3496f.Test Plan
Verified locally against fakes of both hsakmt config variants, since neither is reproducible on a stock ROCm install:
1. Pre-fix hsakmt (bare
find_dependency(NUMA)) + this module2. Control: same project with the module removed from
CMAKE_MODULE_PATH3. Vendored libnuma present under
lib/rocm_sysdeps— must win over the system copy4. Post-fix hsakmt (
find_dependency(NUMA CONFIG PATHS .../lib/rocm_sysdeps)) — forward-compatTest Result
1. Configures cleanly;
numa::numa -> /usr/lib/x86_64-linux-gnu/libnuma.so; hsakmt config loads withNUMA_FOUND=TRUE. Re-entrancy holds —find_dependencyre-runs the module without a duplicate-target error.2. Reproduces the CI error verbatim, confirming the module is what fixes it.
3.
numa::numa -> .../rocm_sysdeps/lib/libnuma.so, includes from.../rocm_sysdeps/include. Vendored wins.4. Resolves through the vendored
NUMAConfig.cmake; our module correctly ignored. No conflict.Not yet exercised on real CI hardware — that is what merging this into #10925 will do.
Submission Checklist
Risk level
Low. Entirely inside
if(TENSILELITE_ENABLE_SDMA AND NOT WIN32), which is OFF by default, so no existing build configuration changes behaviour. The only consumer is the newtox -e commenv, which is broken today.Note for reviewers
cmake/FindNUMA.cmakeis force-added past the blanket*.cmakerule inprojects/hipblaslt/.gitignore:51, matching how the two sibling modules in that directory are already tracked..gitignoredoes not affect the file now that it is committed.