Repository navigation
Conda CI: Avoid UCX/OFI on MANA RDMA Runners - #1969
Merged
Merged
Conversation
Some Azure-hosted GitHub runners expose a Microsoft Azure Network Adapter RDMA device (mana_0). conda-forge's rdma-core ships the MANA verbs provider, so Open MPI from conda-forge sees the device and picks pml/ucx (ud_verbs) or, as a fallback, pml/cm + mtl/ofi (libfabric). Both fail to open mana_0, and all MPI tests abort in MPI_Init/the first communication call. This made conda_ompi_all fail intermittently, depending on which runner a job landed on. Pin Open MPI to the single-node components that it already selects on runners without such a device: pml/ob1, btl self,sm,tcp, and osc sm,rdma. Also log the RDMA devices of the runner, so we can tell which kind of host a job ran on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
franzpoeschel
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
conda_ompi_allhas been failing intermittently since a week ago. It has failed on unrelated PRs, including a Dependabot bump (#1968), #1960, #1963 (earlier run) and custom-hierarchies. In each failure, the same 8 MPI tests fail:MPI.ParallelIO,MPI.4_read_parallel,MPI.5_write_parallel,MPI.8_benchmark_parallel,MPI.8a_benchmark_write_parallel,CLI.pipe.py,Example.py.4_read_parallel,Example.py.5_write_parallel.Root Cause
Some Azure-hosted GitHub runners expose a Microsoft Azure Network Adapter (MANA) RDMA device,
mana_0:rdma-coreships the MANA verbs provider (libmana-rdmav*.so). Ubuntu 22.04's systemibverbs-providers(39.0) does not, which is why only the conda job is affected.pml/ucxtreats itself as usable when aud_verbs/rc_verbstransport is present (pml_ucx_tlsdefault). It is selected on these hosts, then fails to create a UCP worker.pml/cm+mtl/ofi(libfabric). TheMessage size ... Max = 0text is fromhelp-mtl-ofi.txt, and this path cannot usemana_0either.pml/ob1and everything passes. Whether the job fails depends on the host it lands on, not on the code. Image versions and package versions (openmpi 5.0.11,ucx 1.22.0,rdma-core 65.0) were identical between passing and failing runs.This is the same problem that #1956 worked around for the SST UCX data plane. Here it hits the MPI layer itself. Another project hit the same
ud_verbs/mana_0failure with MPICH+UCX: underworldcode/underworld3#461.Fix
The
Buildstep ofconda_ompi_allnow pins Open MPI to the single-node components that it already selects on runners without a MANA device:pml=ob1rules out bothpml/ucxandpml/cm(and thereforemtl/ofi).btldropsofi/uct/usnic/smcuda.oscdropsucx.rdmais required forMPI_Win_create/dynamic windows (smonly serves allocate/shared windows).UCX-only settings (e.g.
UCX_TLS=self,sm,tcp, as in the underworld3 fix) would not be enough here. Open MPI would fall through to the equally broken OFI MTL.A small
RDMA devicesstep lists/sys/class/infiniband/, so the log shows whether a job ran on a MANA host.Verification
Barrier,Bcast,Comm_dup,Isend/Irecv, and all four window flavors pass.osc_base_verboseconfirmsosc/smfor allocate/shared windows andosc/rdmafor create/dynamic windows.RDMA devicesstep showsmana_0. Otherwise, re-running the job may be needed to land on such a host.Not Addressed Here
#1963 (
clang11_nopy_ompi_h5_ad2) and #1965 (musllinux_py10) failed inshare/openPMD/download_samples.shwithgzip: stdin: not in gzip format.curl -sOLhas no--fail/--retry, so an HTTP error response is saved as the.tar.gz. That is a separate flake for a follow-up.🤖 Generated with Claude Code