-
Notifications
You must be signed in to change notification settings - Fork 77
449 lines (346 loc) · 14 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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
name: CI
on:
# allows us to run workflows manually
workflow_dispatch:
push:
branches:
- master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
NEKRS_HOME: "${{ github.workspace }}/.local/nekrs"
MPICH_FC: "gfortran"
NEKRS_EXAMPLES: "${{ github.workspace }}/.local/nekrs/examples"
NEKRS_COMPILER_FLAGS: "-O2"
NRSCONFIG_NOBUILD: "1"
RUNNER_ARCH: "X64"
defaults:
run:
shell: bash
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: config and build
run: |
CC=mpicc CXX=mpic++ FC=mpif77 ./build.sh -DENABLE_CVODE=OFF -DNEKRS_CXX_FLAGS=${{ env.NEKRS_COMPILER_FLAGS }} -DNEKRS_C_FLAGS=${{ env.NEKRS_COMPILER_FLAGS }} -DNEKRS_Fortran_FLAGS=${{ env.NEKRS_COMPILER_FLAGS }} -DCMAKE_INSTALL_PREFIX=${{ env.NEKRS_HOME }} -DOCCA_CXXFLAGS=${{ env.NEKRS_COMPILER_FLAGS }}
cmake --build build --target install -j 4
- name: Upload install dir
uses: actions/upload-artifact@v4
with:
name: install-dir
retention-days: 2
path: ${{ env.NEKRS_HOME }}
if-no-files-found: error
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# timeout-minutes: 3
# if: ${{ github.event_name == 'workflow_dispatch' }}
ethier:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'ethier build-only'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: |
NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --build-only
- name: 'ethier default'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: |
NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 1
- name: 'ethier subcycle'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 2
- name: 'ethier velocity and pressure using SEMFEM with projection'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 3
- name: 'ethier (block) velocity and pressure and projection with subcycling'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 4
- name: 'ethier default + moving mesh'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_ethier 2 --cimode 5
- name: 'ethier subcycle + moving mesh + subcycling'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_ethier 2 --cimode 6
- name: 'ethier gmres + jacobi'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 7
- name: 'ethier variable dt'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 8
- name: 'ethier no dealiasing and subcycling'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 9
- name: 'ethier no dealiasing'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 10
- name: 'ethier Chebyshev+Jacobi'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 11
- name: 'ethier skip solving temperature'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 12
- name: 'ethier solve single scalar only'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethierScalar 2 --cimode 13
- name: 'ethier additive V-cycle'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 2 --cimode 14
- name: 'ethier linAlg + point interp + surface integral'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: |
NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 15
# - name: 'ethier cvode, both scalars'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
# run: |
# NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 16
# - name: 'ethier mixed elliptic/cvode'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
# run: |
# NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 17
# - name: 'ethier cvode, both scalars, no dealiasing, hpfrt'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
# run: |
# NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 18
- name: 'ethier sub-stepping'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: |
NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 19
- name: 'ethier FP32 cimode 2'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ethier
run: |
FP32=1 NEKRS_CACHE_DIR=${{ env.NEKRS_EXAMPLES }}/ethier/custom-cache-dir ${{ env.NEKRS_HOME }}/bin/nrsmpi ethier 1 --cimode 22
lowMach:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'lowMach default single rank'
working-directory: ${{ env.NEKRS_EXAMPLES }}/lowMach
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi lowMach 1 --cimode 1
# - name: 'lowMach + CVODE'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/lowMach
# run: ${{ env.NEKRS_HOME }}/bin/nrsmpi lowMach 2 --cimode 3
mv_cyl:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'mv_cyl'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 1
- name: 'mv_cyl + subcycling'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 2
- name: 'mv_cyl + subcycling + elasticity solve + projection'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 3
- name: 'mv_cyl + unaligned SYM'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 5
- name: 'mv_cyl + unaligned SYM + mesh solver'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 6
# - name: 'mv_cyl + CVODE'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
# run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 7
# - name: 'mv_cyl + CVODE + unaligned SYM + mesh solver'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
# run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl 2 --cimode 8
- name: 'mv_cyl, derived bc'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl_derived_bc 2 --cimode 1
- name: 'mv_cyl + subcycling, derived bc'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl_derived_bc 2 --cimode 2
- name: 'mv_cyl + subcycling + elasticity solve, derived bc'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl_derived_bc 2 --cimode 3
- name: 'mv_cyl + unaligned SYM, derived bc'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl_derived_bc 2 --cimode 5
- name: 'mv_cyl + unaligned SYM + mesh solver, derived bc'
working-directory: ${{ env.NEKRS_EXAMPLES }}/mv_cyl
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi mv_cyl_derived_bc 2 --cimode 6
conj_ht:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'conj_ht'
working-directory: ${{ env.NEKRS_EXAMPLES }}/conj_ht
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi conj_ht 2 --cimode 1
- name: 'conj_ht + subcycling'
working-directory: ${{ env.NEKRS_EXAMPLES }}/conj_ht
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi conj_ht 2 --cimode 2
# - name: 'conj_ht + CVODE'
# working-directory: ${{ env.NEKRS_EXAMPLES }}/conj_ht
# run: ${{ env.NEKRS_HOME }}/bin/nrsmpi conj_ht 2 --cimode 3
channelStress:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'channelStress (no rotation)'
working-directory: ${{ env.NEKRS_EXAMPLES }}/channel
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi channel 2 --cimode 1
- name: 'channelStress (45 degree rotation)'
working-directory: ${{ env.NEKRS_EXAMPLES }}/channel
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi channel 2 --cimode 2
tractionBoundary:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'traction channel (no rotation)'
working-directory: ${{ env.NEKRS_EXAMPLES }}/shlChannel
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi channel 2 --cimode 1
- name: 'traction channel (45 degree rotation)'
working-directory: ${{ env.NEKRS_EXAMPLES }}/shlChannel
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi channel 2 --cimode 2
eddyNekNek:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'eddyNekNek'
working-directory: ${{ env.NEKRS_EXAMPLES }}/eddyNekNek
run: |
${{ env.NEKRS_HOME }}/bin/nrsmpi eddyNekNek.sess 2 --cimode 1
cat inside/logfile
cat outside/logfile
- name: 'eddyNekNekMv'
working-directory: ${{ env.NEKRS_EXAMPLES }}/eddyNekNek
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi eddyNekNekMv.sess 2 --cimode 2
- name: 'eddyNekNek, velocity:solver = none'
working-directory: ${{ env.NEKRS_EXAMPLES }}/eddyNekNek
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi eddyNekNek.sess 2 --cimode 3
- name: 'eddyNekNekNek'
working-directory: ${{ env.NEKRS_EXAMPLES }}/eddyNekNek
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi eddyNekNekNek.sess 3 --cimode 1
- name: 'eddyNekNekNekMv'
working-directory: ${{ env.NEKRS_EXAMPLES }}/eddyNekNek
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi eddyNekNekNekMv.sess 3 --cimode 2
- name: 'eddyNekNek, multirate timestepping'
working-directory: ${{ env.NEKRS_EXAMPLES }}/eddyNekNek
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi eddyNekNek.sess 2 --cimode 4
ktauChannel:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: APT dependencies
run: |
sudo apt -y update
sudo apt install -y mpich libmpich-dev
- name: Download install dir
uses: actions/download-artifact@v4
with:
name: install-dir
path: ${{ env.NEKRS_HOME }}
- name: Set install dir permissions
run: chmod -R 755 ${{ env.NEKRS_HOME }}
- name: 'ktauChannel'
working-directory: ${{ env.NEKRS_EXAMPLES }}/ktauChannel
run: ${{ env.NEKRS_HOME }}/bin/nrsmpi channel 2 --cimode 1