From 977721378ca54ad42cc278d4cd9e607dc4b3519a Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Sun, 17 Nov 2024 17:17:55 -0300 Subject: [PATCH] Linux: Install MPI in dedicated prefix to avoid shared lib conflicts --- .cibw/install-mpi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cibw/install-mpi.sh b/.cibw/install-mpi.sh index 066e738..39e8c37 100755 --- a/.cibw/install-mpi.sh +++ b/.cibw/install-mpi.sh @@ -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 \ @@ -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