mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Build h5py against OpenMPI for MPI configurations
This commit is contained in:
parent
6602487ad4
commit
dea0a0e21f
2 changed files with 9 additions and 4 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue