Skip to content

Commit

Permalink
add mpi testing to github actions (#85)
Browse files Browse the repository at this point in the history
adds mpi to the matrix of build options
  • Loading branch information
cwsmith authored Feb 13, 2024
1 parent 08e643b commit 8235499
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ jobs:
strategy:
matrix:
compiler: [g++, clang++]
mpi: [on, off]
kokkos: [on, off]
mempool: [on, off]
exclude:
- kokkos: off
mempool: on

env:
CXX: ${{matrix.compiler}}
MPICH_CXX: ${{matrix.compiler}}

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -28,6 +33,17 @@ jobs:
repository: kokkos/kokkos
path: kokkos

- name: install mpich
if: ${{ matrix.mpi == 'on' }}
run: |
sudo apt update
sudo apt install mpich
- name: set mpi compiler wrapper
if: ${{ matrix.mpi == 'on' }}
run: |
echo "CXX=mpicxx" >> $GITHUB_ENV
- name: Configure Kokkos
if: ${{ matrix.kokkos == 'on' }}
shell: bash
Expand All @@ -47,9 +63,9 @@ jobs:
working-directory: ${{github.workspace}}/omega_h
run: cmake .
-Bbuild
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
-DCMAKE_CXX_COMPILER=$CXX
-DCMAKE_VERBOSE_MAKEFILE=on
-DOmega_h_USE_MPI=off
-DOmega_h_USE_MPI=${{ matrix.mpi }}
-DOmega_h_USE_Kokkos=${{ matrix.kokkos }}
-DKokkos_PREFIX=$GITHUB_WORKSPACE/kokkos/build/install
-DBUILD_TESTING=ON
Expand All @@ -68,4 +84,4 @@ jobs:

- name: Print
if: always()
run: cat ${{github.workspace}}/omega_h/build/Testing/Temporary/LastTest.log
run: cat ${{github.workspace}}/omega_h/build/Testing/Temporary/LastTest.log

0 comments on commit 8235499

Please sign in to comment.