forked from zpzim/SCAMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
236 lines (223 loc) · 6.09 KB
/
.travis.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
language: cpp
jobs:
include:
- stage: "Build Checks"
name: "Fedora CUDA Build"
services:
- docker
before_install:
- sudo apt-get update
- sudo service docker restart
- sleep 5
- sudo docker pull fedora:27
- git submodule update --init --recursive
script:
- travis/setup_fedora_tests.sh 27
- stage: "Build Checks"
name: "Ubuntu CUDA Build"
os: linux
dist: xenial
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
before_install:
- sudo apt-get install make g++
install:
- CUDA_REPO_PKG=cuda-repo-ubuntu1604_10.0.130-1_amd64.deb
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/$CUDA_REPO_PKG
- sudo dpkg -i $CUDA_REPO_PKG
- sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
- rm $CUDA_REPO_PKG
- sudo apt-get -y update
- sudo apt-get install -y cuda
- git submodule update --init --recursive
- sudo ln -s /usr/local/cuda-10.0/ /usr/local/cuda
script:
- set -e
- export PATH=$PATH:/usr/local/cuda/bin
- mkdir build && cd build
# Build with clang
- cmake -D FORCE_CUDA=1 -D CMAKE_CXX_COMPILER=clang++ ..
- make -j4
- rm -rf *
# Build with gcc
- cmake -D FORCE_CUDA=1 -D CMAKE_CXX_COMPILER=g++ ..
- make -j4
- rm -rf *
# Build with Default compiler
- cmake -D FORCE_CUDA=1 ..
- make -j4
- rm -rf *
# Build client/server
- cmake -DFORCE_CUDA=1 -DCMAKE_CXX_COMPILER=g++ -DBUILD_CLIENT_SERVER=1 ..
- make -j4
- stage: "Build Checks"
name: "Ubuntu Build"
os: linux
dist: xenial
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
compiler: clang++-6.0
before_install:
- sudo apt-get install make g++
install:
- git submodule update --init --recursive
script:
- set -e
- mkdir build && cd build
# Build with clang
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j4
- rm -rf *
# Build with gcc
- cmake -D CMAKE_CXX_COMPILER=g++ ..
- make -j4
- rm -rf *
# Build with Default compiler
- cmake ..
- make -j4
- stage: "Build Checks"
name: "Ubuntu Client/Server Build"
os: linux
dist: xenial
before_install:
- sudo apt-get install make g++
install:
- git submodule update --init --recursive
script:
- set -e
- mkdir build && cd build
# Build with gcc
- cmake -DBUILD_CLIENT_SERVER=1 -D CMAKE_CXX_COMPILER=g++ ..
- make -j4
- stage: "Build Checks"
name: "Style Check"
os: linux
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
dist: xenial
compiler: clang++-6.0
script:
- bash check_format.sh clang-format-6.0
- stage: "Integration Tests"
name: "CPU Integration tests"
os: linux
dist: xenial
compiler: clang++-6.0
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
before_install:
- sudo apt-get install make g++
install:
- git submodule update --init --recursive
script:
- set -e
- mkdir build && cd build
# Build with clang
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j4
- cd ../test
- ./run_tests.sh ../build/SCAMP /dev/null "--no_gpu=true --num_cpu_workers=2"
- stage: "Integration Tests"
name: "CPU Extended Integration Tests"
os: linux
dist: xenial
compiler: clang++-6.0
language: python
python:
"3.7"
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
python3
before_install:
- sudo apt-get install make g++
install:
- git submodule update --init --recursive
- pip install numpy pandas tqdm
script:
- set -e
- mkdir build && cd build
# Build with clang
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j4
- cd ../test
- python3 ./run_tests.py --executable ../build/SCAMP --extra_args "--no_gpu --num_cpu_workers=2"
- stage: "Integration Tests"
name: "Distributed CPU Extended Integration Tests"
os: linux
dist: xenial
compiler: clang++-6.0
language: python
python:
"3.7"
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
python3
before_install:
- sudo apt-get install make g++
install:
- git submodule update --init --recursive
- pip install numpy pandas tqdm
script:
- set -e
- mkdir build && cd build
# Build with clang
- cmake -DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0 -DBUILD_CLIENT_SERVER=1 ..
- make -j4
- ./kubernetes/SCAMPserver &
- ./kubernetes/SCAMPclient &
- sleep 10
- cd ../test
- python3 ./run_tests.py --executable ../build/kubernetes/SCAMP_distributed --window_sizes 100 --extra_args "--no_gpu --num_cpu_workers=1 --distributed_tile_size=1500"
- stage: "Integration Tests"
name: "Distributed Integration tests"
os: linux
dist: xenial
compiler: g++
addons:
apt:
packages:
clang-6.0
clang-format-6.0
clang-tidy-6.0
before_install:
- sudo apt-get install make g++
install:
- git submodule update --init --recursive
script:
- set -e
- mkdir build && cd build
# Build client and server
- cmake -D CMAKE_CXX_COMPILER=g++ -DBUILD_CLIENT_SERVER=1 ..
- make -j4
- ./kubernetes/SCAMPserver &
- ./kubernetes/SCAMPclient &
- sleep 10
- cd ../test
- ./run_tests.sh ../build/kubernetes/SCAMP_distributed /dev/null
notifications:
email:
on_success: never