-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
221 lines (191 loc) · 3.67 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
# Image hosted in a public registry -> https://hub.docker.com/r/hopobcn/pgi-ce/
image: hopobcn/fwi-pre
stages:
- Build
- UnitTests
- Tests
- PerformanceTests
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- export FWIDIR=$PWD
#
# STAGE build
#
.job_build_template: &build_tdef
stage: Build
except:
- gtc*-step*
artifacts:
when: on_success
expire_in: 1h
paths:
- build/bin/fwi
- build/bin/fwi-tests
- build/bin/fwi-data-generator
- build/bin/fwi-sched-generator
- build/lib/libfwi-core-cuda.so
dependencies: []
build_fwi:serial:
script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=gcc -DENABLE_TESTS=ON ..
- make -j
tags:
- cpu
<<: *build_tdef
build_fwi:openmp:
script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=gcc -DENABLE_TESTS=ON -DUSE_OPENMP=ON ..
- make -j
tags:
- cpu
<<: *build_tdef
build_fwi:openacc/kepler:
script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=pgcc -DENABLE_TESTS=ON -DUSE_OPENACC=ON ..
- make -j
tags:
- cpu
<<: *build_tdef
build_fwi:openacc/maxwell:
script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=pgcc -DENABLE_TESTS=ON -DUSE_OPENACC=ON ..
- make -j
tags:
- cpu
<<: *build_tdef
build_fwi:openacc_cuda/kepler:
script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=pgcc -DENABLE_TESTS=ON -DUSE_OPENACC=ON -DUSE_CUDA_KERNELS=ON ..
- make -j
tags:
- cpu
<<: *build_tdef
build_fwi:openacc_cuda/maxwell:
script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=pgcc -DENABLE_TESTS=ON -DUSE_OPENACC=ON -DUSE_CUDA_KERNELS=ON ..
- make -j
tags:
- cpu
<<: *build_tdef
#
# STAGE: unit_tests
#
.job_test_template: &test_tdef
stage: UnitTests
script:
- cd build
- bin/fwi-tests
except:
- gtc*-step*
test_fwi:serial:
tags:
- cpu
<<: *test_tdef
dependencies:
- build_fwi:serial
test_fwi:openmp:
tags:
- cpu
<<: *test_tdef
dependencies:
- build_fwi:openmp
test_fwi:openacc/kepler:
tags:
- kepler
<<: *test_tdef
dependencies:
- build_fwi:openacc/kepler
test_fwi:openacc/maxwell:
tags:
- maxwell
<<: *test_tdef
dependencies:
- build_fwi:openacc/maxwell
test_fwi:openacc_cuda/kepler:
tags:
- kepler
<<: *test_tdef
dependencies:
- build_fwi:openacc_cuda/kepler
test_fwi:openacc_cuda/maxwell:
tags:
- maxwell
<<: *test_tdef
dependencies:
- build_fwi:openacc_cuda/maxwell
#
# STAGE tests
#
.job_tests_template: &gentest_tdef
stage: Tests
script:
- cd build
- bin/fwi-sched-generator fwi_params.txt fwi_frequencies.txt
- bin/fwi-data-generator fwi_schedule.txt
except:
- gtc*-step*
test_fwi:generate_files:
<<: *gentest_tdef
tags:
- cpu
dependencies:
- build_fwi:serial
#
# STAGE performance_tests
#
.job_perftest_template: &perftest_tdef
stage: PerformanceTests
script:
- cd build
- bin/fwi fwi_schedule.txt
except:
- gtc*-step*
run_fwi:serial:
<<: *perftest_tdef
tags:
- cpu
dependencies:
- build_fwi:serial
run_fwi:openmp:
<<: *perftest_tdef
tags:
- cpu
dependencies:
- build_fwi:openmp
run_fwi:openacc/kepler:
<<: *perftest_tdef
tags:
- kepler
dependencies:
- build_fwi:openacc/kepler
run_fwi:openacc/maxwell:
<<: *perftest_tdef
tags:
- maxwell
dependencies:
- build_fwi:openacc/maxwell
run_fwi:openacc_cuda/kepler:
<<: *perftest_tdef
tags:
- kepler
dependencies:
- build_fwi:openacc_cuda/kepler
run_fwi:openacc_cuda/maxwell:
<<: *perftest_tdef
tags:
- maxwell
dependencies:
- build_fwi:openacc_cuda/maxwell