Skip to content

Commit 9c7f2b0

Browse files
committed
MPICH: Ubuntu 24.04 has fixed the missing libmpi.so.12 symlink
1 parent e143bb4 commit 9c7f2b0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/cd-wheel.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,10 @@ jobs:
479479
mpi: ${{ matrix.mpi }}
480480

481481
- if: ${{ matrix.mpi == 'mpich' && runner.os == 'Linux' }}
482-
run: sudo ln -sr /usr/lib/$(arch)-linux-gnu/libmpi{ch,}.so.12
482+
run: |
483+
# /usr/lib/$(arch)-linux-gnu/libmpi.so.12
484+
test -f /usr/lib/$(arch)-linux-gnu/libmpi.so.12 || \
485+
sudo ln -sr /usr/lib/$(arch)-linux-gnu/libmpi{ch,}.so.12
483486
484487
- uses: ./.github/actions/mpi4py-test-basic
485488
timeout-minutes: 2

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ dynamic linker is able to find at runtime the MPI shared library file
5858
On Debian/Ubuntu systems, Open MPI is the default MPI implementation and most
5959
of the MPI-based applications and libraries provided by the distribution depend
6060
on Open MPI. Nonetheless, MPICH is also available to users for installation.
61-
However, due to legacy reasons, the ABI is slightly broken: the MPI shared
62-
library file is named `libmpich.so.12` instead of `libmpi.so.12` as required by
63-
the [MPICH ABI Compatibility Initiative](https://www.mpich.org/abi/).
61+
62+
In Ubuntu 22.04 and older, due to legacy reasons, the MPICH ABI is slightly
63+
broken: the MPI shared library file is named `libmpich.so.12` instead of
64+
`libmpi.so.12` as required by the [MPICH ABI Compatibility
65+
Initiative](https://www.mpich.org/abi/).
6466
6567
Users without `sudo` access can workaround this issue creating a symbolic link
6668
anywhere in their home directory and appending to `LD_LIBRARY_PATH`.

0 commit comments

Comments
 (0)