A run hangs when NCCL finds no socket interface, instead of falling back to MPI
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp
Research direction
Start with src/compop/comm/mpi.cpp around compop_nccl_bootstrap and src/compop/backend/gpu/device_coll.cu around compop_nccl_gen_unique_id; the issue identifies the ignored ncclGetUniqueId result as a possible cause. Reproduce with two ranks and NCCL_SOCKET_IFNAME=nonexistent0, then check how the error and unique ID are shared across ranks. Done means the run skips NCCL together and completes through the available MPI or host-staging fallback, with the warning text cleaned up as described.
Written by the indexing model from the issue text.
Description
🤖 AI text below 🤖
When NCCL can't start its bootstrap, a run on several GPUs hangs. It doesn't fall back to CUDA-aware MPI or host staging, as the comment in compop_nccl_bootstrap says it should.
To reproduce: 2 ranks on one node with 2 A100s, NCCL 2.19.3, and NCCL_SOCKET_IFNAME=nonexistent0. Both ranks print
bootstrap.cc:48 NCCL WARN Bootstrap : no socket interface found
and then nothing happens until the job is killed. The same happens at #122's head (3043d958) and at its base, #103 (e7c9d99f), so the hang is older than #122. With NCCL_NET=bogus NCCL fails with an error instead, and the fallback of #122 works: one warning, the same nccl_skip_reason() on both ranks, and the run finishes on CUDA-aware MPI.
A possible cause, not confirmed: I couldn't attach a debugger on that cluster. compop_nccl_gen_unique_id ignores the result of ncclGetUniqueId. When that call fails, rank 0 broadcasts a zeroed id, and ncclCommInitRank may wait on it instead of returning an error. Rank 0 could check the result and broadcast it with the id, so that every rank skips NCCL together.
Also from the review of #122: the fallback warning gives two hints, NCCL's own (run with NCCL_DEBUG=WARN for details) and ours (NCCL_DEBUG=INFO to diagnose; ...). Only COMPOP_DEVICE_MPI=0 needs to stay in ours.
- Dominant language
- C++
- Stars
- 3
- Forks
- 0
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 31
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Algorithmiq/exa-dmrg
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Algorithmiq/exa-dmrg#153 ·
Maintainers usually reply within 2 days
-
Add CITATION.cff once the paper is outPossibly taken @FabioTarocco claimed this 1 day ago. Opendocumentation request
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Algorithmiq/exa-dmrg#106 · 2 assignees ·
Maintainers usually reply within 2 days
-
bug
Difficulty 5/5 Over a week Newbie friendliness 35/100
Algorithmiq/exa-dmrg#161 ·
Maintainers usually reply within 2 days
-
bug cpp
Difficulty 5/5 Over a week Newbie friendliness 35/100
Algorithmiq/exa-dmrg#157 ·
Maintainers usually reply within 2 days
-
Shorten the tests of the wheels in cibuildwheelPossibly taken @robertodr claimed this 1 day ago. Openci request
Algorithmiq/exa-dmrg#155 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
All issues in Algorithmiq/exa-dmrg
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
simnJS/AnyPS5#735 · 1 comment ·
Maintainers usually reply within 1 day
-
area:tests kind:test
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
? - Needs Triage bot_watch bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/cudf-spark-jni#5594 ·
Maintainers usually reply within 1 day
-
Branch-master
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TrinityCore/TrinityCore#32177 ·
Maintainers usually reply within 10 days