-
-
Notifications
You must be signed in to change notification settings - Fork 6
197 lines (191 loc) · 6.17 KB
/
ccpp.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
name: FEniCS Performance Test CI
on:
push:
branches:
- "**"
pull_request:
branches:
- main
merge_group:
branches:
- main
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 3 * * 0,3"
jobs:
build:
runs-on: ubuntu-latest
container: fenicsproject/test-env:current-openmpi
env:
PETSC_ARCH: linux-gnu-real64-64
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
steps:
- uses: actions/checkout@v4
- name: Get DOLFINx
uses: actions/checkout@v4
with:
path: ./dolfinx
repository: FEniCS/dolfinx
ref: v0.9.0
- name: Install FEniCS Python components
run: |
apt-get -qq update
apt-get -y install libboost-program-options-dev
pip3 install --break-system-packages pip --upgrade
pip3 install --break-system-packages git+https://github.com/FEniCS/ufl.git@2024.2.0
pip3 install --break-system-packages git+https://github.com/FEniCS/basix.git@v0.9.0
pip3 install --break-system-packages git+https://github.com/FEniCS/ffcx@v0.9.0
- name: Build dolfinx cpp
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build -S dolfinx/cpp/
cmake --build build
cmake --install build
- name: Build performance test
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build-dir -S src
cmake --build build-dir
cmake --install build-dir
- name: Run Poisson test (BoomerAMG, serial)
run: |
dolfinx-scaling-test \
--problem_type poisson \
--scaling_type weak \
--ndofs 50000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type hypre \
-pc_hypre_type boomeramg \
-pc_hypre_boomeramg_strong_threshold 0.7 \
-pc_hypre_boomeramg_agg_nl 4 \
-pc_hypre_boomeramg_agg_num_paths 2
- name: Run Poisson test (BoomerAMG, weak)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type poisson \
--scaling_type weak \
--ndofs 50000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type hypre \
-pc_hypre_type boomeramg \
-pc_hypre_boomeramg_strong_threshold 0.7 \
-pc_hypre_boomeramg_agg_nl 4 \
-pc_hypre_boomeramg_agg_num_paths 2
- name: Run Poisson test (BoomerAMG, 3rd order, weak)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type poisson \
--scaling_type weak \
--ndofs 50000 \
--order 3 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type hypre \
-pc_hypre_type boomeramg \
-pc_hypre_boomeramg_strong_threshold 0.7 \
-pc_hypre_boomeramg_agg_nl 4 \
-pc_hypre_boomeramg_agg_num_paths 2
- name: Run Poisson test (BoomerAMG, weak, unstructured mesh)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type poisson \
--mesh_type unstructured \
--scaling_type weak \
--ndofs 50000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type hypre \
-pc_hypre_type boomeramg \
-pc_hypre_boomeramg_strong_threshold 0.7 \
-pc_hypre_boomeramg_agg_nl 4 \
-pc_hypre_boomeramg_agg_num_paths 2
- name: Run Poisson test (BoomerAMG, strong)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type poisson \
--scaling_type strong \
--ndofs 1000000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type hypre \
-pc_hypre_type boomeramg \
-pc_hypre_boomeramg_strong_threshold 0.7 \
-pc_hypre_boomeramg_agg_nl 4 \
-pc_hypre_boomeramg_agg_num_paths 2
- name: Run elasticity test (GAMG, serial)
run: |
dolfinx-scaling-test \
--problem_type elasticity \
--scaling_type weak \
--ndofs 100000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type gamg \
-pc_gamg_coarse_eq_limit 1000 \
-mg_levels_ksp_type chebyshev \
-mg_levels_pc_type jacobi \
-mg_levels_esteig_ksp_type cg \
-matptap_via scalable
- name: Run elasticity test (GAMG, weak)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type elasticity \
--scaling_type weak \
--ndofs 100000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type gamg \
-pc_gamg_coarse_eq_limit 1000 \
-mg_levels_ksp_type chebyshev \
-mg_levels_pc_type jacobi \
-mg_levels_esteig_ksp_type cg \
-matptap_via scalable
- name: Run elasticity test (GAMG, 3rd order, weak)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type elasticity \
--scaling_type weak \
--ndofs 100000 \
--order 3 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type gamg \
-pc_gamg_coarse_eq_limit 1000 \
-mg_levels_ksp_type chebyshev \
-mg_levels_pc_type jacobi \
-mg_levels_esteig_ksp_type cg \
-matptap_via scalable
- name: Run elasticity test (GAMG, strong)
run: |
mpirun -np 2 dolfinx-scaling-test \
--problem_type elasticity \
--scaling_type strong \
--ndofs 500000 \
-log_view \
-ksp_view \
-ksp_type cg \
-ksp_rtol 1.0e-8 \
-pc_type gamg \
-pc_gamg_coarse_eq_limit 1000 \
-mg_levels_ksp_type chebyshev \
-mg_levels_pc_type jacobi \
-mg_levels_esteig_ksp_type cg \
-matptap_via scalable