From 023962f38eab34e2a03d1635ac00b298f9a1dcf8 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 20 Nov 2023 16:53:31 -0500 Subject: [PATCH] CI: Install OpenMPI 5.0 --- .github/workflows/CI-mpiwrapper.yml | 11 +++++++---- .github/workflows/install-openmpi.sh | 10 ++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/install-openmpi.sh diff --git a/.github/workflows/CI-mpiwrapper.yml b/.github/workflows/CI-mpiwrapper.yml index 2201799f..024bb510 100644 --- a/.github/workflows/CI-mpiwrapper.yml +++ b/.github/workflows/CI-mpiwrapper.yml @@ -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: | diff --git a/.github/workflows/install-openmpi.sh b/.github/workflows/install-openmpi.sh new file mode 100644 index 00000000..9e694042 --- /dev/null +++ b/.github/workflows/install-openmpi.sh @@ -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