Skip to content

Commit

Permalink
test: Add CI tests for alternative names and multiple installs
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Oct 9, 2023
1 parent a2cf984 commit 3969f24
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,98 @@ jobs:
mpiexec /help2
mpiexec /help3
if: ${{ runner.os == 'Windows' && matrix.mpi == 'msmpi' }}

Linux:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Setup MPICH
id: setup1
uses: ./
with:
mpi: mpich
- run: test ${{ steps.setup1.outputs.mpi }} == mpich
- run: command -v mpichversion

- name: Setup Open MPI
id: setup2
uses: ./
with:
mpi: openmpi
- run: test ${{ steps.setup2.outputs.mpi }} == openmpi
- run: command -v ompi_info

- name: Setup Intel MPI
id: setup3
uses: ./
with:
mpi: intelmpi
- run: test ${{ steps.setup3.outputs.mpi }} == intelmpi
- run: command -v impi_info

macOS:
runs-on: macos-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Setup MPICH
id: setup1
uses: ./
with:
mpi: mpich
- run: test ${{ steps.setup1.outputs.mpi }} == mpich
- run: command -v mpichversion

- name: Setup Open MPI
id: setup2
uses: ./
with:
mpi: open-mpi
- run: test ${{ steps.setup2.outputs.mpi }} == openmpi
- run: command -v ompi_info

- name: Unlink Homebrew MPI formulae
run: brew unlink mpich openmpi

- name: Setup MPICH
id: setup3
uses: ./
with:
mpi: mpich
- run: test ${{ steps.setup3.outputs.mpi }} == mpich
- run: command -v mpichversion

- name: Setup Open MPI
id: setup4
uses: ./
with:
mpi: ompi
- run: test ${{ steps.setup4.outputs.mpi }} == openmpi
- run: command -v ompi_info

Windows:
runs-on: windows-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Setup Intel MPI
id: setup1
uses: ./
with:
mpi: intel

- name: Setup Microsoft MPI
id: setup2
uses: ./
with:
mpi: microsoft

- run: test ${{ steps.setup1.outputs.mpi }} == intelmpi
- run: test ${{ steps.setup2.outputs.mpi }} == msmpi
1 change: 1 addition & 0 deletions setup-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ esac
if [ $MPI == openmpi ]; then
openmpi_mca_params=$HOME/.openmpi/mca-params.conf
mkdir -p $(dirname $openmpi_mca_params)
rm -f $openmpi_mca_params
echo plm=isolated >> $openmpi_mca_params
echo rmaps_base_oversubscribe=true >> $openmpi_mca_params
echo btl_base_warn_component_unused=false >> $openmpi_mca_params
Expand Down

0 comments on commit 3969f24

Please sign in to comment.