-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
277 lines (257 loc) · 7.67 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
277 lines (257 loc) · 7.67 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
# This file is a template, and might need editing before it works on your project.
# This is a sample GitLab CI/CD configuration file that should run without any modifications.
# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts,
# it uses echo commands to simulate the pipeline execution.
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
#
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages
#
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
include:
- local: common-scripts.yml
stages:
- build-container # List of stages for jobs, and their order of execution
- build
- test
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- containers/
build-ubuntu20.4:
stage: build-container
cache:
key: "gcc-$CI_COMMIT_REF_SLUG"
paths:
- containers/
tags:
- shell
script:
- mkdir -p containers
- if [ ! -e "containers/20.4-gcc-9.sif" ] ; then apptainer build containers/20.4-gcc-9.sif apptainer_recipe/20.4-gcc-9.def ; fi
build-ubuntu20.4-intel-2023.2.0:
stage: build-container
cache:
key: "intel-$CI_COMMIT_REF_SLUG"
paths:
- containers/
tags:
- shell
script:
- mkdir -p containers
- if [ ! -e "containers/20.4-intel-2023.2.0.sif" ] ; then apptainer build containers/20.4-intel-2023.2.0.sif apptainer_recipe/20.4-intel-2023.2.0.def ; fi
build-ubuntu20.4-cuda-11-8-gcc-9:
stage: build-container
cache:
key: "gcc-cuda-$CI_COMMIT_REF_SLUG"
paths:
- containers/
tags:
- shell
script:
- mkdir -p containers
- if [ ! -e "containers/20.4-cuda-11-8-gcc-9.sif" ] ; then apptainer build containers/20.4-cuda-11-8-gcc-9.sif apptainer_recipe/20.4-cuda-11.8-gcc-9.def ; fi
build-ubuntu20.4-cuda-11-8-intel-2023.2.0:
stage: build-container
cache:
key: "intel-cuda-$CI_COMMIT_REF_SLUG"
paths:
- containers/
tags:
- shell
script:
- mkdir -p containers
- if [ ! -e "containers/20.4-cuda-11-8-intel-2023.2.0.sif" ] ; then apptainer build containers/20.4-cuda-11-8-intel-2023.2.0.sif apptainer_recipe/20.4-cuda-11.8-intel-2023.2.0.def ; fi
ubuntu-20.4-gcc-9-openblas: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "gcc-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4
variables:
IMAGE_NAME: ""
CONTAINER_NAME: "containers/20.4-gcc-9.sif"
APPTAINER_EXEC_ARGS: ""
tags:
- cpu
script:
- !reference [.cpu_prep, script]
- export CC=gcc CXX=g++
- meson setup _build --buildtype=debug -Dlapack=openblas
- !reference [.meson_compile, script]
- meson test
artifacts:
when: on_failure
paths:
- _build/meson-logs/*,txt
ubuntu-20.4-intel-2023.2.0-mkl: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "intel-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-intel-2023.2.0
variables:
IMAGE_NAME: ""
CONTAINER_NAME: "containers/20.4-intel-2023.2.0.sif"
APPTAINER_EXEC_ARGS: ""
tags:
- cpu
artifacts:
when: on_failure
paths:
- _build/meson-logs/*txt
script:
- !reference [.cpu_prep, script]
- export CC=icc CXX=icpc
- meson setup _build --buildtype=debug -Dlapack=mkl
- !reference [.meson_compile, script]
- meson test
- cat meson-logs/testlog.txt
ubuntu-20.4-intel-2023.2.0-openblas: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "intel-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-intel-2023.2.0
variables:
CONTAINER_NAME: "containers/20.4-intel-2023.2.0.sif"
APPTAINER_EXEC_ARGS: ""
tags:
- cpu
artifacts:
when: on_failure
paths:
- _build/meson-logs/*.txt
script:
- !reference [.cpu_prep, script]
- export CC=icc CXX=icpc
- meson setup _build --buildtype=debug -Dlapack=openblas
- !reference [.meson_compile, script]
- meson test
ubuntu-20.4-gcc-9-mkl: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "intel-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-intel-2023.2.0
variables:
CONTAINER_NAME: "containers/20.4-intel-2023.2.0.sif"
APPTAINER_EXEC_ARGS: ""
tags:
- cpu
script:
- !reference [.cpu_prep, script]
- export CC=gcc CXX=g++
- meson setup _build --buildtype=debug -Dlapack=mkl
- !reference [.meson_compile, script]
- meson test
- cat meson-logs/testlog.txt
artifacts:
when: on_failure
paths:
- meson-logs/testlog.txt
ubuntu-20.4-cu-11.8-gcc-9-openblas: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "gcc-cuda-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-cuda-11-8-gcc-9
variables:
CONTAINER_NAME: "containers/20.4-cuda-11-8-gcc-9.sif"
APPTAINER_EXEC_ARGS: "--nv"
tags:
- cpu
- gpu
script:
- !reference [.cpu_prep, script]
- !reference [.gpu_prep, script]
- export CC=gcc CXX=g++
- meson setup _build --buildtype=debug -Dlapack=openblas
- !reference [.meson_compile, script]
- meson test
artifacts:
when: on_failure
paths:
- meson-logs/testlog.txt
ubuntu-20.4-cu-11.8-intel-mkl: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "intel-cuda-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-cuda-11-8-intel-2023.2.0
variables:
CONTAINER_NAME: "containers/20.4-cuda-11-8-intel-2023.2.0.sif"
APPTAINER_EXEC_ARGS: "--nv"
tags:
- cpu
script:
- !reference [.cpu_prep, script]
- !reference [.gpu_prep, script]
- export CC=icc CXX=icpc
- meson setup _build --buildtype=debug -Dlapack=mkl
- !reference [.meson_compile, script]
- meson test
artifacts:
when: on_failure
paths:
- _build/meson-logs/*txt
ubuntu-20.4-cu-11.8-gcc-9-openblas-cmake: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "gcc-cuda-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-cuda-11-8-gcc-9
variables:
CONTAINER_NAME: "containers/20.4-cuda-11-8-gcc-9.sif"
APPTAINER_EXEC_ARGS: "--nv"
tags:
- cpu
- gpu
script:
- !reference [.cpu_prep, script]
- !reference [.gpu_prep, script]
- export CC=gcc CXX=g++
- cmake -B _build -DLAPACK_VENDOR=auto -DGPU=ON
- !reference [.cmake_compile, script]
- ctest
ubuntu-20.4-cu-11.8-intel-mkl-cmake: # This job runs in the build stage, which runs first.
stage: build
cache:
key: "intel-cuda-$CI_COMMIT_REF_SLUG"
paths:
- containers/
dependencies:
- build-ubuntu20.4-cuda-11-8-intel-2023.2.0
variables:
CONTAINER_NAME: "containers/20.4-cuda-11-8-intel-2023.2.0.sif"
APPTAINER_EXEC_ARGS: "--nv"
tags:
- cpu
script:
- !reference [.cpu_prep, script]
- !reference [.gpu_prep, script]
- export CC=icc CXX=icpc
- cmake -B _build -DLAPACK_VENDOR=auto -DGPU=ON
- !reference [.cmake_compile, script]
- ctest