forked from StanfordLegion/legion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
527 lines (490 loc) · 15.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
###
### Variables
###
# Global variables (will be set in every job):
variables:
WARN_AS_ERROR: "1"
# MAKEFLAGS: "-s"
REALM_BACKTRACE: "1"
REALM_SYNTHETIC_CORE_MAP: "" # Disable Realm thread pinning.
# Local variables (included on a case-by-case basis in each job):
.gcc48: &gcc48
CXX: "g++-4.8"
.gcc49: &gcc49
CXX: "g++-4.9"
.gcc5: &gcc5
CXX: "g++-5"
.gcc6: &gcc6
CXX: "g++-6"
.gcc7: &gcc7
CXX: "g++-7"
.clang35: &clang35
CXX: "clang++-3.5"
.clang38: &clang38
CXX: "clang++-3.8"
.terra35: &terra35
LLVM_CONFIG: "llvm-config-3.5"
TERRA_DIR: "/usr/local/terra35"
.terra38: &terra38
LLVM_CONFIG: "llvm-config-3.8"
TERRA_DIR: "/usr/local/terra38"
.debug: &debug
DEBUG: "1"
.release: &release
DEBUG: "0"
.cxx98_normal: &cxx98_normal
CC_FLAGS: "-std=c++98"
.cxx98_checks: &cxx98_checks
CC_FLAGS: "-std=c++98 -DPRIVILEGE_CHECKS -DBOUNDS_CHECKS"
.cxx98_spy: &cxx98_spy
CC_FLAGS: "-std=c++98 -DLEGION_SPY"
USE_SPY: "1"
.cxx11_normal: &cxx11_normal
CC_FLAGS: "-std=c++11"
.cxx14_normal: &cxx14_normal
CC_FLAGS: "-std=c++14"
.cxx14_checks: &cxx14_checks
CC_FLAGS: "-std=c++14 -DPRIVILEGE_CHECKS -DBOUNDS_CHECKS"
.cxx98_32bit_normal: &cxx98_32bit_normal
CC_FLAGS: "-std=c++98 -m32"
LD_FLAGS: "-m32"
MARCH: "i686"
.openmp: &openmp
USE_OPENMP: "1"
.python2: &python2
USE_PYTHON: "1"
.python3: &python3
USE_PYTHON: "1"
# FIXME: It would be nice to find a better way to do this,
# but the alternatives look scary
PYTHON_LIB: "/usr/lib/x86_64-linux-gnu/libpython3.4m.so"
PYTHON_VERSION_MAJOR: "3"
.hdf5: &hdf5
USE_HDF: "1"
.llvm: &llvm
USE_LLVM: "1"
.cuda: &cuda
USE_CUDA: "1"
.gasnet: &gasnet
USE_GASNET: "1"
.cmake: &cmake
USE_CMAKE: "1"
.legion: &legion
TEST_REGENT: "0"
.ctest: &ctest
TEST_CTEST: "1"
.regent: ®ent
TEST_LEGION_CXX: "0"
TEST_REALM: "0"
TEST_FUZZER: "0"
REGENT_JOBS: "2"
###
### Setup
###
# These commands will run before each job.
before_script:
- uname -a
- |
if [[ "$(uname)" = "Linux" ]]; then
export THREADS=$(nproc --all)
elif [[ "$(uname)" = "Darwin" ]]; then
export THREADS=$(sysctl -n hw.ncpu)
else
echo "Unknown platform. Setting THREADS to 1."
export THREADS=1
fi
# - |
# if [[ "$(uname)" = "Darwin" ]]; then
# brew update
# brew install pypy homebrew/versions/llvm35
# fi
- |
if [[ "$USE_GASNET" -eq 1 && "$(hostname)" != n0003 ]]; then
export CONDUIT=mpi
export GASNET_ROOT="$PWD/gasnet/release"
# OpenMPI:
# export LAUNCHER="mpirun -n 2 -x TERRA_PATH -x INCLUDE_PATH -x LD_LIBRARY_PATH -x LG_RT_DIR -x USE_RDIR"
# MPICH:
export LAUNCHER="mpirun -n 2"
unset WARN_AS_ERROR
git clone https://github.com/StanfordLegion/gasnet.git gasnet
make -C gasnet -j$THREADS
fi
- |
if [[ "$(hostname)" = n0003 ]]; then
source /usr/local/modules-3.2.10/init/bash
module load cmake/3.8.2
module load mpi/openmpi/1.10.4
module load cuda/8.0
if [[ "$USE_GASNET" -eq 1 ]]; then
module load gasnet/1.30.0-openmpi
export LAUNCHER="mpirun -n 2 -x TERRA_PATH -x INCLUDE_PATH -x LD_LIBRARY_PATH -x LG_RT_DIR -x USE_RDIR"
fi
fi
###
### Tags
###
.linux: &linux
tags:
- linux
.macos: &macos
tags:
- macos
# For compute-heavy tests:
.linux_compute: &linux_compute
tags:
- linux
- compute
# For performance tests, always use specific machines:
.linux_n0004: &linux_n0004
tags:
- linux
- n0004
# For CUDA tests, always use a specific machine:
.n0003: &n0003
tags:
- n0003
###
### Docker Image
###
# Each job will run in a fresh container with this image.
.image: &image
image: stanfordlegion/gitlab-ci # i.e. https://hub.docker.com/r/stanfordlegion/gitlab-ci/
.image_clang: &image_clang
image: stanfordlegion/gitlab-ci:clang # i.e. https://hub.docker.com/r/stanfordlegion/gitlab-ci/
###
### Tests
###
# Each job will run this set of tests.
.tests: &tests
script:
- ./tools/add_github_host_key.sh
- grep 'model name' /proc/cpuinfo | uniq -c
- free
- ./test.py
# Some additional tests are only run on certain configurations.
.external_tests: &external_tests
script:
- ./tools/add_github_host_key.sh
- |
if [[ -n $GITLAB_DEPLOY_KEY ]]; then
eval $(ssh-agent -s)
ssh-add <(echo "$GITLAB_DEPLOY_KEY")
fi
- ./test.py --test=external --test=private
# For performance tests, run these commands:
.perf_tests: &perf_tests
script:
- ./tools/add_github_host_key.sh
- |
if [[ -n $GITLAB_DEPLOY_KEY ]]; then
eval $(ssh-agent -s)
ssh-add <(echo "$GITLAB_DEPLOY_KEY")
fi
- git config --global user.name "Legion Testing Automation"
- git config --global user.email "[email protected]"
- export PERF_MIN_NODES=1
- export PERF_MAX_NODES=1
- ./test.py --test=perf
###
### Jobs
###
# Each item below defines a job.
# There are two tiers of tests.
# 1. Full test suite (small number of compilers).
# 2. Minimal test suite (other compilers).
# Run the full test suite on GCC 4.9 and Clang 3.5.
# Linux with GCC 4.9
# * Basic configurations
# * Release
gcc49_cxx98_release_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *release, *cxx98_normal, *legion]
gcc49_cxx98_release_cmake_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *release, *cxx98_normal, *cmake, *regent]
# * Debug (Privilege and Bounds Checks)
gcc49_cxx98_debug_checks_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_checks, *legion]
# * Spy
gcc49_cxx98_debug_spy_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_spy, *legion]
gcc49_cxx98_debug_spy_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_spy, *regent]
# * C++11
gcc49_cxx11_release_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *release, *cxx11_normal, *legion]
# * Features: one test per feature
# * OpenMP
gcc49_cxx98_debug_openmp_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *openmp, *legion]
gcc49_cxx98_debug_openmp_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *openmp, *regent]
# * Python
gcc49_cxx98_debug_python2_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *python2, *legion]
gcc49_cxx98_debug_python3_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *python3, *legion]
# * LLVM
gcc49_cxx98_debug_llvm_cmake_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *llvm, *cmake, *legion, *ctest]
gcc49_cxx98_debug_llvm_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *llvm, *regent]
# * HDF5
gcc49_cxx98_debug_hdf5_cmake_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *hdf5, *cmake, *legion, *ctest]
gcc49_cxx98_debug_hdf5_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *hdf5, *regent]
# * GASNet
gcc49_cxx98_debug_gasnet_cmake_legion:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *gasnet, *cmake, *legion, *ctest]
gcc49_cxx98_debug_gasnet_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *gasnet, *regent]
# * Integration: LLVM + GASNet
gcc49_cxx98_debug_llvm_gasnet_legion:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *llvm, *gasnet, *legion]
gcc49_cxx98_debug_llvm_gasnet_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *llvm, *gasnet, *regent]
# * Integration: HDF5 + GASNet
gcc49_cxx98_debug_hdf5_gasnet_legion:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *hdf5, *gasnet, *legion]
gcc49_cxx98_debug_hdf5_gasnet_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *hdf5, *gasnet, *regent]
### GASNet + Legion Spy disabled until issue #247 is resolved
###gcc49_cxx98_debug_spy_gasnet_regent:
### <<: [*linux_compute, *image, *tests]
### variables:
### <<: [*gcc49, *terra38, *debug, *cxx98_spy, *gasnet, *regent]
# * Different architectures
gcc49_cxx98_32bit_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_32bit_normal, *legion]
# * External tests
gcc49_cxx98_debug_external:
<<: [*linux_compute, *image, *external_tests]
variables:
<<: [*gcc49, *terra38, *debug, *cxx98_normal, *hdf5]
# Linux with Clang 3.8
# * Basic configurations
# * Release
clang38_cxx98_release_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *release, *cxx98_normal, *legion]
clang38_cxx98_release_cmake_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *release, *cxx98_normal, *cmake, *regent]
# * Debug (Privilege and Bounds Checks)
clang38_cxx98_debug_checks_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_checks, *legion]
# * Spy
clang38_cxx98_debug_spy_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_spy, *legion]
clang38_cxx98_debug_spy_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_spy, *regent]
# * C++11
clang38_cxx11_release_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *release, *cxx11_normal, *legion]
# * Features: one test per feature
# * OpenMP
clang38_cxx98_debug_openmp_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *openmp, *legion]
clang38_cxx98_debug_openmp_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *openmp, *regent]
# * Python
clang38_cxx98_debug_python2_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *python2, *legion]
clang38_cxx98_debug_python3_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *python3, *legion]
# * LLVM
clang38_cxx98_debug_llvm_cmake_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *llvm, *cmake, *legion, *ctest]
clang38_cxx98_debug_llvm_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *llvm, *regent]
# * HDF5
clang38_cxx98_debug_hdf5_cmake_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *hdf5, *cmake, *legion, *ctest]
clang38_cxx98_debug_hdf5_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *hdf5, *regent]
# * GASNet
clang38_cxx98_debug_gasnet_cmake_legion:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *gasnet, *cmake, *legion, *ctest]
clang38_cxx98_debug_gasnet_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *gasnet, *regent]
# * Integration: LLVM + GASNet
clang38_cxx98_debug_llvm_gasnet_legion:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *llvm, *gasnet, *legion]
clang38_cxx98_debug_llvm_gasnet_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *llvm, *gasnet, *regent]
# * Integration: HDF5 + GASNet
clang38_cxx98_debug_hdf5_gasnet_legion:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *hdf5, *gasnet, *legion]
clang38_cxx98_debug_hdf5_gasnet_regent:
<<: [*linux_compute, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *hdf5, *gasnet, *regent]
# * Integration: HDF5 + GASNet
# clang38_cxx98_debug_spy_gasnet_regent:
# <<: [*linux_compute, *image_clang, *tests]
# variables:
# <<: [*clang38, *terra38, *debug, *cxx98_spy, *gasnet, *regent]
# * Different architectures
clang38_cxx98_32bit_debug_legion:
<<: [*linux, *image_clang, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_32bit_normal, *legion]
# * External tests
clang38_cxx98_debug_external:
<<: [*linux_compute, *image_clang, *external_tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_normal, *hdf5]
# # macOS with Clang 3.5
# macos_clang38_cxx98_debug:
# <<: [*macos, *tests]
# variables:
# <<: [*clang38, *debug, *cxx98_normal]
# Run minimal tests on other compilers.
# Linux with GCC 4.8, 5, 6, 7
gcc48_cxx98_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc48, *terra38, *debug, *cxx98_normal, *legion]
gcc48_cxx98_debug_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc48, *terra38, *debug, *cxx98_normal, *regent]
gcc5_cxx98_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc5, *terra38, *debug, *cxx98_normal, *legion]
gcc5_cxx98_debug_normal_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc5, *terra38, *debug, *cxx98_normal, *regent]
gcc6_cxx98_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc6, *terra38, *debug, *cxx98_normal, *legion]
gcc6_cxx98_debug_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc6, *terra38, *debug, *cxx98_normal, *regent]
gcc6_cxx14_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc6, *terra38, *debug, *cxx14_checks, *legion]
gcc6_cxx14_debug_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc6, *terra38, *debug, *cxx14_normal, *regent]
gcc7_cxx14_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc7, *terra38, *debug, *cxx14_checks, *legion]
gcc7_cxx14_debug_regent:
<<: [*linux_compute, *image, *tests]
variables:
<<: [*gcc7, *terra38, *debug, *cxx14_normal, *regent]
# Linux with Clang 3.5
clang35_cxx98_debug_legion:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *debug, *cxx98_normal, *llvm, *legion]
# FIXME: Breaks on attempting to split vector-op
# clang35_cxx98_debug_regent:
# <<: [*linux_compute, *image, *tests]
# variables:
# <<: [*clang35, *terra35, *debug, *cxx98_normal, *regent]
# Performance tests:
# n0004_gcc49_cxx98_release_perf:
# <<: [*linux_n0004, *image, *perf_tests]
# variables:
# <<: [*gcc49, *terra38, *release, *cxx98_normal]
# Performance tests:
# n0004_gcc49_cxx98_release_perf:
# <<: [*linux_n0004, *image, *perf_tests]
# variables:
# <<: [*gcc49, *terra38, *release, *cxx98_normal]
# CUDA tests:
n0003_gcc48_cxx98_release_legion_cuda:
<<: [*n0003, *image, *tests]
variables:
<<: [*gcc48, *terra38, *release, *cxx98_normal, *cuda, *legion]
# n0003_gcc48_cxx98_release_regent_cuda:
# <<: [*n0003, *image, *tests]
# variables:
# <<: [*gcc48, *terra38, *release, *cxx98_normal, *cuda, *regent]