-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: e4s-build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
concurrency: | ||
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{github.event_name == 'pull_request'}} | ||
jobs: | ||
HIP: | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
matrix: | ||
cxx: ['hipcc'] | ||
cmake_build_type: ['Release'] | ||
kokkos_ver: ['3.6.01'] | ||
runs-on: ubuntu-20.04 | ||
container: docker.io/ecpe4s/e4s-base-rocm:23.05 | ||
steps: | ||
- name: Checkout GTest | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: google/googletest | ||
ref: release-1.11.0 | ||
path: gtest | ||
- name: Build gtest | ||
working-directory: gtest | ||
run: | | ||
cmake -B build \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/gtest \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} | ||
cmake --build build --parallel 2 | ||
cmake --install build | ||
- name: Checkout json | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: nlohmann/json | ||
ref: v3.11.2 | ||
path: json | ||
- name: Build json | ||
working-directory: json | ||
run: | | ||
cmake -B build \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/json \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | ||
-DJSON_BuildTests=OFF | ||
cmake --build build --parallel 2 | ||
cmake --install build | ||
- name: Checkout kokkos | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: kokkos/kokkos | ||
ref: ${{ matrix.kokkos_ver }} | ||
path: kokkos | ||
- name: Build kokkos | ||
working-directory: kokkos | ||
run: | | ||
cmake -B build \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \ | ||
-DKokkos_ENABLE_HIP=ON \ | ||
-DKokkos_ARCH_VEGA908=ON \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | ||
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} | ||
cmake --build build --parallel 2 | ||
cmake --install build | ||
- name: Checkout Cabana | ||
uses: actions/[email protected] | ||
with: | ||
repository: ECP-CoPA/Cabana | ||
# This version is post-release 0.5 | ||
ref: 4fdb7eeb3ea32557444766a917fb9252af8540d6 | ||
path: cabana | ||
- name: Build Cabana | ||
working-directory: cabana | ||
run: | | ||
cmake -B build \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | ||
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/Cabana \ | ||
-DCMAKE_PREFIX_PATH="$HOME/kokkos" | ||
cmake --build build --parallel 2 | ||
cmake --install build | ||
- name: Checkout CabanaPD | ||
uses: actions/checkout@v3 | ||
- name: Build CabanaPD | ||
run: | | ||
cmake -B build \ | ||
-D CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | ||
-D CMAKE_CXX_COMPILER=${{ matrix.cxx }} \ | ||
-D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror" \ | ||
-D CMAKE_INSTALL_PREFIX=$HOME/CabanaPD \ | ||
-D CMAKE_PREFIX_PATH="$HOME/Cabana;$HOME/gtest;$HOME/json" \ | ||
-D MPIEXEC_MAX_NUMPROCS=2 \ | ||
-D MPIEXEC_PREFLAGS="--oversubscribe" \ | ||
-D CabanaPD_ENABLE_TESTING=ON | ||
cmake --build build --parallel 2 | ||
cmake --install build |
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