From 6880b7c4ea34c00186199499d6ed5cbb07005831 Mon Sep 17 00:00:00 2001
From: Thorsten Hater <24411438+thorstenhater@users.noreply.github.com>
Date: Mon, 24 Oct 2022 10:16:46 +0200
Subject: [PATCH] Bump OpenMPI to 4.1.x

- bump OpenMPI version in hope of fixing the intermittent memory corruption
- bump Ubuntu and clang versions in `sanitize.yml` workflow.
---
 .github/workflows/lint.yml            |  2 +-
 .github/workflows/sanitize.yml        |  6 +++---
 .github/workflows/test-everything.yml | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1bac5437..4d109e4b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,4 +1,4 @@
-name: Sanitize
+name: Lint
 
 on:
   pull_request:
diff --git a/.github/workflows/sanitize.yml b/.github/workflows/sanitize.yml
index 582ef82b..583cfe57 100644
--- a/.github/workflows/sanitize.yml
+++ b/.github/workflows/sanitize.yml
@@ -7,7 +7,7 @@ on:
 jobs:
   build:
     name: "Sanitize"
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-22.04
     strategy:
       fail-fast: false
       matrix:
@@ -15,8 +15,8 @@ jobs:
         sanitizer: ["address", "undefined", "thread"]
         simd:      ["ON", "OFF"]
     env:
-        CC:           clang-10
-        CXX:          clang++-10
+        CC:           clang-14
+        CXX:          clang++-14
         ASAN_OPTIONS: detect_leaks=1
     steps:
       - name: Set up cmake
diff --git a/.github/workflows/test-everything.yml b/.github/workflows/test-everything.yml
index 806df586..cc34dad1 100644
--- a/.github/workflows/test-everything.yml
+++ b/.github/workflows/test-everything.yml
@@ -116,23 +116,23 @@ jobs:
         uses: actions/cache@v3
         id:   cache-ompi
         with:
-          path: ~/openmpi-4.0.2
-          key:  ${{ matrix.config.os }}-openmpi-4.0.2-${{ matrix.config.cxx }}
+          path: ~/openmpi-4.1.4
+          key:  ${{ matrix.config.os }}-openmpi-4.1.4-${{ matrix.config.cxx }}
       - name: Build OpenMPI
         if: ${{ steps.cache-ompi.outputs.cache-hit != 'true' }}
         run: |
            echo cache-hit='${{ steps.cache-ompi.outputs.cache-hit }}'
            cd ~
-           wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.2.tar.gz
-           tar -xvf ./openmpi-4.0.2.tar.gz
-           cd openmpi-4.0.2
+           wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.4.tar.gz
+           tar -xvf ./openmpi-4.1.4.tar.gz
+           cd openmpi-4.1.4
            ./configure --disable-mpi-fortran
            make -j4
       - name: Install OpenMPI
         run: |
            echo "Going to install ompi"
            cd ~
-           cd openmpi-4.0.2
+           cd openmpi-4.1.4
            sudo make install
            cd -
       - name: Update shared library cache
-- 
GitLab