forked from stanfordhpccenter/HTR-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
165 lines (140 loc) · 3.44 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
###
### Variables
###
# Global variables (will be set in every job):
variables:
MAX_DIM: "3"
LEGION_BRANCH: "control_replication"
# LEGION_BRANCH: "master"
HTR_DIR: "$CI_PROJECT_DIR"
REALM_BACKTRACE: "1"
# TIMELIMIT: "600" # each test should take less than 10 minutes
# 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"
#.gcc8: &gcc8
# CXX: "g++-8"
#
#.clang35: &clang35
# CXX: "clang++-3.5"
#.clang38: &clang38
# CXX: "clang++-3.8"
#.clang7: &clang7
# CXX: "clang++-7"
#.clang8: &clang8
# CXX: "clang++-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"
#.terra70: &terra70
# LLVM_CONFIG: "llvm-config-7"
# TERRA_DIR: "/usr/local/terra70"
.debug: &debug
DEBUG: "1"
.release: &release
DEBUG: "0"
.openmp: &openmp
USE_OPENMP: "1"
.hdf5: &hdf5
USE_HDF: "1"
.llvm: &llvm
USE_LLVM: "1"
.cuda: &cuda
USE_CUDA: "1"
.gasnet: &gasnet
USE_GASNET: "1"
.prof: &prof
USE_PROF: "1"
###
### Setup
###
# These commands will run before each job.
before_script:
- |
if [[ "$(hostname)" = ctr-205-1.stanford.edu ]]; then
module load mpi/mpich-3.0-x86_64
export CC=gcc
export CXX=g++
export LEGION_DIR=/home/gitlab-runner/legion
export HDF_ROOT=$LEGION_DIR/language/hdf/install
export USE_GASNET=0
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LEGION_DIR/bindings/regent:$LEGION_DIR/language/hdf/install/lib"
cd $HTR_DIR
fi
# Make sure that we are running the last version of Legion
- |
cd $LEGION_DIR/language
git fetch
git checkout $LEGION_BRANCH
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
if [ $LOCAL != $REMOTE ]; then
echo "Updating Legion"
git reset --hard $REMOTE
fi
scripts/setup_env.py --llvm-version 38
cd $HTR_DIR
###
### Tags
###
.ctr-205-1: &ctr-205-1
tags:
- centos7
- ctr-205-1
###
### Docker Image
###
# Each job will run in a fresh container with this image.
#.image: &image
# image: stanfordlegion/gitlab-ci:ubuntu16.04 # i.e. https://hub.docker.com/r/stanfordlegion/gitlab-ci/
###
### Tests
###
# Unit tests that check the solver component by component.
.unitTests: &unitTests
script:
- python3 unitTests/testAll.py
.solverTests: &solverTests
script:
- NO_ATOMIC=1 make -j -C src/
- python3 solverTests/testAll.py
.quickSolverTests: &quickSolverTests
script:
- NO_ATOMIC=1 make -j -C src/
- python3 solverTests/3DPeriodic/test.py
- python3 solverTests/RecycleBoundary/test.py
- python3 solverTests/ShockTube/test.py
- python3 solverTests/VortexAdvection2D/test.py
###
### Jobs
###
# Each item below defines a job.
ctr-205-1_release_unitTests:
<<: [*ctr-205-1, *unitTests]
variables:
<<: [*release, *openmp, *hdf5]
ctr-205-1_release_solverTests:
<<: [*ctr-205-1, *solverTests]
variables:
<<: [*release, *openmp, *hdf5]
ctr-205-1_debug_unitTests:
<<: [*ctr-205-1, *unitTests]
variables:
<<: [*debug, *openmp, *hdf5]
ctr-205-1_debug_quickSolverTests:
<<: [*ctr-205-1, *quickSolverTests]
variables:
<<: [*debug, *openmp, *hdf5]