forked from zpzim/SCAMP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
263 lines (247 loc) · 6.61 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
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
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
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
- 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
- cmake -D FORCE_CUDA=1 -D CMAKE_CXX_COMPILER=clang++ ..
- make -j2
- rm -rf *
- cmake -D FORCE_CUDA=1 -D CMAKE_CXX_COMPILER=g++ ..
- make -j2
- rm -rf *
- cmake -D FORCE_CUDA=1 ..
- make -j2
- rm -rf *
- cmake -DFORCE_CUDA=1 -DCMAKE_CXX_COMPILER=g++ -DBUILD_CLIENT_SERVER=1 ..
- make -j2
- 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++
script:
- set -e
- mkdir build && cd build
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j2
- rm -rf *
- cmake -D CMAKE_CXX_COMPILER=g++ ..
- make -j2
- rm -rf *
- cmake ..
- make -j2
- stage: Build Checks
name: Ubuntu Client/Server Build
os: linux
dist: xenial
before_install:
- sudo apt-get install make g++
script:
- set -e
- mkdir build && cd build
- cmake -DBUILD_CLIENT_SERVER=1 -DCMAKE_CXX_COMPILER=g++ ..
- make -j2
- stage: Build Checks
name: Mac CUDA Build
os: osx
osx_image: xcode9.4
language: shell
install:
- wget -q http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_mac.dmg
- hdiutil mount cuda_10.2.89_mac.dmg
- sudo /Volumes/CUDAMacOSXInstaller/CUDAMacOSXInstaller.app/Contents/MacOS/CUDAMacOSXInstaller
--no-window --accept-eula --install-package=cuda-toolkit
- export PATH="/usr/local/cuda/bin:$PATH"
- nvcc --version
script:
- mkdir build && cd build
- cmake -DFORCE_CUDA=1 ..
- make -j2
- stage: Build Checks
name: Windows Build
os: windows
language: cpp
script:
- set -e
- mkdir build && cd build
- cmake ..
- cmake --build . --config Release
- stage: Build Checks
name: Windows pip build and pyscamp test
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- pip install numpy
script:
- set -e
- pip install .
- python test/test_pyscamp.py
- stage: Build Checks
name: Mac pip build and pyscamp test
os: osx
osx_image: xcode11.2
language: shell
before_install:
- pip install numpy
script:
- set -e
- pip install .
- python test/test_pyscamp.py
- stage: Build Checks
name: Linux pip build and pyscamp test
os: linux
language: python
python: 3.8.0
before_install:
pip install numpy
script:
- set -e
- pip install .
- python test/test_pyscamp.py
- 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++
script:
- set -e
- mkdir build && cd build
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j2
- 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:
- pip install numpy pandas tqdm
script:
- set -e
- mkdir build && cd build
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j2
- 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:
- pip install numpy pandas tqdm
script:
- set -e
- mkdir build && cd build
- cmake -DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0 -DBUILD_CLIENT_SERVER=1
..
- make -j2
- "./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++
script:
- set -e
- mkdir build && cd build
- cmake -D CMAKE_CXX_COMPILER=g++ -DBUILD_CLIENT_SERVER=1 ..
- make -j2
- "./kubernetes/SCAMPserver &"
- "./kubernetes/SCAMPclient &"
- sleep 10
- cd ../test
- "./run_tests.sh ../build/kubernetes/SCAMP_distributed /dev/null"
- stage: Deploy
name: "Deploy pypi sdist"
os: linux
dist: xenial
language: python
python: '3.7'
install: skip
script: skip
deploy:
provider: pypi
skip_existing: true
user: "__token__"
notifications:
email:
on_success: never