Skip to content

Commit

Permalink
add MPICH build
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Dec 18, 2023
1 parent 849e898 commit 70e0f71
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Linux
run-name: Linux
on: [push]
jobs:
Kokkos-040200-Threads-Debug:
Kokkos-040200-OpenMPI-Threads-Debug:
env:
KOKKOS_SRC: ${{ github.workspace }}/_deps/kokkos
KOKKOS_BUILD: ${{ github.workspace }}/_deps/kokkos-build
Expand Down Expand Up @@ -37,4 +37,29 @@ jobs:
- name: Test KokkosComm
run: |
ctest -V --test-dir "$COMM_BUILD"
Kokkos-040200-MPICH-Threads-Debug:
env:
KOKKOS_SRC: ${{ github.workspace }}/_deps/kokkos
KOKKOS_BUILD: ${{ github.workspace }}/_deps/kokkos-build
KOKKOS_INSTALL: ${{ github.workspace }}/_deps/kokkos-install
COMM_SRC: ${{ github.workspace }}
COMM_BUILD: ${{ github.workspace }}/build
runs-on: ubuntu-latest
steps:
- name: Install MPI
run: sudo apt-get update && sudo apt-get install -y mpich
- name: Check out repository code
uses: actions/checkout@v4
- name: Build Kokkos
run: |
git clone https://github.com/kokkos/kokkos.git "$KOKKOS_SRC"
cd "$KOKKOS_SRC" && git checkout 4.2.00
cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" -DCMAKE_INSTALL_PREFIX="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=Debug -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_THREADS=ON -DKokkos_ARCH_NATIVE=ON -DCMAKE_CXX_COMPILER=mpicxx
cmake --build "$KOKKOS_BUILD" --parallel $(nproc) -t install
- name: Build KokkosComm
run: |
cmake -S "$COMM_SRC" -B "$COMM_BUILD" -DKokkos_DIR="$KOKKOS_INSTALL/lib/cmake/Kokkos" -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_BUILD_TYPE=Debug
cmake --build "$COMM_BUILD" --parallel "$(nproc)"
- name: Test KokkosComm
run: |
ctest -V --test-dir "$COMM_BUILD"

0 comments on commit 70e0f71

Please sign in to comment.