Skip to content

Commit 1635255

Browse files
committed
Move MPICH installation to separate file
1 parent 99dcae4 commit 1635255

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
#
3+
4+
set -eu -o pipefail
5+
6+
mpich_ver="4.3.0"
7+
8+
cd /opt
9+
wget https://www.mpich.org/static/downloads/${mpich_ver}/mpich-${mpich_ver}.tar.gz
10+
tar -xzf mpich-${mpich_ver}.tar.gz
11+
cd mpich-${mpich_ver}
12+
./configure --prefix=/usr/local
13+
make -j 4
14+
make -j 4 install
15+
cd ..
16+
rm -rf mpich-${mpich_ver} mpich-${mpich_ver}.tar.gz

.github/workflows/linux.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,9 @@ jobs:
175175
sudo apt-get install g++ gfortran python3
176176
sudo .github/workflows/dependencies/install_spack
177177
178-
pushd /opt
179-
sudo wget https://www.mpich.org/static/downloads/4.3.0/mpich-4.3.0.tar.gz
180-
sudo tar -xzf mpich-4.3.0.tar.gz
181-
cd mpich-4.3.0
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.3.0 mpich-4.3.0.tar.gz
187-
popd
178+
# Need to build this manually due to broken MPICH package in Ubuntu 24.04
179+
# https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338
180+
sudo .github/workflows/dependencies/install_mpich
188181
189182
- name: Build
190183
env: {CC: gcc, CXX: g++, MPICH_CC: gcc, MPICH_CXX: g++, CXXFLAGS: -Werror}

0 commit comments

Comments
 (0)