Update MPI alternatives to use MPICH

This commit is contained in:
Paul Romano 2021-04-23 13:26:10 -05:00
parent c605c33ea1
commit 3e769e05b4
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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