forked from StanfordLegion/legion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
123 lines (117 loc) · 4.19 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
# Variables:
# - Global:
variables:
LLVM_CONFIG: "llvm-config-3.5"
REALM_SYNTHETIC_CORE_MAP: "" # Disable Realm thread pinning.
# - Local:
.gcc49: &gcc49
CXX: "g++-4.9"
.clang35: &clang35
CXX: "clang++-3.5"
.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"
TEST_SPY: "1"
.cxx11_normal: &cxx11_normal
CC_FLAGS: "-std=c++11"
# This set of commands will run before each job.
before_script:
- uname -a
- export THREADS=$(nproc --all)
- |
if [[ "$USE_GASNET" -eq 1 ]]; then
export CONDUIT=mpi
export GASNET_ROOT="$PWD/gasnet/release"
export LAUNCHER="mpirun -n 2 -x TERRA_PATH -x INCLUDE_PATH -x LD_LIBRARY_PATH -x LG_RT_DIR"
unset WARN_AS_ERROR
git clone https://github.com/StanfordLegion/gasnet.git gasnet
pushd gasnet
make -j$THREADS
popd
fi
# Define Docker image to use.
.image: &image
image: stanfordlegion/gitlab-ci # i.e. https://hub.docker.com/r/stanfordlegion/gitlab-ci/
# Define tests to run.
.tests: &tests
script:
- ./language/travis.py
- |
make -s -C tutorial/00_hello_world LG_RT_DIR=../../runtime clean
make -s -C tutorial/00_hello_world LG_RT_DIR=../../runtime -j$THREADS
tutorial/00_hello_world/hello_world -logfile out_%.log
make -s -C tutorial/01_tasks_and_futures LG_RT_DIR=../../runtime
tutorial/01_tasks_and_futures/tasks_and_futures -logfile out_%.log
make -s -C tutorial/02_index_tasks LG_RT_DIR=../../runtime
tutorial/02_index_tasks/index_tasks -logfile out_%.log
make -s -C tutorial/03_global_vars LG_RT_DIR=../../runtime
tutorial/03_global_vars/global_vars -logfile out_%.log
make -s -C tutorial/04_logical_regions LG_RT_DIR=../../runtime
tutorial/04_logical_regions/logical_regions -logfile out_%.log
make -s -C tutorial/05_physical_regions LG_RT_DIR=../../runtime
tutorial/05_physical_regions/physical_regions -logfile out_%.log
make -s -C tutorial/06_privileges LG_RT_DIR=../../runtime
tutorial/06_privileges/privileges -logfile out_%.log
make -s -C tutorial/07_partitioning LG_RT_DIR=../../runtime
tutorial/07_partitioning/partitioning -logfile out_%.log
make -s -C tutorial/08_multiple_partitions LG_RT_DIR=../../runtime
tutorial/08_multiple_partitions/multiple_partitions -logfile out_%.log
make -s -C tutorial/09_custom_mapper LG_RT_DIR=../../runtime
tutorial/09_custom_mapper/custom_mapper -logfile out_%.log
- |
make -s -C examples/full_circuit LG_RT_DIR=../../runtime
examples/full_circuit/ckt_sim -logfile out_%.log
make -s -C examples/full_ghost LG_RT_DIR=../../runtime
examples/full_ghost/ghost -ll:cpu 4 -logfile out_%.log
- |
if [[ "$DEBUG" -eq 0 ]]; then
make -s -C test/realm LG_RT_DIR=../../runtime DEBUG=0 SHARED_LOWLEVEL=0 USE_CUDA=0 USE_GASNET=0 clean
make -s -C test/realm LG_RT_DIR=../../runtime DEBUG=0 SHARED_LOWLEVEL=0 USE_CUDA=0 USE_GASNET=0 run_all
fi
- |
if [[ "$DEBUG" -eq 0 ]]; then
make -s -C test/performance/realm LG_RT_DIR=../../../runtime SHARED_LOWLEVEL=0 clean_all
make -s -C test/performance/realm LG_RT_DIR=../../../runtime SHARED_LOWLEVEL=0 run_all
fi
# Define the list of jobs to run.
# - GCC
gcc_cxx98_release:
<<: [*image, *tests]
variables:
<<: [*gcc49, *release, *cxx98_normal]
gcc_cxx98_debug_checks:
<<: [*image, *tests]
variables:
<<: [*gcc49, *debug, *cxx98_checks]
gcc_cxx98_debug_spy:
<<: [*image, *tests]
variables:
<<: [*gcc49, *debug, *cxx98_spy]
gcc_cxx11_release:
<<: [*image, *tests]
variables:
<<: [*gcc49, *release, *cxx11_normal]
# - Clang
clang_cxx98_release:
<<: [*image, *tests]
variables:
<<: [*clang35, *release, *cxx98_normal]
clang_cxx98_debug_checks:
<<: [*image, *tests]
variables:
<<: [*clang35, *debug, *cxx98_checks]
clang_cxx98_debug_spy:
<<: [*image, *tests]
variables:
<<: [*clang35, *debug, *cxx98_spy]
clang_cxx11_release:
<<: [*image, *tests]
variables:
<<: [*clang35, *release, *cxx11_normal]