From 3e769e05b4c0bdb0b28c157e10b0f20de782c581 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 23 Apr 2021 13:26:10 -0500 Subject: [PATCH] Update MPI alternatives to use MPICH --- .github/workflows/ci.yml | 8 ++++++-- tools/ci/gha-install.sh | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b917e5a05..1673af5319 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,12 +95,16 @@ jobs: shell: bash run: | sudo apt -y update - sudo apt install -y libopenmpi-dev \ + sudo apt install -y libmpich-dev \ libnetcdf-dev \ libpnetcdf-dev \ libhdf5-serial-dev \ - libhdf5-openmpi-dev \ + libhdf5-mpich-dev \ libeigen3-dev + sudo update-alternatives --set mpi /usr/bin/mpicc.mpich + sudo update-alternatives --set mpirun /usr/bin/mpirun.mpich + sudo update-alternatives --set mpi-x86_64-linux-gnu /usr/include/x86_64-linux-gnu/mpich + - name: install shell: bash diff --git a/tools/ci/gha-install.sh b/tools/ci/gha-install.sh index 2ef4ab9925..8c4762e3e4 100755 --- a/tools/ci/gha-install.sh +++ b/tools/ci/gha-install.sh @@ -31,7 +31,7 @@ if [[ $MPI == 'y' ]]; then export CC=mpicc export HDF5_MPI=ON - export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi + export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich pip install --no-binary=h5py h5py fi