Build h5py against OpenMPI for MPI configurations

This commit is contained in:
Paul Romano 2021-04-20 23:05:56 -05:00
parent 6602487ad4
commit dea0a0e21f
2 changed files with 9 additions and 4 deletions

View file

@ -95,12 +95,11 @@ jobs:
shell: bash
run: |
sudo apt -y update
sudo apt install -y mpich \
libmpich-dev \
sudo apt install -y libopenmpi-dev \
libnetcdf-dev \
libpnetcdf-dev \
libhdf5-serial-dev \
libhdf5-mpich-dev \
libhdf5-openmpi-dev \
libeigen3-dev
-
name: install

View file

@ -24,9 +24,15 @@ if [[ $LIBMESH = 'y' ]]; then
./tools/ci/gha-install-libmesh.sh
fi
# Install mpi4py for MPI configurations
# For MPI configurations, make sure mpi4py and h5py are built against the
# correct version of MPI
if [[ $MPI == 'y' ]]; then
pip install --no-binary=mpi4py mpi4py
export CC=mpicc
export HDF5_MPI=ON
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi
pip install --no-binary=h5py h5py
fi
# Build and install OpenMC executable