-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
144 lines (131 loc) · 3.25 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
# Copyright 2024 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#
# Cyril Koenig <[email protected]>
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- init
- toolchains
- sw
- apps
- bitstreams
init:
stage: init
script:
- echo $PATH
- which python
- echo $CI_BUILDS_DIR
- du --max-depth=1 -h $CI_BUILDS_DIR/*
# Delete above 5 days
# - find $CI_BUILDS_DIR/* -type f -mtime +5 -delete
# - find $CI_BUILDS_DIR/* -type d -empty -delete
pages:
stage: init
needs: [ init ]
script:
- mkdocs build --verbose
when: manual
artifacts:
expire_in: 1 week
paths:
- public
cva6-sdk:
stage: toolchains
before_script:
- source scripts/setenv.sh
script:
- make hero-cva6-sdk-all
artifacts:
expire_in: 1 week
paths:
- cva6-sdk/buildroot/output
- cva6-sdk/install64
llvm:
stage: toolchains
needs: [ init, cva6-sdk ]
# This needs a bare shell with an up-to-date GZIP version
before_script:
- source scripts/setenv.sh
script:
- make hero-tc-llvm-artifacts
artifacts:
expire_in: 1 week
paths:
# Todo reduce size by removing the non used libs
- install
all-sw:
stage: sw
needs: [ init, cva6-sdk, llvm ]
before_script:
- source scripts/setenv.sh
script:
- make HERO_HOST=cva6 HERO_DEVICE=spatz_cluster hero-sw-all
- make HERO_HOST=cva6 HERO_DEVICE=occamy hero-sw-all
- make HERO_HOST=cva6 HERO_DEVICE=safety_island hero-sw-all
artifacts:
expire_in: 1 week
paths:
- sw/libllvm/lib/libLLVMSupport.a
- sw/libllvm/include
- sw/libomp/lib
- sw/libomp/include
- sw/libhero/lib/
- sw/libhero/include
# Safety island is not supported upstream. The required device openmptarget.a
# is located in branch narrn/omptarget (https://iis-git.ee.ethz.ch/cykoenig/safety-island)
safety_island_apps:
when: manual
stage: apps
needs: [ init, cva6-sdk, llvm, all-sw ]
before_script:
- source scripts/setenv.sh
- export SAFETY_ROOT=$CI_PROJECT_DIR/platforms/carfield/safety_island
script:
- make hero-safety-sw-all
- make -C apps/omp/basic/offload_benchmark/ DEVICES=safety_island
spatz_apps:
when: manual
stage: apps
needs: [ init, cva6-sdk, llvm, all-sw ]
before_script:
- source scripts/setenv.sh
script:
- make hero-spatz-sw-all
- make -C apps/omp/basic/offload_benchmark/ DEVICES=spatz_cluster
occamy_apps:
stage: apps
needs: [ init, cva6-sdk, llvm, all-sw ]
before_script:
- source scripts/setenv.sh
script:
- make hero-occamy-sw-all
- make -C apps/omp/basic/offload_benchmark/ DEVICES=occamy
occamy_bit:
stage: bitstreams
needs: [ init, cva6-sdk ]
before_script:
- source scripts/setenv.sh
script:
- make hero-occamy-bit-all-artifacts
when: manual
timeout: 12 hours
safety_bit:
stage: bitstreams
needs: [ init ]
before_script:
- source scripts/setenv.sh
script:
- make hero-safety-bit-all-artifacts
when: manual
timeout: 12 hours
spatz_bit:
stage: bitstreams
needs: [ init ]
before_script:
- source scripts/setenv.sh
script:
- make hero-spatz-bit-all-artifacts
when: manual
timeout: 12 hours