forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (43 loc) · 1.4 KB
/
weekly-cea.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
name: Weekly CEA builds
on:
schedule:
- cron: "0 2 * * 6" # every Saturday at 2am UTC
workflow_dispatch:
jobs:
build_and_test:
env:
build_jobs: 20
strategy:
matrix:
build_type:
- Release
- Debug
backend:
- name: cuda-a100
flags: -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON
modules: gcc/11.2.0/gcc-4.8.5 cuda/12.2.1/gcc-11.2.0 cmake/3.28.3/gcc-11.2.0
slurm_args: --nodes=1 --time=01:00:00 --mem=80G -p gpua100 --gres=gpu:1
runner: [self-hosted, cuda]
runs-on: ${{ matrix.backend.runner }}
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
module load ${{ matrix.backend.modules }}
cmake -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=-Werror \
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \
-DKokkos_ENABLE_TESTS=ON \
-DKokkos_ENABLE_EXAMPLES=ON \
${{ matrix.backend.flags }}
- name: Build
run: |
module load ${{ matrix.backend.modules }}
cmake --build build --parallel $build_jobs
- name: Test
run: |
module load ${{ matrix.backend.modules }}
srun ${{ matrix.backend.slurm_args }} \
ctest --test-dir build --output-on-failure