UCM: Don't call ucs_status_string() from UCM modules #12228
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 196 lines diff across 2 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.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12228"
general
weight: 0.35
ankith117
What
ucs_status_string()insrc/ucm/rocm/rocmmem.candsrc/ucm/cuda/cudamem.c.check_ucm_no_ucs_symbolstobuildlib/az-helpers.shand run it after the build inbuildlib/pr/rocm/test_malloc_hook.shandbuildlib/pr/cuda/test_malloc_hook.sh: it fails if aUCM module (
libucm_.so) has an undefineducs_symbol.ucmentry ofsrc/AGENTS.md.Why
UCM modules link only
libucm. When UCX is loaded withRTLD_LOCAL(for example as an applicationplugin),
libucsis not in their scope, so logging throughucs_status_string()kills the process:Since #11887 this happens on every start when the bistro hook for the HSA allocator can't be
installed and UCX falls back to reloc hooks, because that path logs a warning. One such case is the
HSA runtime bundled with the PyTorch ROCm wheel.
libucm_cudahas the same call on aucm_diagpath (#8092).
The check covers only the modules:
libucm.soitself referencesucs_load_modulesanducs_sys_is_dynamic_lib, which is fine because it is loaded together withlibucs.Testing
the warning is printed and the reloc hooks are installed.
contrib/configure-develas in the CI script:check_ucm_no_ucs_symbolspasses;with the two UCM files reverted to master it fails on
ucs_status_string.