-
Notifications
You must be signed in to change notification settings - Fork 16
221 lines (188 loc) · 8.13 KB
/
test_libmpdataxx.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
name: Test libmpdata++
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
# run unit tests
unit:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Debug", "Release"]
mpi: ["none", "mvapich2"]
include:
- mpi: "none"
tag: "ubuntu_20_04_cuda_11_4"
cxx: "g++"
ctest_options: ""
- mpi: "mvapich2"
tag: "ubuntu_20_04_cuda_11_4_mvapich2_v1"
cxx: "mpic++"
ctest_options: "-LE SlowWithMpi" # exclude tests with the label SlowWithMpi
steps:
- uses: actions/checkout@v2
- name: Install libmpdata++
uses: igfuw/[email protected]
with:
build_type: ${{matrix.build_type}}
threads: ${{matrix.threads}}
path: ${{ github.workspace }}/libmpdata++
install_prefix: ${{ github.workspace }}/installed
tag: ${{ matrix.tag }}
cxx: ${{ matrix.cxx }}
- run: mkdir ${{ github.workspace }}/tests/unit/build
- name: configure,make and run unit tests #all in one call, because singularity always creates a sandbox, what takes ca. 1 min. TODO: fix this (newer singularity from apt?)
working-directory: ${{ github.workspace }}/tests/unit
run: VERBOSE=1 OMP_NUM_THREADS=4 singularity exec $SI bash -c "cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}} && cmake --build build --config ${{matrix.build_type}} -j4 && cd build && ctest ${{matrix.ctest_options}} || cat Testing/Temporary/LastTest.log /"
sandbox:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Release"] # Debug would be too slow
mpi: ["none", "mvapich2"]
include:
- mpi: "none"
tag: "ubuntu_20_04_cuda_11_4"
cxx: "g++"
ctest_options: ""
- mpi: "mvapich2"
tag: "ubuntu_20_04_cuda_11_4_mvapich2_v1"
cxx: "mpic++"
ctest_options: "-LE SlowWithMpi"
steps:
- uses: actions/checkout@v2
- name: Install libmpdata++
uses: igfuw/[email protected]
with:
build_type: ${{matrix.build_type}}
threads: ${{matrix.threads}}
path: ${{ github.workspace }}/libmpdata++
install_prefix: ${{ github.workspace }}/installed
tag: ${{ matrix.tag }}
cxx: ${{ matrix.cxx }}
- run: mkdir ${{ github.workspace }}/tests/sandbox/build
# Debugging with a ssh session
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: configure,make and run selected sandbox tests
working-directory: ${{ github.workspace }}/tests/sandbox
run: VERBOSE=1 OMP_NUM_THREADS=4 singularity exec $SI bash -c "cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}} && cmake --build build --config ${{matrix.build_type}} -j4 && cd build && ctest ${{matrix.ctest_options}} || cat Testing/Temporary/LastTest.log /"
sandbox_slow_tests:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Release"] # Debug would be too slow
mpi: ["mvapich2"]
tests: ["pbl_smg_short", "pbl_iles_short", "shear_layer", "convergence_adv_diffusion"]
include:
- mpi: "mvapich2"
tag: "ubuntu_20_04_cuda_11_4_mvapich2_v1"
cxx: "mpic++"
steps:
- uses: actions/checkout@v2
- name: Install libmpdata++
uses: igfuw/[email protected]
with:
build_type: ${{matrix.build_type}}
threads: ${{matrix.threads}}
path: ${{ github.workspace }}/libmpdata++
install_prefix: ${{ github.workspace }}/installed
tag: ${{ matrix.tag }}
cxx: ${{ matrix.cxx }}
- run: mkdir ${{ github.workspace }}/tests/sandbox/build
- name: configure,make and run selected sandbox tests
working-directory: ${{ github.workspace }}/tests/sandbox
run: VERBOSE=1 OMP_NUM_THREADS=4 singularity exec $SI bash -c "cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}} && cmake --build build --config ${{matrix.build_type}} -j4 && cd build && ctest -R ${{matrix.tests}} || cat Testing/Temporary/LastTest.log /"
# run tests from the 2015 GMD paper
paper:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Release"]
mpi: ["none", "mvapich2"]
include:
- mpi: "none"
tag: "ubuntu_20_04_cuda_11_4"
cxx: "g++"
- mpi: "mvapich2"
tag: "ubuntu_20_04_cuda_11_4_mvapich2_v1"
cxx: "mpic++"
ctest_options: "-LE SlowWithMpi" # exclude tests with the label SlowWithMpi
steps:
- uses: actions/checkout@v2
- name: Install libmpdata++
uses: igfuw/[email protected]
with:
build_type: ${{matrix.build_type}}
threads: ${{matrix.threads}}
path: ${{ github.workspace }}/libmpdata++
install_prefix: ${{ github.workspace }}/installed
tag: ${{ matrix.tag }}
cxx: ${{ matrix.cxx }}
- run: mkdir ${{ github.workspace }}/tests/paper_2015_GMD/build
- name: configure,make and run selected sandbox tests
working-directory: ${{ github.workspace }}/tests/paper_2015_GMD
run: VERBOSE=1 OMP_NUM_THREADS=4 singularity exec $SI bash -c "cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}} && cmake --build build --config ${{matrix.build_type}} -j4 && cd build && ctest ${{matrix.ctest_options}} || cat Testing/Temporary/LastTest.log /"
nair_jablonowski_2008:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Release"]
mpi: ["none"]
include:
- mpi: "none"
tag: "ubuntu_20_04_cuda_11_4"
cxx: "g++"
steps:
- uses: actions/checkout@v2
- name: Install libmpdata++
uses: igfuw/[email protected]
with:
build_type: ${{matrix.build_type}}
threads: ${{matrix.threads}}
path: ${{ github.workspace }}/libmpdata++
install_prefix: ${{ github.workspace }}/installed
tag: ${{ matrix.tag }}
cxx: ${{ matrix.cxx }}
- run: mkdir ${{ github.workspace }}/tests/nair_jablonowski_2008/build
- name: configure,make and run selected sandbox tests
working-directory: ${{ github.workspace }}/tests/nair_jablonowski_2008
run: VERBOSE=1 OMP_NUM_THREADS=4 singularity exec $SI bash -c "cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}} && cmake --build build --config ${{matrix.build_type}} -j4 && cd build && ctest || cat Testing/Temporary/LastTest.log /"
elliptic_drop:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Release"]
mpi: ["none"]
include:
- mpi: "none"
tag: "ubuntu_20_04_cuda_11_4"
cxx: "g++"
steps:
- uses: actions/checkout@v2
- name: Install libmpdata++
uses: igfuw/[email protected]
with:
build_type: ${{matrix.build_type}}
threads: ${{matrix.threads}}
path: ${{ github.workspace }}/libmpdata++
install_prefix: ${{ github.workspace }}/installed
tag: ${{ matrix.tag }}
cxx: ${{ matrix.cxx }}
- name: checkout elliptic_drop
uses: actions/checkout@v2
with:
repository: igfuw/shallow-water-elliptic-drop
path: shallow-water-elliptic-drop
- run: mkdir ${{ github.workspace }}/shallow-water-elliptic-drop/numerical/build
- name: configure,make and run tests
working-directory: ${{ github.workspace }}/shallow-water-elliptic-drop/numerical
run: VERBOSE=1 OMP_NUM_THREADS=4 singularity exec -B ${{ github.workspace }}/installed/ $SI bash -c "cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}} -Dlibmpdata++_DIR=${{ github.workspace }}/installed/share/libmpdata++ && cmake --build build --config ${{matrix.build_type}} -j4 && cd build && ctest || cat Testing/Temporary/LastTest.log /"
call_test_uwlcm_hlpr:
uses: igfuw/UWLCM/.github/workflows/test_uwlcm_hlpr.yml@master
with:
UWLCM_sha: "master"
libcloudphxx_sha: "master"
libmpdataxx_sha: ${{ github.sha }} # merge PR SHA