forked from esa-tu-darmstadt/tapasco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
540 lines (465 loc) · 13.5 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
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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
before_script:
- echo "Setup done"
after_script:
- echo "Done with the work"
stages:
- test_scala_toolflow
- build_scala_toolflow
- build_kernel
- build_runtime
- build_hw
.test_tapasco_centos:
stage: test_scala_toolflow
retry: 2
dependencies: []
tags:
- High
script:
- yum -y install which java-openjdk findutils
- ./tapasco-init.sh && source tapasco-setup.sh
- cd ${TAPASCO_HOME_TOOLFLOW}/scala
- ./gradlew test
test_tapasco_centos_7:
image: centos:7
extends: .test_tapasco_centos
test_tapasco_centos_8:
image: centos:8
extends: .test_tapasco_centos
.test_tapasco_ubuntu:
stage: test_scala_toolflow
retry: 2
dependencies: []
tags:
- High
script:
- apt-get -y update && apt-get -y install unzip git zip findutils curl default-jdk
- ./tapasco-init.sh && source tapasco-setup.sh
- cd ${TAPASCO_HOME_TOOLFLOW}/scala
- ./gradlew test
test_tapasco_ubuntu_16_04:
image: ubuntu:xenial
extends: .test_tapasco_ubuntu
test_tapasco_ubuntu_18_04:
image: ubuntu:bionic
extends: .test_tapasco_ubuntu
.test_tapasco_fedora:
stage: test_scala_toolflow
retry: 2
tags:
- High
before_script:
- dnf -y install which java-openjdk findutils
script:
- ./tapasco-init.sh && source tapasco-setup.sh
- cd ${TAPASCO_HOME_TOOLFLOW}/scala
- ./gradlew test
test_tapasco_fedora_30:
image: fedora:30
extends: .test_tapasco_fedora
before_script:
- dnf -y install which findutils java-11-openjdk
test_tapasco_fedora_31:
image: fedora:31
extends: .test_tapasco_fedora
.build_scala_tapasco_centos:
stage: build_scala_toolflow
retry: 2
dependencies: []
tags:
- High
before_script:
- yum -y install which java-openjdk findutils
script:
- ./tapasco-init.sh && source tapasco-setup.sh
- cd ${TAPASCO_HOME_TOOLFLOW}/scala
- tapasco-build-toolflow
build_scala_tapasco_centos_7:
image: centos:7
extends: .build_scala_tapasco_centos
build_scala_tapasco_centos_8:
image: centos:8
extends: .build_scala_tapasco_centos
.build_scala_tapasco_fedora:
stage: build_scala_toolflow
retry: 2
dependencies: []
tags:
- High
before_script:
- dnf -y install which java-openjdk findutils
script:
- ./tapasco-init.sh && source tapasco-setup.sh
- cd ${TAPASCO_HOME_TOOLFLOW}/scala
- tapasco-build-toolflow
- ./gradlew buildRPM
artifacts:
paths:
- toolflow/scala/build/distributions/tapasco-2021-01.x86_64.rpm
build_scala_tapasco_fedora_30:
image: fedora:30
extends: .build_scala_tapasco_fedora
before_script:
- dnf -y install which findutils java-11-openjdk
build_scala_tapasco_fedora_31:
image: fedora:31
extends: .build_scala_tapasco_fedora
.build_scala_tapasco_ubuntu:
stage: build_scala_toolflow
retry: 2
dependencies: []
tags:
- High
before_script:
- apt-get -y update && apt-get -y install default-jdk findutils
script:
- ./tapasco-init.sh && source tapasco-setup.sh
- cd ${TAPASCO_HOME_TOOLFLOW}/scala
- tapasco-build-toolflow
- ./gradlew buildDEB
artifacts:
paths:
- toolflow/scala/build/distributions/tapasco_2021-01_amd64.deb
build_scala_tapasco_ubuntu_16_04:
image: ubuntu:xenial
extends: .build_scala_tapasco_ubuntu
build_scala_tapasco_ubuntu_18_04:
image: ubuntu:bionic
extends: .build_scala_tapasco_ubuntu
# build kernel module
# as we are running in a docker instance, we cannot use tapasco-build-libs
.build_kernel_ubuntu:
stage: build_kernel
retry: 2
dependencies: []
variables:
MODE: "release"
tags:
- Normal
script:
- apt-get -y update && apt-get -y install build-essential linux-headers-generic python3 libelf-dev
- ./tapasco-init.sh && source tapasco-setup.sh
- for d in `ls /lib/modules`; do echo "Building for linux headers in $d"; pushd runtime/kernel; make LINUX_HOME="/lib/modules/$d/build" clean && make LINUX_HOME=/lib/modules/$d/build -j 1 $MODE; popd; done
artifacts:
paths:
- runtime/kernel/tlkm.ko
build_kernel_ubuntu_16_04:
image: ubuntu:xenial
extends: .build_kernel_ubuntu
build_kernel_ubuntu_18_04:
image: ubuntu:bionic
extends: .build_kernel_ubuntu
build_kernel_ubuntu_16_04_debug:
variables:
MODE: "all"
image: ubuntu:xenial
extends: .build_kernel_ubuntu
build_kernel_ubuntu_18_04_debug:
variables:
MODE: "all"
image: ubuntu:bionic
extends: .build_kernel_ubuntu
build_kernel_arm32v7_debug:
stage: build_kernel
variables:
MODE: "all"
image: arm32v7/ubuntu:16.04
extends: .build_kernel_ubuntu
build_kernel_arm64v8_debug:
stage: build_kernel
variables:
MODE: "all"
image: arm64v8/ubuntu:16.04
extends: .build_kernel_ubuntu
.build_kernel_fedora:
stage: build_kernel
retry: 2
dependencies: []
variables:
MODE: "release"
tags:
- Normal
script:
- dnf -y install kernel-devel make gcc gcc-c++ elfutils-libelf-devel
- ./tapasco-init.sh && source tapasco-setup.sh
- for d in `ls /usr/src/kernels/`; do echo "Building for linux headers in $d"; pushd runtime/kernel; make LINUX_HOME="/usr/src/kernels/$d" clean && make LINUX_HOME=/usr/src/kernels/$d -j 1 $MODE; popd; done
artifacts:
paths:
- runtime/kernel/tlkm.ko
build_kernel_centos_8:
image: centos:8
extends: .build_kernel_fedora
build_kernel_centos_8_debug:
image: centos:8
variables:
MODE: "all"
extends: .build_kernel_fedora
build_kernel_fedora_30:
image: fedora:30
extends: .build_kernel_fedora
build_kernel_fedora_31:
image: fedora:31
extends: .build_kernel_fedora
build_kernel_fedora_30_debug:
variables:
MODE: "all"
image: fedora:30
extends: .build_kernel_fedora
build_kernel_fedora_31_debug:
variables:
MODE: "all"
image: fedora:31
extends: .build_kernel_fedora
.build_tapasco:
stage: build_runtime
retry: 2
variables:
MODE: "release"
TARGET: ""
PACKAGE_TYPE: "ZIP"
dependencies: []
tags:
- Normal
script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh && sh /tmp/rustup.sh -y
- source ~/.cargo/env
- ./tapasco-init.sh && source tapasco-setup.sh
- tapasco-build-libs --mode=$MODE --target=$TARGET --skip_driver
- cd build* && cpack -G $PACKAGE_TYPE
.build_tapasco_fedora:
variables:
PACKAGE_TYPE: "RPM"
before_script:
- dnf -y update libarchive
- dnf -y install kernel-devel make gcc gcc-c++ elfutils-libelf-devel cmake ncurses-devel python3 libatomic git rpm-build curl
artifacts:
paths:
- build/tapasco-*-Linux.rpm
extends: .build_tapasco
build_tapasco_centos_8:
image: centos:8
extends: .build_tapasco_fedora
build_tapasco_centos_8_debug:
variables:
MODE: "debug"
image: centos:8
extends: .build_tapasco_fedora
build_tapasco_fedora_30:
image: fedora:30
extends: .build_tapasco_fedora
build_tapasco_fedora_31:
image: fedora:31
extends: .build_tapasco_fedora
build_tapasco_fedora_30_debug:
variables:
MODE: "debug"
image: fedora:30
extends: .build_tapasco_fedora
build_tapasco_fedora_31_debug:
variables:
MODE: "debug"
image: fedora:31
extends: .build_tapasco_fedora
.build_tapasco_ubuntu:
variables:
PACKAGE_TYPE: "DEB"
before_script:
- apt-get -y update && apt-get -y install build-essential linux-headers-generic python3 cmake libelf-dev libncurses-dev git curl
artifacts:
paths:
- build/tapasco-*-Linux.deb
extends: .build_tapasco
build_tapasco_ubuntu_16_04:
image: ubuntu:xenial
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_18_04:
image: ubuntu:bionic
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_16_04_cross:
variables:
TARGET: "zynq"
image: ubuntu:xenial
before_script:
- apt-get -y update && apt-get -y install build-essential linux-headers-generic python3 cmake curl libelf-dev libncurses-dev git gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_16_04_clang:
variables:
TARGET: "clang"
image: ubuntu:xenial
before_script:
- apt-get -y update && apt-get -y install build-essential linux-headers-generic python3 cmake curl libelf-dev libncurses-dev git clang
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_16_04_debug:
variables:
MODE: "debug"
image: ubuntu:xenial
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_18_04_debug:
variables:
MODE: "debug"
image: ubuntu:bionic
extends: .build_tapasco_ubuntu
build_tapasco_arm32v7_debug:
variables:
MODE: "debug"
image: arm32v7/ubuntu:16.04
before_script:
- apt-get -y update && apt-get -y install build-essential linux-headers-generic python3 cmake libelf-dev libncurses-dev git rpm curl
- curl http://launchpadlibrarian.net/332033977/libprotobuf10_3.0.0-9ubuntu5_armhf.deb -o /tmp/libprotobuf.deb
- curl http://launchpadlibrarian.net/332033978/libprotoc10_3.0.0-9ubuntu5_armhf.deb -o /tmp/libprotoc.deb
- curl http://launchpadlibrarian.net/332033979/protobuf-compiler_3.0.0-9ubuntu5_armhf.deb -o /tmp/protobuf.deb
- dpkg -i /tmp/libprotobuf.deb
- dpkg -i /tmp/libprotoc.deb
- dpkg -i /tmp/protobuf.deb
extends: .build_tapasco_ubuntu
build_tapasco_arm64v8_debug:
variables:
MODE: "debug"
image: arm64v8/ubuntu:16.04
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_16_04_cross_debug:
variables:
MODE: "debug"
TARGET: "zynq"
image: ubuntu:xenial
before_script:
- apt-get -y update && apt-get -y install build-essential linux-headers-generic python3 cmake curl libelf-dev libncurses-dev git rpm gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
extends: .build_tapasco_ubuntu
tapasco_compose_ubuntu:
stage: build_hw
retry: 2
variables:
VIVADO_VERSION: "2019.1"
XILINX_VIVADO: "/opt/cad/xilinx/vivado/Vivado/${VIVADO_VERSION}"
XILINXD_LICENSE_FILE: "/opt/cad/keys/xilinx"
tags:
- CAD
image: ubuntu:bionic
dependencies:
- build_scala_tapasco_ubuntu_18_04
script:
- source $XILINX_VIVADO/settings64.sh
- apt-get -y update
- apt-get -y install libtinfo5 build-essential
- apt -y install ./toolflow/scala/build/distributions/tapasco_2021-01_amd64.deb
- /opt/tapasco/tapasco-init-toolflow.sh
- source tapasco-setup-toolflow.sh
- tapasco -v hls arrayinit -p pynq
- tapasco import toolflow/examples/Counter.zip as 14 -p pynq
- tapasco -v --maxThreads 3 compose [arrayinit x 2, Counter x 3] @ 100 MHz -p pynq
.tapasco_compose:
stage: build_hw
retry: 2
variables:
VIVADO_VERSION: "2019.1"
XILINX_VIVADO: "/opt/cad/xilinx/vivado/Vivado/${VIVADO_VERSION}"
XILINXD_LICENSE_FILE: "/opt/cad/keys/xilinx"
PLATFORM: "pynq"
FLAGS: ""
tags:
- CAD
- High
image: fedora:30
dependencies:
- build_scala_tapasco_fedora_30
before_script:
- dnf -y install which unzip git zip tar findutils libX11 gcc gcc-c++ python3
- ln -s /lib64/libtinfo.so.6 /lib64/libtinfo.so.5
script:
- source $XILINX_VIVADO/settings64.sh
- which vivado
- which vivado_hls || which vitis_hls
- dnf -y install toolflow/scala/build/distributions/tapasco-2021-01.x86_64.rpm
- /opt/tapasco/tapasco-init-toolflow.sh
- source tapasco-setup-toolflow.sh
- tapasco hls arrayinit -p $PLATFORM --skipEvaluation
- tapasco import toolflow/examples/Counter.zip as 14 -p $PLATFORM --skipEvaluation
- tapasco -v --maxThreads 3 compose [arrayinit x 2, Counter x 3] @ 100 MHz -p $PLATFORM $FLAGS
tapasco_compose_17_4:
variables:
VIVADO_VERSION: "2017.4"
extends: .tapasco_compose
tapasco_compose_18_1:
variables:
VIVADO_VERSION: "2018.1"
extends: .tapasco_compose
tapasco_compose_18_2:
variables:
VIVADO_VERSION: "2018.2"
extends: .tapasco_compose
tapasco_compose_18_3:
variables:
VIVADO_VERSION: "2018.3"
extends: .tapasco_compose
tapasco_compose_19_1:
variables:
VIVADO_VERSION: "2019.1"
extends: .tapasco_compose
tapasco_compose_19_2:
variables:
VIVADO_VERSION: "2019.2"
extends: .tapasco_compose
tapasco_compose_20_1:
variables:
VIVADO_VERSION: "2020.1"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose
tapasco_compose_20_2:
variables:
VIVADO_VERSION: "2020.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose
tapasco_compose_21_1:
variables:
VIVADO_VERSION: "2021.1"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose
tapasco_compose_pcie:
variables:
VIVADO_VERSION: "2018.3"
PLATFORM: "vc709"
extends: .tapasco_compose
# do runs without for synthesis for all other plattforms
.tapasco_compose_no_synth:
variables:
FLAGS: "--skipSynthesis"
extends: .tapasco_compose
tapasco_compose_AU250:
variables:
PLATFORM: "AU250"
extends: .tapasco_compose_no_synth
tapasco_compose_netfpga_sume:
variables:
PLATFORM: "netfpga_sume"
extends: .tapasco_compose_no_synth
tapasco_compose_ultra96v2:
variables:
PLATFORM: "ultra96v2"
extends: .tapasco_compose_no_synth
tapasco_compose_vcu108:
variables:
PLATFORM: "vcu108"
extends: .tapasco_compose_no_synth
tapasco_compose_vcu118:
variables:
PLATFORM: "vcu118"
extends: .tapasco_compose_no_synth
tapasco_compose_vcu1525:
variables:
PLATFORM: "vcu1525"
extends: .tapasco_compose_no_synth
tapasco_compose_xupvvh:
variables:
PLATFORM: "xupvvh"
extends: .tapasco_compose_no_synth
tapasco_compose_zc706:
variables:
PLATFORM: "zc706"
extends: .tapasco_compose_no_synth
tapasco_compose_zcu102:
variables:
PLATFORM: "zcu102"
extends: .tapasco_compose_no_synth
tapasco_compose_zedboard:
variables:
PLATFORM: "zedboard"
extends: .tapasco_compose_no_synth