-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
executable file
·433 lines (386 loc) · 8.33 KB
/
.gitlab-ci.yml
File metadata and controls
executable file
·433 lines (386 loc) · 8.33 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
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
stages:
- prepare
- check
- build
- test
variables:
SCHEDULER_PARAMETERS: "-A hpc-prf-cifi -p normal -t 00:30:00 -n 2 -N 1"
default:
tags:
- slurm
before_script:
- source env.sh
# Set PATH directly instead of using activate (venvs aren't portable across different workspace paths)
- export PATH="$PWD/.venv/bin:$PATH"
id_tokens:
CI_JOB_JWT:
aud: https://git.uni-paderborn.de
###
#
# Prepare Python virtual environment
#
###
prepare:venv:
stage: prepare
tags:
- shell
before_script:
- source env.sh
script:
- python -m venv .venv
- source .venv/bin/activate
- python -m pip install --upgrade pip
- python -m pip install -r scripts/code_generator/requirements.txt
- python -m pip install -r scripts/evaluation/requirements.txt
artifacts:
paths:
- .venv/
expire_in: 1 day
###
#
# Build documentation
#
###
build:docs:
stage: build
tags:
- shell
before_script: []
script:
- source env.sh
- cd docs
- python -m venv .venv
- source .venv/bin/activate
- python -m pip install --upgrade pip
- python -m pip install -r requirements.txt
- make html
- module load devel/Doxygen/1.11.0-GCCcore-13.3.0
- doxygen doxy.config
only:
changes:
- docs/**/*
- .gitlab-ci.yml
artifacts:
paths:
- docs/build
- docs/xml
###
#
# Check formatting of all benchmarks
#
###
.check: &check
stage: check
tags:
- shell
before_script: []
script:
- module load compiler/Clang/13.0.1-GCCcore-11.2.0
- find $BENCHMARK_FOLDER -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\)' -exec clang-format -style=file -i {} \;
- git diff | cat
## do not test for real yet
#- test -z "$(git status --porcelain)"
only:
changes:
- $BENCHMARK_FOLDER/**/*
- shared/**/*
- scripts/**/*
- cmake/**/*
- .gitlab-ci.yml
check:STREAM:
<<: *check
variables:
BENCHMARK_FOLDER: STREAM
check:RandomAccess:
<<: *check
variables:
BENCHMARK_FOLDER: RandomAccess
check:PTRANS:
<<: *check
variables:
BENCHMARK_FOLDER: PTRANS
check:LINPACK:
<<: *check
variables:
BENCHMARK_FOLDER: LINPACK
check:GEMM:
<<: *check
variables:
BENCHMARK_FOLDER: GEMM
check:FFT:
<<: *check
variables:
BENCHMARK_FOLDER: FFT
check:b_eff:
<<: *check
variables:
BENCHMARK_FOLDER: b_eff
###
#
# Build all benchmarks
#
###
.build: &build
stage: build
script:
- rm -rf build
- mkdir -p build
- cd build
- cmake ../$BENCHMARK_FOLDER -DDEFAULT_PLATFORM=0 -DDEFAULT_DEVICE=0 $BENCHMARK_OPTIONS
- make -j 40 all
artifacts:
paths:
- build/
expire_in: 1 day
only:
changes:
- $BENCHMARK_FOLDER/**/*
- shared/**/*
- scripts/**/*
- cmake/**/*
- .gitlab-ci.yml
build:STREAM:
<<: *build
variables:
BENCHMARK_FOLDER: STREAM
dependencies:
- prepare:venv
- check:STREAM
needs: ["prepare:venv", "check:STREAM"]
build:STREAM_HP:
<<: *build
variables:
BENCHMARK_FOLDER: STREAM
BENCHMARK_OPTIONS: -DDATA_TYPE=half -DVECTOR_COUNT=1 -DGLOBAL_MEM_UNROLL=32
dependencies:
- prepare:venv
- check:STREAM
needs: ["prepare:venv", "check:STREAM"]
build:STREAM_DP:
<<: *build
variables:
BENCHMARK_FOLDER: STREAM
BENCHMARK_OPTIONS: -DDATA_TYPE=double -DVECTOR_COUNT=1 -DGLOBAL_MEM_UNROLL=8
dependencies:
- prepare:venv
- check:STREAM
needs: ["prepare:venv", "check:STREAM"]
build:RandomAccess:
<<: *build
variables:
BENCHMARK_FOLDER: RandomAccess
dependencies:
- prepare:venv
- check:RandomAccess
needs: ["prepare:venv", "check:RandomAccess"]
build:PTRANS:
<<: *build
variables:
BENCHMARK_FOLDER: PTRANS
BENCHMARK_OPTIONS: -DHOST_EMULATION_REORDER=Yes
dependencies:
- prepare:venv
- check:PTRANS
needs: ["prepare:venv", "check:PTRANS"]
build:LINPACK:
<<: *build
variables:
BENCHMARK_FOLDER: LINPACK
BENCHMARK_OPTIONS: -DLOCAL_MEM_BLOCK_LOG=4 -DREGISTER_BLOCK_LOG=3 -DNUM_REPLICATIONS=3
dependencies:
- prepare:venv
- check:LINPACK
needs: ["prepare:venv", "check:LINPACK"]
build:LINPACK_DP:
<<: *build
variables:
BENCHMARK_FOLDER: LINPACK
BENCHMARK_OPTIONS: -DLOCAL_MEM_BLOCK_LOG=4 -DREGISTER_BLOCK_LOG=3 -DNUM_REPLICATIONS=3 -DDATA_TYPE=double
dependencies:
- prepare:venv
- check:LINPACK
needs: ["prepare:venv", "check:LINPACK"]
build:GEMM:
<<: *build
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DBLOCK_SIZE=32
dependencies:
- prepare:venv
- check:GEMM
needs: ["prepare:venv", "check:GEMM"]
build:GEMM_HP_REP2:
<<: *build
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DDATA_TYPE=half -DNUM_REPLICATIONS=2 -DBLOCK_SIZE=32
dependencies:
- prepare:venv
- check:GEMM
needs: ["prepare:venv", "check:GEMM"]
allow_failure: true
build:GEMM_DP_REP2:
<<: *build
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DDATA_TYPE=double -DNUM_REPLICATIONS=2 -DBLOCK_SIZE=32
dependencies:
- prepare:venv
- check:GEMM
needs: ["prepare:venv", "check:GEMM"]
build:FFT:
<<: *build
variables:
BENCHMARK_FOLDER: FFT
dependencies:
- prepare:venv
- check:FFT
needs: ["prepare:venv", "check:FFT"]
build:FFT_small:
<<: *build
variables:
BENCHMARK_FOLDER: FFT
BENCHMARK_OPTIONS: -DLOG_FFT_SIZE=4 -DNUM_REPLICATIONS=2
dependencies:
- prepare:venv
- check:FFT
needs: ["prepare:venv", "check:FFT"]
build:b_eff:
<<: *build
variables:
BENCHMARK_FOLDER: b_eff
BENCHMARK_OPTIONS: -DHOST_EMULATION_REORDER=Yes
dependencies:
- prepare:venv
- check:b_eff
needs: ["prepare:venv", "check:b_eff"]
###
#
# Execute tests for all benchmarks
#
###
.test: &test
stage: test
script:
- cd build
- $PREPARE_SCRIPT
- make CTEST_OUTPUT_ON_FAILURE=1 test
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/LastTest.log
only:
changes:
- $BENCHMARK_FOLDER/**/*
- shared/**/*
- scripts/**/*
- cmake/**/*
- .gitlab-ci.yml
test:STREAM:
<<: *test
variables:
BENCHMARK_FOLDER: STREAM
dependencies:
- prepare:venv
- build:STREAM
needs: ["prepare:venv", "build:STREAM"]
test:STREAM_HP:
<<: *test
variables:
BENCHMARK_FOLDER: STREAM
dependencies:
- prepare:venv
- build:STREAM_HP
needs: ["prepare:venv", "build:STREAM_HP"]
allow_failure: true
test:STREAM_DP:
<<: *test
variables:
BENCHMARK_FOLDER: STREAM
dependencies:
- prepare:venv
- build:STREAM_DP
needs: ["prepare:venv", "build:STREAM_DP"]
test:RandomAccess:
<<: *test
variables:
BENCHMARK_FOLDER: RandomAccess
dependencies:
- prepare:venv
- build:RandomAccess
needs: ["prepare:venv", "build:RandomAccess"]
test:PTRANS:
<<: *test
variables:
BENCHMARK_FOLDER: PTRANS
PREPARE_SCRIPT: ../$BENCHMARK_FOLDER/scripts/prepare_tests.sh ./bin
dependencies:
- prepare:venv
- build:PTRANS
needs: ["prepare:venv", "build:PTRANS"]
test:LINPACK:
<<: *test
variables:
BENCHMARK_FOLDER: LINPACK
dependencies:
- prepare:venv
- build:LINPACK
needs: ["prepare:venv", "build:LINPACK"]
test:LINPACK_DP:
<<: *test
variables:
BENCHMARK_FOLDER: LINPACK
dependencies:
- prepare:venv
- build:LINPACK_DP
needs: ["prepare:venv", "build:LINPACK_DP"]
test:GEMM:
<<: *test
variables:
BENCHMARK_FOLDER: GEMM
dependencies:
- prepare:venv
- build:GEMM
needs: ["prepare:venv", "build:GEMM"]
test:GEMM_HP_REP2:
<<: *test
variables:
BENCHMARK_FOLDER: GEMM
dependencies:
- prepare:venv
- build:GEMM_HP_REP2
needs: ["prepare:venv", "build:GEMM_HP_REP2"]
allow_failure: true
test:GEMM_DP_REP2:
<<: *test
variables:
BENCHMARK_FOLDER: GEMM
dependencies:
- prepare:venv
- build:GEMM_DP_REP2
needs: ["prepare:venv", "build:GEMM_DP_REP2"]
test:FFT:
<<: *test
variables:
BENCHMARK_FOLDER: FFT
dependencies:
- prepare:venv
- build:FFT
needs: ["prepare:venv", "build:FFT"]
test:FFT_small:
<<: *test
variables:
BENCHMARK_FOLDER: FFT
dependencies:
- prepare:venv
- build:FFT_small
needs: ["prepare:venv", "build:FFT_small"]
test:b_eff:
<<: *test
variables:
BENCHMARK_FOLDER: b_eff
PREPARE_SCRIPT: ../$BENCHMARK_FOLDER/scripts/prepare_tests.sh ./bin
dependencies:
- prepare:venv
- build:b_eff
needs: ["prepare:venv", "build:b_eff"]