-
Notifications
You must be signed in to change notification settings - Fork 21
104 lines (99 loc) · 3.04 KB
/
cmake-configure.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: CMake-config
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
clang:
runs-on: ubuntu-latest
container: ghcr.io/gridtools/gridtools-base:clang-${{ matrix.version }}
strategy:
matrix:
version: [12, 16, 17, 18]
cuda-mode: [AUTO, Clang-CUDA, NVCC-CUDA]
steps:
- uses: actions/checkout@v2
- name: CMake version
run: |
cmake --version
- name: CMake configure expect success
if: contains(matrix.cuda-mode, 'AUTO')
run: >
mkdir build && cd build
&& cmake .. -DGT_CLANG_CUDA_MODE=${{ matrix.cuda-mode }} > out.log
&& cat out.log
&& grep "GPU mode: NOTFOUND" out.log > /dev/null
- name: CMake configure expect failure
if: (!contains(matrix.cuda-mode, 'AUTO'))
run: |
mkdir build && cd build
if cmake .. -DGT_CLANG_CUDA_MODE=${{ matrix.cuda-mode }}; then
false
else
true
fi
clang-cuda:
runs-on: ubuntu-latest
container: ghcr.io/gridtools/gridtools-base:clang-${{ matrix.clang_version }}-cuda-${{ matrix.cuda_version }}
strategy:
matrix:
clang_version: [17]
cuda_version: [12.5]
cuda-mode: [AUTO, Clang-CUDA, NVCC-CUDA]
steps:
- uses: actions/checkout@v2
- name: CMake version
run: |
cmake --version
- name: CMake configure expect success
run: >
mkdir build && cd build
&& cmake .. -DGT_CLANG_CUDA_MODE=${{ matrix.cuda-mode }} > out.log
&& cat out.log
&& export expected_mode=${{ matrix.cuda-mode }}
&& if [ "$expected_mode" = "AUTO" ]; then export expected_mode="Clang-CUDA"; fi
&& grep "GPU mode: $expected_mode" out.log > /dev/null
gcc:
runs-on: ubuntu-latest
container: ghcr.io/gridtools/gridtools-base:gcc-${{ matrix.version }}
strategy:
matrix:
version: [8, 11, 12, 13]
steps:
- uses: actions/checkout@v2
- name: CMake version
run: |
cmake --version
- name: CMake configure expect success
if: contains(matrix.cuda-mode, 'AUTO')
run: >
mkdir build && cd build
&& cmake .. > out.log
&& cat out.log
&& grep "GPU mode: NOTFOUND" out.log > /dev/null
gcc-nvcc:
runs-on: ubuntu-latest
container: ghcr.io/gridtools/gridtools-base:gcc-${{ matrix.gcc_version }}-cuda-${{ matrix.cuda_version }}
strategy:
matrix:
gcc_version: [10, 11, 12]
cuda_version: [11.8, "12.0", 12.2]
exclude:
- gcc_version: 12
cuda_version: 11.8
- gcc_version: 11
cuda_version: 11.8
- gcc_version: 11
cuda_version: 12.2
steps:
- uses: actions/checkout@v2
- name: CMake version
run: |
cmake --version
- name: CMake configure expect success
run: >
mkdir build && cd build
&& cmake .. > out.log
&& cat out.log
&& grep "GPU mode: NVCC-CUDA" out.log > /dev/null