Skip to content

UCT/CUDA: Set name for non-visible GPUs UNKN%d - #11963

Merged
tvegas1 merged 4 commits into
openucx:masterfrom
guy-ealey-morag:nvml-unkn-names
Sep 18, 2026
Merged

tvegas1 merged 4 commits into
openucx:masterfrom
guy-ealey-morag:nvml-unkn-names

Conversation

@guy-ealey-morag

@guy-ealey-morag guy-ealey-morag commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What?

Set name for non-nvisible GPUs added using NVML in the format of UNKN%d.
The index used the the nvml index, to have consistency in naming between different processes with different CUDA_VISIBLE_DEVICES

Why?

This is useful for logging to identify GPUs that are not visible for consistency with the visible GPUs named GPU%d

Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread src/uct/cuda/base/cuda_util.c Resolved
Comment thread src/uct/cuda/base/cuda_util.c Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Coverage gap: no test accompanies the change. Naming hidden GPUs needs a multi-GPU node plus a restricted CUDA_VISIBLE_DEVICES and NVML, which today only contrib/test_jenkins.sh sets up (CUDA_VISIBLE_DEVICES per worker); there is no gtest that inspects hidden-GPU topology names. Since the change only affects debug names, existing CI is probably acceptable, but please confirm the behavior was observed manually (e.g. ucx_info -s output with a subset of GPUs visible).

@guy-ealey-morag guy-ealey-morag changed the title UCT/DUCA: Set name for invisible GPUs UNKN%d UCT/CUDA: Set name for invisible GPUs UNKN%d Sep 17, 2026
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread src/uct/cuda/base/cuda_util.c Resolved
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread src/uct/cuda/base/cuda_util.c Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap (already raised in the earlier review, not repeated as a new comment): the hidden-GPU naming path needs a multi-GPU node with a restricted CUDA_VISIBLE_DEVICES plus NVML, which no gtest exercises.

@guy-ealey-morag guy-ealey-morag changed the title UCT/CUDA: Set name for invisible GPUs UNKN%d UCT/CUDA: Set name for non-visible GPUs UNKN%d Sep 17, 2026
@svc-ucx

svc-ucx commented Sep 17, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (Tests new on worker 2) · commit 533bb6db

TL;DR: The gtest job aborted in rc_mlx5/uct_amo_fand_for_test_inlresp.for64_inlresp32/1 because the HCA mlx5_1:1 returned an IB completion error (syndrome 0x14 = remote operation error, vendor 0x89) on a 64-bit MASKED_CSWAP atomic; UCX escalates that unexpected error to FATAL, which core-dumps the test binary. This is an infrastructure/HW-level atomics failure on worker 2 (mlx5_1), unrelated to PR #11963's NVML name change — rerun the job and, if it reproduces, investigate atomic support on mlx5_1 / recent IB-MD mkey changes.

Full analysis

Summary: make test in "Tests new on worker 2" aborted (core dumped) during rc_mlx5/uct_amo_fand_for_test_inlresp.for64_inlresp32/1 after an mlx5 completion-with-error on an RC atomic.

Root cause: From the log:

ib_mlx5_log.c:174  Remote operation error on mlx5_1:1/IB (synd 0x14 vend 0x89 hw_synd 0/0)
RC QP 0xf81b wqe[334]: MASKED_CSWAP s-- [rva 0x[REDACTED:Hex High Entropy String] rkey 0x5cf200]
    [64 bit cmp 0/0x0 swap ...0xc8cc5293a21392c8] [rqpn 0xf819 ...]

The device (not UCX logic) rejected the fetch-and-OR, which rc_mlx5 implements as a 64-bit MASKED_CSWAP (cmp mask 0), with syndrome 0x14 (REMOTE_OP_ERR) / vendor 0x89 — i.e. the responder could not execute the atomic against that mkey (typical for atomic-capability/mkey-attribute problems on the target MR, not for a bad WQE: address 0x...2f8 is 8-byte aligned and the operands are well-formed). Because uct_amo_test ifaces have no error handler, uct_rc_mlx5_iface_handle_failure() picks FATAL log level and uct_ib_mlx5_completion_with_err() aborts (backtrace frames 0–1), producing make: *** [Makefile:4690: test] Aborted (core dumped) and Bash exited with code '2'.

There is no timing gap or hang in the log (test progresses continuously up to the error), and the test source has not been touched since 2022, so this is not a test-code regression. The PR under test (nvml-unkn-names, NVML device naming) touches no IB/atomic code path, so the failure is not attributable to the PR. Note all preceding UCP tests ran on mlx5_0 while only the mlx5_1:1-bound tests hit this — pointing at that specific device/port on swx-rdmz-ucx-new-02.

Implicated commit: unknown (not caused by 533bb6d / PR #11963). Candidates worth ruling out if it reproduces: [REDACTED:Hex High Entropy String] (Thomas Vegas, "UCT/IB: Allow ODP with DDP for FW >= 49.1014", #11914), a9568621 (Roie Danino, "UCT/IB: Support relaxed-only memory keys", #11649), 66c95b2d (Roie Danino, "UCT/IB/MLX5: Purge outstanding AM short and flush operations") — all recently merged IB MD / mlx5 error-flow changes.

File: src/uct/ib/mlx5/ib_mlx5_log.c:174 (abort site); failing test: test/gtest/uct/test_amo_fand_for.cc:91

Suggested fix: Re-run the PR CI first — this is not a PR-related failure. If it reproduces on worker 2: (1) verify HCA mlx5_1 port 1 firmware/atomic capabilities on swx-rdmz-ucx-new-02 (masked-CSWAP / extended-atomics support and MR atomic access rights) and compare with mlx5_0, which passed; (2) check whether the receive buffer's atomic mkey is being created as a relaxed-ordering-only or ODP mkey (recent #11649 / #11914 changes) — atomics against such mkeys can return REMOTE_OP_ERR, and if so gate atomic mkey creation on non-RO/atomic-capable registration; (3) if the device genuinely lacks the capability, check_atomics() should skip FOP64 for that device instead of letting the FATAL abort kill the whole gtest run.

Related: none found (no matching issue/PR for this syndrome or test)

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 09d555e3-42ac-4521-9bff-a88ba7e9e217 in the triage console for the audit trail.

@ColinNV ColinNV left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I'm also not sure that UNKN is the best prefix?

@tvegas1
tvegas1 enabled auto-merge (squash) September 18, 2026 13:33
@tvegas1
tvegas1 merged commit 77d00af into openucx:master Sep 18, 2026
162 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants