-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (60 loc) · 1.7 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 4 * * MON'
jobs:
CI:
strategy:
matrix:
distro: ['ubuntu:latest']
backend: ["SERIAL", "OPENMP"]
runs-on: ubuntu-20.04
container:
image: ghcr.io/ecp-copa/ci-containers/${{ matrix.distro }}
steps:
- name: Checkout kokkos
uses: actions/[email protected]
with:
repository: kokkos/kokkos
ref: 3.7.01
path: kokkos
- name: Build kokkos
working-directory: kokkos
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \
-DKokkos_CXX_STANDARD=14 \
-DKokkos_ENABLE_${{ matrix.backend }}=ON
cmake --build build --parallel 2
cmake --install build
- name: Checkout Cabana
uses: actions/[email protected]
with:
repository: ECP-copa/Cabana
ref: 0.6.0
path: Cabana
- name: Build Cabana
working-directory: Cabana
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$HOME/Cabana \
-DCMAKE_PREFIX_PATH="$HOME/kokkos" \
-DCabana_REQUIRE_${{ matrix.backend }}=ON
cmake --build build --parallel 2
cmake --install build
- name: Checkout code
uses: actions/[email protected]
- name: Build
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/haccabana -DCMAKE_PREFIX_PATH="$HOME/Cabana"
cmake --build build --parallel 2
cmake --install build
- name: Run
run: |
OMP_PROC_BIND=false $HOME/haccabana/bin/driver_short-range -s -t 0 -c 064.indat.params