Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mpi testing to github actions #85

Merged
merged 16 commits into from
Feb 13, 2024
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