Bump Parthenon and update interfaces #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: github-linux | |
on: [push, pull_request] | |
# Cancel "duplicated" workflows triggered by pushes to internal | |
# branches with associated PRs. | |
concurrency: | |
group: ${{ github.ref }}-${{ github.head_ref }}-github-linux | |
cancel-in-progress: true | |
jobs: | |
build-host: | |
continue-on-error: true | |
strategy: | |
matrix: | |
cxx: ['g++', 'clang++-13'] | |
cmake_build_type: ['Release', 'Debug'] | |
device: ['cuda', 'host'] | |
parallel: ['serial', 'mpi'] | |
exclude: | |
# Remove builds that are used during testing stage | |
- cxx: g++ | |
device: host | |
cmake_build_type: Release | |
runs-on: ubuntu-latest | |
container: | |
image: registry.gitlab.com/pgrete/parthenon/cuda11.4.2-mpi-hdf5 | |
env: | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: CMake | |
run: | | |
cmake -B builddir \ | |
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | |
-DMACHINE_CFG=${PWD}/external/parthenon/cmake/machinecfg/GitHubActions.cmake \ | |
-DMACHINE_VARIANT=${{ matrix.device }}_${{ matrix.parallel }} | |
- name: Build | |
run: | | |
cmake --build builddir --parallel 2 | |
test-host: | |
continue-on-error: true | |
strategy: | |
matrix: | |
parallel: ['serial', 'mpi'] | |
runs-on: ubuntu-latest | |
container: | |
image: registry.gitlab.com/pgrete/parthenon/cuda11.4.2-mpi-hdf5 | |
env: | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: CMake | |
run: | | |
cmake -B builddir \ | |
-DCMAKE_CXX_COMPILER=g++ \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DMACHINE_CFG=${PWD}/external/parthenon/cmake/machinecfg/GitHubActions.cmake \ | |
-DMACHINE_VARIANT=host_${{ matrix.parallel }} \ | |
-DNUM_MPI_PROC_TESTING=2 | |
- name: Build | |
run: | | |
cmake --build builddir --parallel 2 | |
cd builddir | |
ctest --output-on-failure |