mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Update MPI alternatives to use MPICH
This commit is contained in:
parent
c605c33ea1
commit
3e769e05b4
2 changed files with 7 additions and 3 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue