|
1 | 1 | version: 2 |
2 | 2 | jobs: |
3 | | - "build-1404": |
| 3 | + "build-1604": |
4 | 4 | working_directory: ~/TensorComprehensions |
5 | 5 | resource_class: xlarge |
6 | 6 | docker: |
7 | | - - image: tensorcomprehensions/linux-trusty-gcc4.9-cuda8-cudnn7-py3-conda:1 |
| 7 | + - image: tensorcomprehensions/tc-cuda9.0-cudnn7.1-ubuntu16.04-devel |
8 | 8 |
|
9 | 9 | steps: |
10 | 10 | - checkout |
11 | 11 | - run: |
12 | | - name: check_formatting |
13 | | - command: | |
14 | | - cd ~/TensorComprehensions |
15 | | - CLANG=/usr/local/clang+llvm-tapir5.0/bin/clang-format ./check_format.sh |
16 | | -
|
17 | | - - run: |
18 | | - name: submodules |
19 | | - command: | |
20 | | - git submodule sync |
21 | | - git submodule update --init --recursive |
22 | | -
|
23 | | - - restore_cache: |
24 | | - keys: |
25 | | - - v2-caffe2-{{ checksum ".git/modules/third-party/caffe2/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
26 | | - |
27 | | - - restore_cache: |
28 | | - keys: |
29 | | - - v1-aten-{{ checksum ".git/modules/third-party/pytorch/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
30 | | - |
31 | | - - restore_cache: |
32 | | - keys: |
33 | | - - v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
34 | | - |
35 | | - - restore_cache: |
36 | | - keys: |
37 | | - - v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
38 | | - |
39 | | - - run: |
40 | | - name: build |
41 | | - command: | |
42 | | - cd ~/TensorComprehensions |
43 | | - export TC_DIR=$(pwd) |
44 | | - VERBOSE=1 USE_CONTBUILD_CACHE=1 CORES=16 CMAKE_VERSION="cmake" ATEN_NO_CUDA=0 CLANG_PREFIX="`/usr/local/clang+llvm-tapir5.0/bin/llvm-config --prefix`" ./build.sh --all |
45 | | -
|
46 | | - - save_cache: |
47 | | - key: v2-caffe2-{{ checksum ".git/modules/third-party/caffe2/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
48 | | - paths: |
49 | | - - third-party-install/bin/convert_caffe_image_db |
50 | | - - third-party-install/bin/convert_db |
51 | | - - third-party-install/bin/db_throughput |
52 | | - - third-party-install/bin/make_cifar_db |
53 | | - - third-party-install/bin/make_mnist_db |
54 | | - - third-party-install/bin/predictor_verifier |
55 | | - - third-party-install/bin/print_registered_core_operators |
56 | | - - third-party-install/bin/run_plan |
57 | | - - third-party-install/bin/speed_benchmark |
58 | | - - third-party-install/bin/split_db |
59 | | - - third-party-install/bin/inspect_gpus |
60 | | - - third-party-install/bin/print_core_object_sizes |
61 | | - - third-party-install/bin/tutorial_blob |
62 | | - - third-party-install/caffe |
63 | | - - third-party-install/caffe2 |
64 | | - - third-party-install/include/caffe |
65 | | - - third-party-install/include/caffe2 |
66 | | - - third-party-install/lib/libcaffe2.so |
67 | | - - third-party-install/lib/libcaffe2_gpu.so |
68 | | - - third-party/caffe2/build_host_protoc |
69 | | - |
70 | | - - save_cache: |
71 | | - key: v1-aten-{{ checksum ".git/modules/third-party/pytorch/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
72 | | - paths: |
73 | | - - third-party-install/share/ATen |
74 | | - - third-party-install/include/ATen |
75 | | - - third-party-install/include/TH |
76 | | - - third-party-install/include/THC |
77 | | - - third-party-install/include/THCS |
78 | | - - third-party-install/include/THCUNN |
79 | | - - third-party-install/include/THNN |
80 | | - - third-party-install/include/THS |
81 | | - - third-party-install/include/cpuinfo.h |
82 | | - - third-party-install/lib/libATen.so |
83 | | - - third-party/pytorch/aten/build/src/ATen/test/ |
84 | | - |
85 | | - - save_cache: |
86 | | - key: v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
87 | | - paths: |
88 | | - - third-party-install/include/isl |
89 | | - - third-party-install/lib/libisl.so |
90 | | - - third-party-install/lib/libisl-static.a |
91 | | - - third-party/islpp/build/isl_test |
92 | | - - third-party/islpp/build/isl_test_int |
93 | | - |
94 | | - - save_cache: |
95 | | - key: v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
96 | | - paths: |
97 | | - - third-party-install/include/HalideBuffer.h |
98 | | - - third-party-install/include/Halide.h |
99 | | - - third-party-install/include/HalideRuntimeCuda.h |
100 | | - - third-party-install/include/HalideRuntime.h |
101 | | - - third-party-install/include/HalideRuntimeHexagonHost.h |
102 | | - - third-party-install/include/HalideRuntimeMetal.h |
103 | | - - third-party-install/include/HalideRuntimeOpenCL.h |
104 | | - - third-party-install/include/HalideRuntimeOpenGLCompute.h |
105 | | - - third-party-install/include/HalideRuntimeOpenGL.h |
106 | | - - third-party-install/include/HalideRuntimeQurt.h |
107 | | - - third-party-install/lib/libHalide.so |
108 | | - - third-party-install/lib/libHalide.a |
109 | | - |
110 | | - - run: |
111 | | - name: test_isl |
| 12 | + name: conda_tapir_halide |
112 | 13 | command: | |
113 | | - cd ~/TensorComprehensions |
114 | | - LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test |
115 | | - LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test_int |
116 | | -
|
117 | | - - run: |
118 | | - name: test_cpu |
119 | | - command: | |
120 | | - cd ~/TensorComprehensions |
121 | | - ./test_cpu.sh |
| 14 | + . /opt/conda/anaconda/bin/activate |
| 15 | + source activate tc_build |
| 16 | + conda install -y -c nicolasvasilache llvm-tapir50 halide |
122 | 17 |
|
123 | | - "build-1604": |
124 | | - working_directory: ~/TensorComprehensions |
125 | | - resource_class: xlarge |
126 | | - docker: |
127 | | - - image: tensorcomprehensions/linux-xenial-gcc5-cuda9-cudnn7-py3:1 |
128 | | - |
129 | | - steps: |
130 | | - - checkout |
131 | 18 | - run: |
132 | 19 | name: check_formatting |
133 | 20 | command: | |
| 21 | + . /opt/conda/anaconda/bin/activate |
| 22 | + source activate tc_build |
134 | 23 | cd ~/TensorComprehensions |
135 | | - CLANG=/usr/local/clang+llvm-tapir5.0/bin/clang-format ./check_format.sh |
| 24 | + CLANG=${CONDA_PREFIX}/bin/clang-format ./check_format.sh |
136 | 25 |
|
137 | 26 | - run: |
138 | 27 | name: submodules |
139 | 28 | command: | |
140 | 29 | git submodule sync |
141 | 30 | git submodule update --init --recursive |
142 | 31 |
|
143 | | - - restore_cache: |
144 | | - keys: |
145 | | - - v2-caffe2-{{ checksum ".git/modules/third-party/caffe2/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
146 | | - |
147 | | - - restore_cache: |
148 | | - keys: |
149 | | - - v1-aten-{{ checksum ".git/modules/third-party/pytorch/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
150 | | - |
151 | | - - restore_cache: |
152 | | - keys: |
153 | | - - v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
154 | | - |
155 | | - - restore_cache: |
156 | | - keys: |
157 | | - - v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
158 | | - |
159 | 32 | - run: |
160 | 33 | name: build |
161 | 34 | command: | |
| 35 | + . /opt/conda/anaconda/bin/activate |
| 36 | + source activate tc_build |
162 | 37 | cd ~/TensorComprehensions |
163 | 38 | export TC_DIR=$(pwd) |
164 | | - VERBOSE=1 USE_CONTBUILD_CACHE=1 CORES=16 CMAKE_VERSION="cmake" ATEN_NO_CUDA=0 CLANG_PREFIX="`/usr/local/clang+llvm-tapir5.0/bin/llvm-config --prefix`" BUILD_TYPE=Release ./build.sh --all |
165 | | -
|
166 | | - - save_cache: |
167 | | - key: v2-caffe2-{{ checksum ".git/modules/third-party/caffe2/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
168 | | - paths: |
169 | | - - third-party-install/bin/convert_caffe_image_db |
170 | | - - third-party-install/bin/convert_db |
171 | | - - third-party-install/bin/db_throughput |
172 | | - - third-party-install/bin/make_cifar_db |
173 | | - - third-party-install/bin/make_mnist_db |
174 | | - - third-party-install/bin/predictor_verifier |
175 | | - - third-party-install/bin/print_registered_core_operators |
176 | | - - third-party-install/bin/run_plan |
177 | | - - third-party-install/bin/speed_benchmark |
178 | | - - third-party-install/bin/split_db |
179 | | - - third-party-install/bin/inspect_gpus |
180 | | - - third-party-install/bin/print_core_object_sizes |
181 | | - - third-party-install/bin/tutorial_blob |
182 | | - - third-party-install/caffe |
183 | | - - third-party-install/caffe2 |
184 | | - - third-party-install/include/caffe |
185 | | - - third-party-install/include/caffe2 |
186 | | - - third-party-install/lib/libcaffe2.so |
187 | | - - third-party-install/lib/libcaffe2_gpu.so |
188 | | - |
189 | | - - save_cache: |
190 | | - key: v1-aten-{{ checksum ".git/modules/third-party/pytorch/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
191 | | - paths: |
192 | | - - third-party-install/share/ATen |
193 | | - - third-party-install/include/ATen |
194 | | - - third-party-install/include/TH |
195 | | - - third-party-install/include/THC |
196 | | - - third-party-install/include/THCS |
197 | | - - third-party-install/include/THCUNN |
198 | | - - third-party-install/include/THNN |
199 | | - - third-party-install/include/THS |
200 | | - - third-party-install/include/cpuinfo.h |
201 | | - - third-party-install/lib/libATen.so |
202 | | - - third-party/pytorch/aten/build/src/ATen/test/ |
203 | | - |
204 | | - - save_cache: |
205 | | - key: v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
206 | | - paths: |
207 | | - - third-party-install/include/isl |
208 | | - - third-party-install/lib/libisl.so |
209 | | - - third-party-install/lib/libisl-static.a |
210 | | - - third-party/islpp/build/isl_test |
211 | | - - third-party/islpp/build/isl_test_int |
212 | | - |
213 | | - - save_cache: |
214 | | - key: v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
215 | | - paths: |
216 | | - - third-party-install/include/HalideBuffer.h |
217 | | - - third-party-install/include/Halide.h |
218 | | - - third-party-install/include/HalideRuntimeCuda.h |
219 | | - - third-party-install/include/HalideRuntime.h |
220 | | - - third-party-install/include/HalideRuntimeHexagonHost.h |
221 | | - - third-party-install/include/HalideRuntimeMetal.h |
222 | | - - third-party-install/include/HalideRuntimeOpenCL.h |
223 | | - - third-party-install/include/HalideRuntimeOpenGLCompute.h |
224 | | - - third-party-install/include/HalideRuntimeOpenGL.h |
225 | | - - third-party-install/include/HalideRuntimeQurt.h |
226 | | - - third-party-install/lib/libHalide.so |
227 | | - - third-party-install/lib/libHalide.a |
228 | | - |
229 | | - - run: |
230 | | - name: test_isl |
231 | | - command: | |
232 | | - cd ~/TensorComprehensions |
233 | | - LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test |
234 | | - LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test_int |
| 39 | + VERBOSE=1 WITH_CUDA=OFF CLANG_PREFIX="`${CONDA_PREFIX}/bin/llvm-config --prefix`" BUILD_TYPE=Release ./build.sh |
235 | 40 |
|
236 | 41 | - run: |
237 | 42 | name: test_cpu |
238 | 43 | command: | |
| 44 | + . /opt/conda/anaconda/bin/activate |
| 45 | + source activate tc_build |
239 | 46 | cd ~/TensorComprehensions |
240 | 47 | ./test_cpu.sh |
241 | 48 |
|
242 | 49 | workflows: |
243 | 50 | version: 2 |
244 | 51 | build: |
245 | 52 | jobs: |
246 | | - - "build-1404" |
247 | 53 | - "build-1604" |
0 commit comments