-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
717 lines (677 loc) · 24.3 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
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
variables:
GIT_SUBMODULE_STRATEGY: recursive
FF_USE_FASTZIP: "true"
# These can be specified per job or per pipeline
ARTIFACT_COMPRESSION_LEVEL: "fastest"
CACHE_COMPRESSION_LEVEL: "fastest"
TOOLCHAIN: "LLVM"
CMAKE_GENERATOR: "Ninja"
stages: # List of stages for jobs, and their order of execution
- test
.setup_test:
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- cd DeeployTest
- git lfs pull
build_deeploy: # This job runs in the build stage, which runs first.
stage: test
resource_group: install
artifacts:
untracked: true
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- pip install -e .
- rm -f DeeployTest/out.txt
gen_docs:
stage: test
resource_group: install
artifacts:
untracked: true
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- make docs
run_cmsis_test_models: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- qemu-arm
parallel:
matrix:
- TEST: [simpleRegression, WaveFormer]
script:
- !reference [.setup_test, script]
- python testRunner_cortexm.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_QEMU/Tests/$TEST/*.c
- ./DeeployTest/TEST_QEMU/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_cmsis_test_kernels: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- qemu-arm
parallel:
matrix:
- TEST: [Adder, MultIO, test1DPad, test2DPad, testMatMul, testMatMulAdd, testMaxPool, testRQConv, testReduceSum, testReduceMean, testSlice]
script:
- !reference [.setup_test, script]
- python testRunner_cortexm.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_QEMU/Tests/$TEST/*.c
- ./DeeployTest/TEST_QEMU/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_test_models: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: [simpleRegression, miniMobileNet, miniMobileNetv2, Attention, MLPerf/KeywordSpotting, MLPerf/ImageClassification, MLPerf/AnomalyDetection]
script:
- !reference [.setup_test, script]
- python testRunner_siracusa.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_test_kernels: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: [Adder, MultIO, test1DPad, test2DPad, testMatMul, testMatMulAdd, testRequantizedDWConv, test2DRequantizedConv, iSoftmax, testConcat, testRMSNorm, trueIntegerDivSandwich, Hardswish, RQHardswish, testBacktracking]
script:
- !reference [.setup_test, script]
- python testRunner_siracusa.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_DMA_slice_L2: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
script:
- !reference [.setup_test, script]
- python testSlice_PULP.py --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/testSlice/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/testSlice/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_tiled_kernels_singlebuffer_L2: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: "testMatMul"
L1: [64000, 32000, 16000]
- TEST: "test2DRequantizedConv"
L1: [8000, 6000, 4000]
- TEST: "testRequantizedDWConv"
L1: [2561] # SCHEREMO: The implicit transpose after the conv is untiled; need at least 2560
- TEST: "iSoftmax"
L1: [800, 500, 300]
- TEST: "testConcat"
L1: [32000, 16000, 8000]
- TEST: "testRMSNorm"
L1: [2048, 1024, 512]
- TEST: "Hardswish"
L1: [750]
- TEST: "RQHardswish"
L1: [750]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_tiled_kernels_doublebuffer_L2: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: "testMatMul"
L1: [64000, 32000, 16000]
- TEST: "test2DRequantizedConv"
L1: [8000, 6000, 5000]
- TEST: "testRequantizedDWConv"
L1: [5121] # SCHEREMO: The implicit transpose after the conv is untiled; need at least 2560 * 2 for DB
- TEST: "iSoftmax"
L1: [1600, 1000, 600]
- TEST: "testConcat"
L1: [64000, 32000, 16000]
- TEST: "testRMSNorm"
L1: [4096, 2048, 1024]
- TEST: "Hardswish"
L1: [750]
- TEST: "RQHardswish"
L1: [750]
- TEST: "microLlama/microLlama1"
L1: [60000, 20000, 10000]
- TEST: "microLlama/microLlama8"
L1: [60000, 20000, 10000]
- TEST: "microLlama/microLlama8_parallel"
L1: [60000, 20000, 10000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8 --doublebuffer
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_tiled_models_singlebuffer_L2: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: "simpleRegression"
L1: [45000, 30000, 15000]
- TEST: "miniMobileNet"
L1: [60000, 12000, 6000, 3000]
- TEST: "miniMobileNetv2"
L1: [60000, 16000, 12000, 8000]
- TEST: "Attention"
L1: [60000, 10000, 5000]
- TEST: "microLlama/microLlama1"
L1: [60000, 10000, 5000]
- TEST: "microLlama/microLlama8"
L1: [60000, 10000, 5000]
- TEST: "microLlama/microLlama8_parallel"
L1: [60000, 10000, 5000]
- TEST: "MLPerf/KeywordSpotting"
L1: [64000]
- TEST: "MLPerf/ImageClassification"
L1: [64000]
- TEST: "MLPerf/AnomalyDetection"
L1: [64000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_tiled_models_singlebuffer_L3: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: "simpleRegression"
L1: [45000, 30000, 16000] # SCHEREMO: 15000 leads to non-2d transfers in L3!
- TEST: "miniMobileNet"
L1: [60000, 12000, 6000] # SCHEREMO: 3000 leads to non-2d transfers in L3!
- TEST: "miniMobileNetv2"
L1: [60000, 16000, 12000, 8000]
- TEST: "Attention"
L1: [60000, 10000, 5000, 2500]
- TEST: "Transformer"
L1: [60000, 30000, 15000]
- TEST: "microLlama/microLlama1"
L1: [60000, 10000, 5000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8 --defaultMemLevel=L3
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_tiled_models_doublebuffer_L3: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- PULP
parallel:
matrix:
- TEST: "simpleRegression"
L1: [60000, 45000, 30000]
- TEST: "miniMobileNet"
L1: [60000, 24000, 12000, 6000]
- TEST: "miniMobileNetv2"
L1: [60000, 32000, 24000, 16000]
- TEST: "Attention"
L1: [60000, 20000, 10000, 5000]
- TEST: "Transformer"
L1: [60000, 30000, 15000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8 --doublebuffer --defaultMemLevel=L3
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_w_neureka_tiled_kernels_singlebuffer_L2:
stage: test
tags:
- PULP
parallel:
matrix:
- TEST: "testRequantizedLinear"
L1: [16000]
- TEST: "testPointwise"
L1: [32000]
- TEST: "testPointwiseConvBNReLU"
L1: [32000]
- TEST: "testPointwiseUnsignedWeights"
L1: [32000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa_w_neureka.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --defaultMemLevel=L2
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_w_neureka_tiled_kernels_doublebuffer_L2:
stage: test
tags:
- PULP
parallel:
matrix:
- TEST: "testRequantizedLinear"
L1: [16000]
- TEST: "testPointwise"
L1: [32000]
- TEST: "testPointwiseConvBNReLU"
L1: [32000]
- TEST: "testPointwiseUnsignedWeights"
L1: [32000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa_w_neureka.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --defaultMemLevel=L2 --doublebuffer
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_w_neureka_tiled_models_singlebuffer_L3:
stage: test
tags:
- PULP
parallel:
matrix:
- TEST: "miniMobileNet"
L1: [2000] # LMACAN: 1000 leads to non-2d transfers in L3!
- TEST: "Attention"
L1: [2500]
- TEST: "Transformer"
L1: [15000]
- TEST: "microLlama/microLlama1"
L1: [10000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa_w_neureka.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8 --defaultMemLevel=L3
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_w_neureka_tiled_models_doublebuffer_L3:
stage: test
tags:
- PULP
parallel:
matrix:
- TEST: "miniMobileNet"
L1: [2000] # LMACAN: 1000 leads to non-2d transfers in L3!
- TEST: "Attention"
L1: [5000]
- TEST: "Transformer"
L1: [30000]
script:
- !reference [.setup_test, script]
- python testRunner_tiled_siracusa_w_neureka.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8 --defaultMemLevel=L3 --doublebuffer
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_w_neureka_tiled_kernels_singlebuffer_L2_wmem:
stage: test
tags:
- PULP
parallel:
matrix:
- TEST: "testRequantizedLinear"
L1: [16000]
- TEST: "testPointwise"
L1: [32000]
- TEST: "testPointwiseConvBNReLU"
L1: [32000]
- TEST: "testPointwiseUnsignedWeights"
L1: [32000]
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- cd DeeployTest
- python testRunner_tiled_siracusa_w_neureka.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --defaultMemLevel=L2 --neureka-wmem
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_siracusa_w_neureka_tiled_models_doublebuffer_L3_wmem:
stage: test
tags:
- PULP
parallel:
matrix:
- TEST: "miniMobileNet"
L1: [2000] # LMACAN: 1000 leads to non-2d transfers in L3!
- TEST: "Attention"
L1: [2500]
- TEST: "Transformer"
L1: [30000]
- TEST: "microLlama/microLlama1"
L1: [10000]
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- cd DeeployTest
- python testRunner_tiled_siracusa_w_neureka.py -t ./Tests/$TEST --l1 $L1 --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR --cores=8 --defaultMemLevel=L3 --doublebuffer --neureka-wmem
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.c
- ./DeeployTest/TEST_SIRACUSA_W_NEUREKA/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_mempool_test_kernels: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- banshee
retry: 2
parallel:
matrix:
- TEST: [Adder, MultIO, test1DConvolution, test2DConvolution, test1DDWConvolution, test2DDWConvolution, test1DPad, test2DPad, testGEMM, testMatMul, testMatMulAdd, testMaxPool, testRQConv, testRQGEMM, testRQMatMul, testReduceSum, testReduceMean, testSlice, testRequantizedDWConv, test2DRequantizedConv]
script:
- !reference [.setup_test, script]
- python testRunner_mempool.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_MEMPOOL/Tests/$TEST/*.c
- ./DeeployTest/TEST_MEMPOOL/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_mempool_test_models: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- banshee
retry: 2
parallel:
matrix:
- TEST: [simpleRegression, simpleCNN, ICCT, ICCT_ITA, ICCT_8, ICCT_ITA_8, miniMobileNet, miniMobileNetv2]
script:
- !reference [.setup_test, script]
- python testRunner_mempool.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
# - python testRunner_mempool.py -t ./Tests/WaveFormer -DGCC_INSTALL_DIR=$MEMPOOL_GCC_INSTALL_DIR # Boken with ITA (heap is too small)
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_MEMPOOL/Tests/$TEST/*.c
- ./DeeployTest/TEST_MEMPOOL/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_generic_test_kernels: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
parallel:
matrix:
- TEST: [Adder, MultIO, test1DConvolution, test2DConvolution, test1DDWConvolution, test2DDWConvolution, test1DPad, test2DPad, testGEMM, testMatMul, testMatMulAdd, testMaxPool, testRQConv, testRQMatMul, testReduceSum, testReduceMean, testSlice, testRequantizedDWConv, test2DRequantizedConv, iSoftmax]
script:
- !reference [.setup_test, script]
- python testRunner_generic.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_GENERIC/Tests/$TEST/*.c
- ./DeeployTest/TEST_GENERIC/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
run_generic_test_models: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
parallel:
matrix:
- TEST: [simpleRegression, WaveFormer, simpleCNN, ICCT, ICCT_ITA, ICCT_8, ICCT_ITA_8, miniMobileNet, miniMobileNetv2]
script:
- !reference [.setup_test, script]
- python testRunner_generic.py -t ./Tests/$TEST --toolchain=$TOOLCHAIN --toolchain_install_dir=$LLVM_INSTALL_DIR
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ./DeeployTest/out.txt
- ./DeeployTest/TEST_GENERIC/Tests/$TEST/*.c
- ./DeeployTest/TEST_GENERIC/Tests/$TEST/*.h
expire_in: 4 weeks
cache:
key: $CI_PROJECT_DIR-$CI_COMMIT_REF_SLUG
paths:
- ./DeeployTest/TEST_*/build
test_deeploy_state_serialization:
stage: test
parallel:
matrix:
- TEST: [simpleRegression]
PLATFORM: ['QEMU-ARM', 'Siracusa', 'MemPool', 'Generic']
script:
- !reference [.setup_test, script]
- python deeployStateEqualityTest.py -t ./Tests/$TEST -p $PLATFORM
test_memory_level_extension:
stage: test
parallel:
matrix:
- TEST: [simpleRegression]
PLATFORM: ['QEMU-ARM', 'Siracusa', 'MemPool', 'Generic']
script:
- !reference [.setup_test, script]
- python testMemoryLevelExtension.py -t ./Tests/$TEST -p $PLATFORM
test_tiler_extension:
stage: test
parallel:
matrix:
- TEST: [simpleRegression, simpleCNN, testMatMul, testMaxPool]
PLATFORM: ['Siracusa']
script:
- !reference [.setup_test, script]
- python testTilerExtension.py -t ./Tests/$TEST -p $PLATFORM
test_tiler_extension_fails:
stage: test
parallel:
matrix:
- TEST: [simpleRegression, simpleCNN, testMatMul]
PLATFORM: ['Siracusa']
script:
- !reference [.setup_test, script]
- python testTilerExtension.py -t ./Tests/$TEST -p $PLATFORM --l1 2000 --shouldFail
test_memory_allocation_extension:
stage: test
parallel:
matrix:
- TEST: [simpleRegression, simpleCNN, miniMobileNet, miniMobileNetv2, testMatMul, testMaxPool]
PLATFORM: ['Siracusa']
script:
- !reference [.setup_test, script]
- python testTilerExtension.py -t ./Tests/$TEST -p $PLATFORM
test_deeploy_typing:
stage: test
script:
- !reference [.setup_test, script]
- python testTypes.py
test_regex_matching:
stage: test
script:
- !reference [.setup_test, script]
- python testRegexMatching.py
format_python:
stage: test
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- yapf -rpd -e "third_party/" -e "install/" -e "toolchain/" .
format_python_imports:
stage: test
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- isort --sg "**/third_party/*" --sg "install/*" --sg "toolchain/*" ./ -c -v
- autoflake -c -r --remove-all-unused-imports --ignore-init-module-imports --exclude "*/third_party/**" ./
format_c:
stage: test
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- python scripts/run_clang_format.py -e "*/third_party/*" -e "*/install/*" -e "*/toolchain/*" -ir --clang-format-executable=${LLVM_INSTALL_DIR}/bin/clang-format ./ scripts
lint_python_licenses:
stage: test
variables:
LICENSE_STRING: "SPDX-License-Identifier: Apache-2.0"
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- grep -Lr "$LICENSE_STRING" --exclude-dir="toolchain" --exclude-dir="install" --exclude-dir=".git" . --exclude-dir="third_party" --exclude-dir="TEST_*" --exclude "run_clang_format.py" | grep ".*\.py$" || [[ $? == 1 ]]
lint_c_licenses:
stage: test
variables:
LICENSE_STRING: "SPDX-License-Identifier: Apache-2.0"
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- grep -Lr "$LICENSE_STRING" --exclude-dir="toolchain" --exclude-dir="install" --exclude-dir=".git" . --exclude-dir="third_party" --exclude-dir="TEST_*" --exclude-dir="runtime" | grep ".*\.c$" || [[ $? == 1 ]]
lint_c_header_licenses:
stage: test
variables:
LICENSE_STRING: "SPDX-License-Identifier: Apache-2.0"
script:
- bash && source ~/.bashrc
- $CONDA activate dumpoci
- export PYTHONPATH=`pwd`:$PYTHONPATH
- grep -Lr "$LICENSE_STRING" --exclude-dir="toolchain" --exclude-dir="install" --exclude-dir=".git" . --exclude-dir="third_party" --exclude-dir="TEST_*" --exclude-dir="runtime" | grep ".*\.h$" || [[ $? == 1 ]]