From 62dbad7e70301bc50519f785b978967d991f7bda Mon Sep 17 00:00:00 2001
From: Thorsten Hater <24411438+thorstenhater@users.noreply.github.com>
Date: Tue, 25 Oct 2022 09:17:13 +0200
Subject: [PATCH] Source OpenMPI from distribution packages.
---
.github/workflows/test-everything.yml | 56 +++++++++++++--------------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/test-everything.yml b/.github/workflows/test-everything.yml
index cc34dad1..c4adcafb 100644
--- a/.github/workflows/test-everything.yml
+++ b/.github/workflows/test-everything.yml
@@ -97,11 +97,11 @@ jobs:
if: ${{ startsWith(matrix.config.os, 'ubuntu') }}
run: |
sudo apt-get update
- sudo apt-get install -y libxml2-dev ${{ matrix.config.cc }}
+ sudo apt-get install -y libxml2-dev libopenmpi-dev ${{ matrix.config.cc }}
- name: "MacOS: get build dependencies"
if: ${{ startsWith(matrix.config.os, 'macos') }}
run: |
- brew install libxml2
+ brew install libxml2 openmpi
- name: Set up cmake
uses: jwlawson/actions-setup-cmake@v1.13
with:
@@ -112,32 +112,32 @@ jobs:
python-version: ${{ matrix.config.py }}
- name: Update pip
run: python -m pip install --upgrade pip
- - name: OpenMPI cache
- uses: actions/cache@v3
- id: cache-ompi
- with:
- 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.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.1.4
- sudo make install
- cd -
- - name: Update shared library cache
- if: ${{ startsWith(matrix.config.os, 'ubuntu') }}
- run: sudo ldconfig
+ # - name: OpenMPI cache
+ # uses: actions/cache@v3
+ # id: cache-ompi
+ # with:
+ # 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.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.1.4
+ # sudo make install
+ # cd -
+ # - name: Update shared library cache
+ # if: ${{ startsWith(matrix.config.os, 'ubuntu') }}
+ # run: sudo ldconfig
- name: Install Python packages
run: pip install numpy sphinx svgwrite sphinx-rtd-theme mpi4py pandas seaborn
- name: Clone w/ submodules
--
GitLab