Skip to content

Commit

Permalink
CI: Install OpenMPI 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Nov 20, 2023
1 parent e919835 commit 023962f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/CI-mpiwrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
- name: Install ${{matrix.mpi}}
run: |
case "${{matrix.mpi}}" in
MPICH) packages=libmpich-dev;;
OpenMPI) packages=libopenmpi-dev;;
MPICH)
sudo apt-get update
sudo apt-get install $packages
;;
OpenMPI)
./install-openmpi.sh
;;
esac
sudo apt-get update
sudo apt-get install $packages
- name: Configure
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/install-openmpi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

set -euxo pipefail

wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.0.tar.bz2
tar xzf openmpi-5.0.0.tar.bz2
cd openmpi-5.0.0
./configure
make -j$(nproc)
make install

0 comments on commit 023962f

Please sign in to comment.