-
Notifications
You must be signed in to change notification settings - Fork 3
278 lines (236 loc) · 11.3 KB
/
Copy pathCI_parallel_MU.yml
File metadata and controls
278 lines (236 loc) · 11.3 KB
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
# This is a basic workflow to help you get started with Actions
name: CI PARALLEL (MPI) MU
########################################################################
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
# Comment lines 10-13 to deactivate automatic running until Metis webpage is online again.
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Define strategy matrix
strategy:
fail-fast: false
matrix:
compiler: ['gfortran']
mode: ['RELEASE']
comm: ['PARALLEL']
enable_threads: ['NO']
name: MU - ${{ matrix.compiler }} - ${{ matrix.mode }} - ${{ matrix.comm }} - ${{ matrix.enable_threads }}
env:
METIS_HOME: /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2024.1
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# IF COMPILER = GFORTRAN -> INSTALL OPEN-MPI #
- name: install openmpi
if: (matrix.compiler == 'gfortran')
run: |
sudo apt-get install openmpi-bin libopenmpi-dev
# IF COMPILER = IFORT -> INSTALL IFORT #
# UNCOMMENT TO USE CACHED IFORT
#- name: cache-intel-compilers
# if: (matrix.compiler == 'ifort')
# id: cache-intel-compilers
# uses: actions/cache@v3
# with:
# path: /opt/intel
# key: intel-${{ runner.os }}-compilers-b
- name: Intel Apt repository
# UNCOMMENT TO USE CACHED IFORT
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update
- name: Install Intel oneAPI
# UNCOMMENT TO USE CACHED IFORT
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-mkl-devel ninja-build
# - name: cache-metis
# id: cache-metis
# uses: actions/cache@v2
# with:
# path: /home/runner/metis-5.1.0
# key: metis-${{ runner.os }}-b
- name: Install METIS (intel)
# if: (steps.cache-metis.outputs.cache-hit != 'true')
# wget "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz" (OLD LINK TO METIS)
if: (matrix.compiler == 'ifort')
run: |
source /opt/intel/oneapi/setvars.sh || true
wget "https://src.fedoraproject.org/lookaside/pkgs/metis/metis-5.1.0.tar.gz/5465e67079419a69e0116de24fce58fe/metis-5.1.0.tar.gz"
tar -xvf metis-5.1.0.tar.gz
cd metis-5.1.0
make config cc=icx
make
mv /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/libmetis /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/lib
mv /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/programs /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/bin
# export METIS_HOME=~/metis-5.1.0/build/Linux-x86_64
# echo $METIS_HOME
- name: Install METIS (gnu)
# if: (steps.cache-metis.outputs.cache-hit != 'true')
# wget "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz" (OLD LINK TO METIS)
if: (matrix.compiler == 'gfortran')
run: |
wget "https://src.fedoraproject.org/lookaside/pkgs/metis/metis-5.1.0.tar.gz/5465e67079419a69e0116de24fce58fe/metis-5.1.0.tar.gz"
tar -xvf metis-5.1.0.tar.gz
cd metis-5.1.0
make config cc=gcc
make
mv /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/libmetis /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/lib
mv /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/programs /home/runner/work/horses3d-gpu/horses3d-gpu/metis-5.1.0/build/Linux-x86_64/bin
- name: Check METIS PATH
run: echo $METIS_HOME
# Runs a single command using the runners shell
##- name: Install gfortran
## run: |
## sudo add-apt-repository ppa:ubuntu-toolchain-r/test
## sudo apt update
## sudo apt-get install gfortran-9
##- name: Show gfortran version
## run: gfortran-9 --version
- name: Show ${{matrix.compiler}} version
run: |
source /opt/intel/oneapi/setvars.sh || true
${{matrix.compiler}} --version
- name: Configure
working-directory: ./Solver
run: ./configure
- name: Compile horses3d
working-directory: ./Solver
run: |
source /opt/intel/oneapi/setvars.sh || true
make allclean MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
make mu MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# ########################################################################
# ####### MULTIPHASE ########
# ########################################################################
# #
# # 1) Convergence
# # ----------------------------
# - name: Build MultiphaseConvergence
# working-directory: ./Solver/test/Multiphase/Convergence/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# - name: Run MultiphaseConvergence
# working-directory: ./Solver/test/Multiphase/Convergence
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu Convergence.control
# #
# # 2) RisingBubble
# # ----------------------------
# - name: Build MultiphaseRisingBubble
# working-directory: ./Solver/test/Multiphase/RisingBubble/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# - name: Run MultiphaseRisingBubble
# working-directory: ./Solver/test/Multiphase/RisingBubble
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu RisingBubble.control
# #
# # 3) Pipe
# # ----------------------------
# - name: Build MultiphasePipe
# working-directory: ./Solver/test/Multiphase/Pipe/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# - name: Run MultiphasePipe
# working-directory: ./Solver/test/Multiphase/Pipe
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu AnnularFlow.control
# #
# # 4) Entropy conserving test
# # ----------------------------
# - name: Build MultiphaseEntropyConservingTest
# working-directory: ./Solver/test/Multiphase/EntropyConservingTest/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# - name: Run MultiphaseEntropyConservingTest
# working-directory: ./Solver/test/Multiphase/EntropyConservingTest
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu EntropyConservingTest.control
#
# 5) Multiphase monopole with acoustics, sponge and Reinforcement Learning p-adaptation
# --------------------------------------------
# GPU
# - name: Build Multiphase_Monopole_pAdaptationRL
# working-directory: ./Solver/test/Multiphase/Monopole_pAdaptationRL/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make mu MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# if: '!cancelled()'
# - name: Run Multiphase_Monopole_pAdaptationRL
# working-directory: ./Solver/test/Multiphase/Monopole_pAdaptationRL
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu monopole_pAdaptationRL.control
# if: '!cancelled()'
#
# 6) Mu AL
# -------------------------------
# GPU
# - name: Build Mu-AL
# working-directory: ./Solver/test/Multiphase/ActuatorLineInterpolation/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make mu MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# if: '!cancelled()'
# - name: Run Mu-AL
# working-directory: ./Solver/test/Multiphase/ActuatorLineInterpolation
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu Actuator.control
# if: '!cancelled()'
#
# 7) Snell
# ----------------------------
# GPU
# - name: Build MultiphaseSnell
# working-directory: ./Solver/test/Multiphase/Snell/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make mu MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# if: '!cancelled()'
# - name: Run MultiphaseSnell
# working-directory: ./Solver/test/Multiphase/Snell
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu snell.control
# if: '!cancelled()'
#
# 8) Mixed RK
# ----------------------------
# GPU
# - name: Build MultiphaseMixedRK
# working-directory: ./Solver/test/Multiphase/MixedRK/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make mu MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_METIS=YES
# if: '!cancelled()'
# - name: Run MultiphaseMixedRK
# working-directory: ./Solver/test/Multiphase/MixedRK
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# mpiexec -n 64 ./horses3d.mu mixedRK.control
# if: '!cancelled()'