Skip to content

Commit 5bf5523

Browse files
committed
Alternative approach: self-compiled MPICH
1 parent 4ad4757 commit 5bf5523

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/ci/spack-envs/gcc13_py312_mpich_h5_ad2/spack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ spack:
2222
variants: +mpi
2323
mpich:
2424
externals:
25-
- spec: mpich@4.2.0
26-
prefix: /usr
25+
- spec: mpich@4.2.1
26+
prefix: /usr/local
2727
buildable: False
2828
perl:
2929
externals:

.github/workflows/linux.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,20 @@ jobs:
172172
run: |
173173
sudo apt-get update
174174
sudo apt-get remove openmpi* libopenmpi* *hdf5* || true
175-
sudo apt-get install g++ gfortran libmpich-dev mpich python3
175+
sudo apt-get install g++ gfortran python3
176176
sudo .github/workflows/dependencies/install_spack
177+
178+
pushd /opt
179+
sudo wget -q -nc --no-check-certificate https://www.mpich.org/static/downloads/4.21/mpich-4.21.tar.gz
180+
sudo tar -xzf mpich-4.21.tar.gz
181+
cd mpich-4.21
182+
sudo ./configure --prefix=/usr/local
183+
sudo make -j 4
184+
sudo make -j 4 install
185+
cd ..
186+
sudo rm -rf mpich-4.21 mpich-4.21.tar.gz
187+
popd
188+
177189
- name: Build
178190
env: {CC: gcc, CXX: g++, MPICH_CC: gcc, MPICH_CXX: g++, CXXFLAGS: -Werror}
179191
run: |

0 commit comments

Comments
 (0)