-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
381 lines (337 loc) · 7.7 KB
/
.gitlab-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
stages:
- check
- build
- test
variables:
SCHEDULER_PARAMETERS: "-A pc2-mitarbeiter -p normal -q cont -t 00:30:00 -n 2 -N 1"
default:
tags:
- jacamar
before_script:
- module load fpga/intel/opencl_sdk/21.2.0 fpga/bittware/520n/20.4.0_max toolchain/foss/2021a devel/CMake/3.20.1-GCCcore-10.3.0 lang/Python/3.9.5-GCCcore-10.3.0
- python -m pip install -r scripts/evaluation/requirements.txt
- python -m pip install -r scripts/code_generator/requirements.txt
###
#
# Build documentation
#
###
build:docs:
stage: build
script:
- python -m pip install -r docs/requirements.txt
- module load devel/Doxygen/1.9.1-GCCcore-10.3.0
- cd docs
- make html
- doxygen doxy.config
only:
changes:
- docs/**/*
- .gitlab-ci.yml
artifacts:
paths:
- docs/build
- docs/xml
###
#
# Check formatting of all benchmarks
#
###
.check: &check
stage: check
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/bin/*
only:
changes:
- $BENCHMARK_FOLDER/**/*
- shared/**/*
- scripts/**/*
- cmake/**/*
- .gitlab-ci.yml
build:STREAM:
<<: *build
variables:
BENCHMARK_FOLDER: STREAM
dependencies:
- check:STREAM
needs: ["check:STREAM"]
build:STREAM_HP:
<<: *build
variables:
BENCHMARK_FOLDER: STREAM
BENCHMARK_OPTIONS: -DDATA_TYPE=half -DVECTOR_COUNT=1 -DGLOBAL_MEM_UNROLL=32
dependencies:
- check:STREAM
needs: ["check:STREAM"]
build:STREAM_DP:
<<: *build
variables:
BENCHMARK_FOLDER: STREAM
BENCHMARK_OPTIONS: -DDATA_TYPE=double -DVECTOR_COUNT=1 -DGLOBAL_MEM_UNROLL=8
dependencies:
- check:STREAM
needs: ["check:STREAM"]
build:RandomAccess:
<<: *build
variables:
BENCHMARK_FOLDER: RandomAccess
dependencies:
- check:RandomAccess
needs: ["check:RandomAccess"]
build:PTRANS:
<<: *build
variables:
BENCHMARK_FOLDER: PTRANS
BENCHMARK_OPTIONS: -DHOST_EMULATION_REORDER=Yes
dependencies:
- check:PTRANS
needs: ["check:PTRANS"]
build:LINPACK:
<<: *build
variables:
BENCHMARK_FOLDER: LINPACK
BENCHMARK_OPTIONS: -DLOCAL_MEM_BLOCK_LOG=4 -DREGISTER_BLOCK_LOG=3 -DNUM_REPLICATIONS=3
dependencies:
- check:LINPACK
needs: ["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:
- check:LINPACK
needs: ["check:LINPACK"]
build:GEMM:
<<: *build
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DBLOCK_SIZE=32
dependencies:
- check:GEMM
needs: ["check:GEMM"]
build:GEMM_HP_REP2:
<<: *build
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DDATA_TYPE=half -DNUM_REPLICATIONS=2 -DBLOCK_SIZE=32
dependencies:
- check:GEMM
needs: ["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:
- check:GEMM
needs: ["check:GEMM"]
build:FFT:
<<: *build
variables:
BENCHMARK_FOLDER: FFT
dependencies:
- check:FFT
needs: ["check:FFT"]
build:FFT_small:
<<: *build
variables:
BENCHMARK_FOLDER: FFT
BENCHMARK_OPTIONS: -DLOG_FFT_SIZE=4 -DNUM_REPLICATIONS=2
dependencies:
- check:FFT
needs: ["check:FFT"]
build:b_eff:
<<: *build
variables:
BENCHMARK_FOLDER: b_eff
BENCHMARK_OPTIONS: -DHOST_EMULATION_REORDER=Yes
dependencies:
- check:b_eff
needs: ["check:b_eff"]
###
#
# Execute tests for all benchmarks
#
###
.test: &test
stage: test
script:
- mkdir -p build
- cd build
- cmake ../$BENCHMARK_FOLDER $BENCHMARK_OPTIONS -DDEFAULT_PLATFORM=0 -DDEFAULT_DEVICE=0
- make all -j41
- $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:
- build:STREAM
needs: ["build:STREAM"]
test:STREAM_HP:
<<: *test
variables:
BENCHMARK_FOLDER: STREAM
BENCHMARK_OPTIONS: -DDATA_TYPE=half -DVECTOR_COUNT=1 -DGLOBAL_MEM_UNROLL=32
dependencies:
- build:STREAM_HP
needs: ["build:STREAM_HP"]
allow_failure: true
test:STREAM_DP:
<<: *test
variables:
BENCHMARK_FOLDER: STREAM
BENCHMARK_OPTIONS: -DDATA_TYPE=double -DVECTOR_COUNT=1 -DGLOBAL_MEM_UNROLL=8
dependencies:
- build:STREAM_DP
needs: ["build:STREAM_DP"]
test:RandomAccess:
<<: *test
variables:
BENCHMARK_FOLDER: RandomAccess
dependencies:
- build:RandomAccess
needs: ["build:RandomAccess"]
test:PTRANS:
<<: *test
variables:
BENCHMARK_FOLDER: PTRANS
BENCHMARK_OPTIONS: -DHOST_EMULATION_REORDER=Yes
PREPARE_SCRIPT: ../$BENCHMARK_FOLDER/scripts/prepare_tests.sh ./bin
dependencies:
- build:PTRANS
needs: ["build:PTRANS"]
test:LINPACK:
<<: *test
variables:
BENCHMARK_FOLDER: LINPACK
BENCHMARK_OPTIONS: -DLOCAL_MEM_BLOCK_LOG=4 -DREGISTER_BLOCK_LOG=3 -DNUM_REPLICATIONS=3
dependencies:
- build:LINPACK
needs: ["build:LINPACK"]
test:LINPACK_DP:
<<: *test
variables:
BENCHMARK_FOLDER: LINPACK
BENCHMARK_OPTIONS: -DLOCAL_MEM_BLOCK_LOG=4 -DREGISTER_BLOCK_LOG=3 -DNUM_REPLICATIONS=3 -DDATA_TYPE=double
dependencies:
- build:LINPACK_DP
needs: ["build:LINPACK_DP"]
test:GEMM:
<<: *test
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DBLOCK_SIZE=32
dependencies:
- build:GEMM
needs: ["build:GEMM"]
test:GEMM_HP_REP2:
<<: *test
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DDATA_TYPE=half -DNUM_REPLICATIONS=2 -DBLOCK_SIZE=32
dependencies:
- build:GEMM_HP_REP2
needs: ["build:GEMM_HP_REP2"]
allow_failure: true
test:GEMM_DP_REP2:
<<: *test
variables:
BENCHMARK_FOLDER: GEMM
BENCHMARK_OPTIONS: -DDATA_TYPE=double -DNUM_REPLICATIONS=2 -DBLOCK_SIZE=32
dependencies:
- build:GEMM_DP_REP2
needs: ["build:GEMM_DP_REP2"]
test:FFT:
<<: *test
variables:
BENCHMARK_FOLDER: FFT
dependencies:
- build:FFT
needs: ["build:FFT"]
test:FFT_small:
<<: *test
variables:
BENCHMARK_FOLDER: FFT
BENCHMARK_OPTIONS: -DLOG_FFT_SIZE=4 -DNUM_REPLICATIONS=2
dependencies:
- build:FFT_small
needs: ["build:FFT_small"]
test:b_eff:
<<: *test
variables:
BENCHMARK_FOLDER: b_eff
BENCHMARK_OPTIONS: -DHOST_EMULATION_REORDER=Yes
PREPARE_SCRIPT: ../$BENCHMARK_FOLDER/scripts/prepare_tests.sh ./bin
dependencies:
- build:b_eff
needs: ["build:b_eff"]