forked from mrirecon/bart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
233 lines (188 loc) · 4.46 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
variables:
OMP_NUM_THREADS: "1"
before_script:
- apt-get update -qq && apt-get install -y -qq
- apt-get install -y -qq make git
- apt-get install -y -qq libfftw3-dev libblas-dev libpng-dev
- apt-get install -y -qq gcc liblapacke-dev
stages:
- build
- test1
- test2
Build:
image: debian:stable
stage: build
script:
- make all
artifacts:
paths:
- bart
- ./lib/
expire_in: 45 minutes
Build_Clang:
image: debian:stable
stage: build
script:
- apt-get install -y clang-11 libblocksruntime-dev
- CC=clang-11 OMP=0 make all
artifacts:
paths:
- bart
- ./lib/
expire_in: 45 minutes
Build_Static:
image: debian:stable
stage: build
script:
- apt-get install -y libgfortran-10-dev
- SLINK=1 make
artifacts:
paths:
- bart
expire_in: 45 minutes
Build_UBSan:
image: debian:testing
stage: build
script:
- UBSAN=1 ASAN=1 make all
artifacts:
paths:
- bart
- ./lib/
expire_in: 45 minutes
Build_GPU:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: build
script:
- CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make all
artifacts:
paths:
- bart
- ./lib/
expire_in: 45 minutes
Build_LTO:
image: debian:stable
stage: build
script:
- CFLAGS="-flto -O2 -g" make
artifacts:
paths:
- bart
expire_in: 45 minutes
Build_Tensorflow:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: build
script:
- apt-get install -y wget
- wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.4.0.tar.gz
- mkdir tensorflow && tar -C tensorflow -xvzf libtensorflow-gpu-linux-x86_64-2.4.0.tar.gz
- TENSORFLOW=1 TENSORFLOW_BASE=./tensorflow/ CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make
artifacts:
paths:
- bart
- ./lib/
expire_in: 45 minutes
Unit_Test:
image: debian:stable
stage: test1
script:
- AUTOCLEAN=0 make utest
needs: [Build]
dependencies:
- Build
Unit_Test_Clang:
image: debian:stable
stage: test1
script:
- apt-get install -y clang-11 libblocksruntime-dev
- AUTOCLEAN=0 CC=clang-11 OMP=0 make utest
needs: [Build_Clang]
dependencies:
- Build_Clang
Unit_Test_Valgrind:
image: debian:stable
stage: test1
script:
- apt-get install -y valgrind
- AUTOCLEAN=0 UTESTLEAK=1 make utest
needs: [Build]
dependencies:
- Build
Unit_Test_UBSan:
image: debian:testing
stage: test1
script:
- AUTOCLEAN=0 UBSAN=1 ASAN=1 make utest
needs: [Build_UBSan]
dependencies:
- Build_UBSan
Unit_Test_GPU:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: test1
script:
- AUTOCLEAN=0 CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make utest_gpu
needs: [Build_GPU]
dependencies:
- Build_GPU
Unit_Test_Tensorflow:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: test1
script:
- apt-get install -y wget
- wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.4.0.tar.gz
- mkdir tensorflow && tar -C tensorflow -xvzf libtensorflow-gpu-linux-x86_64-2.4.0.tar.gz
- TENSORFLOW=1 TENSORFLOW_BASE=./tensorflow/ CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make utest
needs: [Build_Tensorflow]
dependencies:
- Build_Tensorflow
Unit_Test_LTO:
image: debian:stable
stage: test1
script:
- CFLAGS="-flto -O2 -g" make test
needs: [Build_LTO]
dependencies:
- Build_LTO
Integration_Test:
image: debian:stable
stage: test2
script:
- AUTOCLEAN=0 make test testslow
needs: [Build]
dependencies:
- Build
Integration_Test_Python:
image: debian:stable
stage: test2
script:
- apt-get install -y python3 python3-numpy
- AUTOCLEAN=0 make pythontest
needs: [Build]
dependencies:
- Build
allow_failure: true
Integration_Test_GPU:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: test2
script:
- AUTOCLEAN=0 CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make gputest
needs: [Build_GPU]
dependencies:
- Build_GPU
Integration_Test_Clang:
image: debian:stable
stage: test2
script:
- apt-get install -y clang-11 libblocksruntime-dev
- AUTOCLEAN=0 CC=clang-11 OMP=0 make test
needs: [Build_Clang]
dependencies:
- Build_Clang
Integration_Test_UBSan:
image: debian:testing
stage: test2
script:
- AUTOCLEAN=0 UBSAN=1 ASAN=1 DEBUG=1 UBSAN_OPTIONS=print_stacktrace=1 make test
needs: [Build_UBSan]
dependencies:
- Build_UBSan