Skip to content

Commit

Permalink
Linux: Install MPI in dedicated prefix to avoid shared lib conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Nov 17, 2024
1 parent 9f4f60e commit 9777213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cibw/install-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ micromamba config append channels nodefaults
micromamba config set channel_priority strict

echo "Install MPI ($MPI_PACKAGE=$MPI_VERSION) [$MACHINE]"
MPI_ROOT=${MPI_ROOT:-/usr/local}
MPI_ROOT=${MPI_ROOT:-/opt/mpi}
envroot=~/$MPI_ABI
envdir=$envroot/$MACHINE
micromamba create --yes --always-copy \
Expand Down Expand Up @@ -80,7 +80,7 @@ echo "Copying MPI to $MPI_ROOT"
$SUDO mkdir -p "$MPI_ROOT"
$SUDO cp -RP "$envdir"/. "$MPI_ROOT"
echo "Rebuild dynamic linker cache"
$SUDO "$(command -v ldconfig || echo true)"
$SUDO "$(command -v ldconfig || echo true)" "$MPI_ROOT"

echo "Display MPI information"
if [ "$MPI_PACKAGE" == mpich ]; then mpichversion; fi
Expand Down

0 comments on commit 9777213

Please sign in to comment.