Repository navigation
UCM: Don't call ucs_status_string() from UCM modules - v1.23.x - #12301
Conversation
(cherry picked from commit 929abbb)
|
🤖 Starting review — findings will be posted here when done. |
| exit 1 | ||
| fi | ||
|
|
||
| if nm -D --undefined-only ${ucm_modules} | grep -E '\bU ucs_'; then |
There was a problem hiding this comment.
nm failure is swallowed by the pipe; grep exit status is all the if sees, so a missing or failing nm makes the guard pass silently. Non-blocking but defeats the purpose of a CI check.
Suggestion:
| if nm -D --undefined-only ${ucm_modules} | grep -E '\bU ucs_'; then | |
| undefined_syms=$(nm -D --undefined-only ${ucm_modules}) | |
| if echo "${undefined_syms}" | grep -E '\bU ucs_'; then | |
| azure_log_error "UCM modules have undefined libucs symbols" | |
| exit 1 | |
| fi |
Right now a failing or missing nm is hidden by the pipe, and the check passes silently.
| out_unlock: | ||
| if (status != UCS_OK) { | ||
| ucm_diag("failed to install cuda hooks: %s", ucs_status_string(status)); | ||
| ucm_diag("failed to install cuda hooks: status %d", status); |
There was a problem hiding this comment.
minor: raw ucs_status_t numbers in user-visible logs are hard to interpret — status %d is hard to read for users. Maybe we can add a header-only status-name helper in ucs/type/status.h so ucm logs stay readable? Same for the two messages in rocmmem.c.
| ucm_warn("rocm hooks installed with one mechanism only (bistro: %s, " | ||
| "reloc: %s)", ucs_status_string(bistro_status), | ||
| ucs_status_string(reloc_status)); | ||
| ucm_warn("rocm hooks installed with one mechanism only (bistro: %d, " |
There was a problem hiding this comment.
minor: raw ucs_status_t number in this user-visible log is hard to interpret; consider a header-only status-name helper so ucm logs stay readable.
| ucm_info("rocm hooks are ready"); | ||
| } | ||
| } else { | ||
| status = (bistro_status != UCS_OK) ? bistro_status : reloc_status; |
There was a problem hiding this comment.
minor: raw ucs_status_t number in this user-visible log is hard to interpret; consider a header-only status-name helper so ucm logs stay readable.
| - `ucm`: memory allocation/event interception and memory hook logic. Be careful | ||
| with initialization order, async-signal-safety assumptions, and interactions | ||
| with external allocators. | ||
| with external allocators. UCM modules (`libucm_cuda`, `libucm_rocm`, ...) |
There was a problem hiding this comment.
minor: the new rule is ucm-specific; src/ucm/AGENTS.md has a Conventions section where ucm rules live. Can we also put this in src/ucm/AGENTS.md under Conventions?
|
🤖 CI Triage Agent — TL;DR: The ASAN BlueField gtest run failed on the single test Full analysisSummary: Root cause:
These literals encode an exact number of EP/rkey configurations created by protocol re-selection. On this branch the rkey/EP configuration machinery was recently reworked by the v1.23.x backports ( Note: the Azure log is only retrievable as the tail of the step, which contains the gtest summary but not the per-assertion Implicated commit: Not a single bad commit; the mismatch was introduced by the rkey/EP-config backports, most likely File: Suggested fix:
Related: #12293 (the fix, not yet on v1.23.x), #11901 (make
|
backport #12228