-
Notifications
You must be signed in to change notification settings - Fork 25
/
.gitlab-ci.yml
644 lines (555 loc) · 16.8 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
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
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_rockylinux_8:
image: rockylinux:8
extends: .test_tapasco_centos
.test_tapasco_ubuntu:
stage: test_scala_toolflow
retry: 2
dependencies: []
tags:
- High
script:
- apt-get -y update && DEBIAN_FRONTEND=noninteractive 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_18_04:
image: ubuntu:18.04
extends: .test_tapasco_ubuntu
test_tapasco_ubuntu_20_04:
image: ubuntu:20.04
extends: .test_tapasco_ubuntu
test_tapasco_ubuntu_22_04:
image: ubuntu:22.04
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_36:
image: fedora:36
extends: .test_tapasco_fedora
before_script:
- dnf -y install which findutils java-11-openjdk
.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
- ./gradlew buildRPM
artifacts:
paths:
- toolflow/scala/build/distributions/tapasco-2024-01.x86_64.rpm
build_scala_tapasco_centos_7:
image: centos:7
extends: .build_scala_tapasco_centos
build_scala_tapasco_rockylinux_8:
image: rockylinux: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-2024-01.x86_64.rpm
build_scala_tapasco_fedora_36:
image: fedora:36
extends: .build_scala_tapasco_fedora
before_script:
- dnf -y install which findutils java-11-openjdk
.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_2024-01_amd64.deb
build_scala_tapasco_ubuntu_18_04:
image: ubuntu:18.04
extends: .build_scala_tapasco_ubuntu
build_scala_tapasco_ubuntu_20_04:
image: ubuntu:20.04
extends: .build_scala_tapasco_ubuntu
build_scala_tapasco_ubuntu_22_04:
image: ubuntu:22.04
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_18_04:
image: ubuntu:18.04
extends: .build_kernel_ubuntu
build_kernel_ubuntu_20_04:
image: ubuntu:20.04
extends: .build_kernel_ubuntu
build_kernel_ubuntu_22_04:
image: ubuntu:22.04
extends: .build_kernel_ubuntu
build_kernel_ubuntu_18_04_debug:
variables:
MODE: "all"
image: ubuntu:18.04
extends: .build_kernel_ubuntu
build_kernel_ubuntu_20_04_debug:
variables:
MODE: "all"
image: ubuntu:20.04
extends: .build_kernel_ubuntu
build_kernel_ubuntu_22_04_debug:
variables:
MODE: "all"
image: ubuntu:22.04
extends: .build_kernel_ubuntu
build_kernel_arm32v7_debug:
stage: build_kernel
variables:
MODE: "all"
image: arm32v7/ubuntu:18.04
extends: .build_kernel_ubuntu
build_kernel_arm64v8_debug:
stage: build_kernel
variables:
MODE: "all"
image: arm64v8/ubuntu:18.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_rockylinux_8:
image: rockylinux:8
extends: .build_kernel_fedora
build_kernel_rockylinux_8_debug:
image: rockylinux:8
variables:
MODE: "all"
extends: .build_kernel_fedora
build_kernel_fedora_36:
image: fedora:36
extends: .build_kernel_fedora
build_kernel_fedora_36_debug:
variables:
MODE: "all"
image: fedora:36
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 protobuf-compiler protobuf
artifacts:
paths:
- build/tapasco-*-Linux.rpm
extends: .build_tapasco
build_tapasco_rockylinux_8:
image: rockylinux:8
extends: .build_tapasco_fedora
build_tapasco_rockylinux_8_debug:
variables:
MODE: "debug"
image: rockylinux:8
extends: .build_tapasco_fedora
build_tapasco_fedora_36:
image: fedora:36
extends: .build_tapasco_fedora
build_tapasco_fedora_36_debug:
variables:
MODE: "debug"
image: fedora:36
extends: .build_tapasco_fedora
.build_tapasco_ubuntu:
variables:
PACKAGE_TYPE: "DEB"
before_script:
- apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential linux-headers-generic python3 cmake libelf-dev libncurses-dev git curl protobuf-compiler
artifacts:
paths:
- build/tapasco-*-Linux.deb
extends: .build_tapasco
build_tapasco_ubuntu_18_04:
image: ubuntu:18.04
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_20_04:
image: ubuntu:20.04
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_22_04:
image: ubuntu:22.04
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 wget unzip build-essential linux-headers-generic python3 cmake curl libelf-dev libncurses-dev git gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
- wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip
- unzip -o protoc-22.3-linux-x86_64.zip -d /usr/local bin/protoc
- unzip -o protoc-22.3-linux-x86_64.zip -d /usr/local 'include/*'
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 wget unzip build-essential linux-headers-generic python3 cmake curl libelf-dev libncurses-dev git clang
- wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip
- unzip -o protoc-22.3-linux-x86_64.zip -d /usr/local bin/protoc
- unzip -o protoc-22.3-linux-x86_64.zip -d /usr/local 'include/*'
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_18_04_debug:
variables:
MODE: "debug"
image: ubuntu:18.04
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_20_04_debug:
variables:
MODE: "debug"
image: ubuntu:20.04
extends: .build_tapasco_ubuntu
build_tapasco_ubuntu_22_04_debug:
variables:
MODE: "debug"
image: ubuntu:22.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 wget unzip build-essential linux-headers-generic python3 cmake curl libelf-dev libncurses-dev git rpm gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
- wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip
- unzip -o protoc-22.3-linux-x86_64.zip -d /usr/local bin/protoc
- unzip -o protoc-22.3-linux-x86_64.zip -d /usr/local 'include/*'
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:18.04
dependencies:
- build_scala_tapasco_ubuntu_18_04
script:
- source $XILINX_VIVADO/settings64.sh
- apt-get -y update
- DEBIAN_FRONTEND=noninteractive apt-get -y install libtinfo5 build-essential tzdata
- apt -y install ./toolflow/scala/build/distributions/tapasco_2024-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: rockylinux:8
dependencies:
- build_scala_tapasco_rockylinux_8
before_script:
- dnf -y install which unzip git zip tar findutils libX11 gcc gcc-c++ python3 glibc-langpack-en
- ln -s /lib64/libtinfo.so.6 /lib64/libtinfo.so.5
script:
- export LC_ALL=en_US.UTF-8
- source $XILINX_VIVADO/settings64.sh
- which vivado
- which vivado_hls || which vitis_hls
- dnf -y install toolflow/scala/build/distributions/tapasco-2024-01.x86_64.rpm
- /opt/tapasco/tapasco-init-toolflow.sh
- source tapasco-setup-toolflow.sh
- tapasco hls arrayinit -p $PLATFORM
- tapasco import toolflow/examples/Counter.zip as 14 -p $PLATFORM
- 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_21_2:
variables:
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose
tapasco_compose_22_1:
variables:
VIVADO_VERSION: "2022.1"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose
tapasco_compose_22_2:
variables:
VIVADO_VERSION: "2022.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose
tapasco_compose_23_1:
variables:
VIVADO_VERSION: "2023.1"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
LD_PRELOAD: "/usr/lib64/libudev.so.1"
extends: .tapasco_compose
tapasco_compose_23_2:
variables:
VIVADO_VERSION: "2023.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
LD_PRELOAD: "/usr/lib64/libudev.so.1"
extends: .tapasco_compose
tapasco_compose_pcie:
variables:
VIVADO_VERSION: "2018.3"
PLATFORM: "vc709"
extends: .tapasco_compose
# do runs without 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_AU50:
variables:
PLATFORM: "AU50"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose_no_synth
tapasco_compose_HAWK:
variables:
PLATFORM: "HAWK"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
extends: .tapasco_compose_no_synth
tapasco_compose_vck5000:
variables:
PLATFORM: "vck5000"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
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_xupvvh-es:
variables:
PLATFORM: "xupvvh-es"
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
tapasco_compose_sim:
variables:
PLATFORM: "sim"
extends: .tapasco_compose_no_synth
# runs to test features
tapasco_compose_svm_u280:
variables:
PLATFORM: "AU280"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
FLAGS: "--skipSynthesis --features SVM {enabled: true}"
extends: .tapasco_compose
tapasco_compose_svm_u50:
variables:
PLATFORM: "AU50"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
FLAGS: "--skipSynthesis --features SVM {enabled: true}"
extends: .tapasco_compose
tapasco_compose_svm_xupvvh:
variables:
PLATFORM: "xupvvh"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
FLAGS: "--skipSynthesis --features SVM {enabled: true}"
extends: .tapasco_compose
tapasco_compose_svm_xupvvh-es:
variables:
PLATFORM: "xupvvh-es"
FLAGS: "--skipSynthesis --features SVM {enabled: true}"
extends: .tapasco_compose
tapasco_compose_svm_pcie_e2e:
variables:
PLATFORM: "AU280"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
FLAGS: "--skipSynthesis --features SVM {enabled: true, pcie_e2e: true}"
extends: .tapasco_compose
tapasco_compose_svm_network:
variables:
PLATFORM: "AU280"
VIVADO_VERSION: "2021.2"
XILINX_VIVADO: "/opt/cad/xilinx/vitis/Vivado/${VIVADO_VERSION}"
FLAGS: "--skipSynthesis --features SVM {enabled: true, network_dma: true, port: 1, mac_addr: 0x005D03C10000}"
extends: .tapasco_compose