|
| 1 | +version: 2 |
| 2 | +jobs: |
| 3 | + "build-1404": |
| 4 | + working_directory: ~/TensorComprehensions |
| 5 | + resource_class: xlarge |
| 6 | + docker: |
| 7 | + - image: tensorcomprehensions/linux-trusty-gcc4.8-tapir5.0-cuda8-cudnn6-py3-conda:x86 |
| 8 | + |
| 9 | + steps: |
| 10 | + - checkout |
| 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/ATen/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/ATen/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/lib/libATen.so |
| 82 | + - third-party-install/lib/libATen.so.1 |
| 83 | + - third-party-install/lib/libTH.so |
| 84 | + - third-party-install/lib/libTH.so.0 |
| 85 | + - third-party-install/lib/libTHC.so |
| 86 | + - third-party-install/lib/libTHC.so.0 |
| 87 | + - third-party-install/lib/libTHCS.so |
| 88 | + - third-party-install/lib/libTHCS.so.1 |
| 89 | + - third-party-install/lib/libTHCUNN.so |
| 90 | + - third-party-install/lib/libTHNN.so |
| 91 | + - third-party-install/lib/libTHS.so |
| 92 | + - third-party-install/lib/libTHS.so.1 |
| 93 | + - third-party/ATen/build/src/ATen/test |
| 94 | + |
| 95 | + - save_cache: |
| 96 | + key: v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
| 97 | + paths: |
| 98 | + - third-party-install/include/isl |
| 99 | + - third-party-install/lib/libisl.so |
| 100 | + - third-party-install/lib/libisl-static.a |
| 101 | + - third-party/islpp/build/isl_test |
| 102 | + - third-party/islpp/build/isl_test_int |
| 103 | + |
| 104 | + - save_cache: |
| 105 | + key: v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1404 |
| 106 | + paths: |
| 107 | + - third-party-install/include/Halide |
| 108 | + - third-party-install/lib/libHalide.so |
| 109 | + - third-party-install/lib/libHalide.a |
| 110 | + |
| 111 | + - run: |
| 112 | + name: test_isl |
| 113 | + command: | |
| 114 | + cd ~/TensorComprehensions |
| 115 | + LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test |
| 116 | + LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test_int |
| 117 | +
|
| 118 | + - run: |
| 119 | + name: test_cpu |
| 120 | + command: | |
| 121 | + cd ~/TensorComprehensions |
| 122 | + ./test_cpu.sh |
| 123 | +
|
| 124 | + "build-1604": |
| 125 | + working_directory: ~/TensorComprehensions |
| 126 | + resource_class: xlarge |
| 127 | + docker: |
| 128 | + - image: tensorcomprehensions/linux-xenial-gcc5-tapir5.0-cuda9-cudnn7-py3:x86 |
| 129 | + |
| 130 | + steps: |
| 131 | + - checkout |
| 132 | + - run: |
| 133 | + name: check_formatting |
| 134 | + command: | |
| 135 | + cd ~/TensorComprehensions |
| 136 | + CLANG=/usr/local/clang+llvm-tapir5.0/bin/clang-format ./check_format.sh |
| 137 | +
|
| 138 | + - run: |
| 139 | + name: submodules |
| 140 | + command: | |
| 141 | + git submodule sync |
| 142 | + git submodule update --init --recursive |
| 143 | +
|
| 144 | + - restore_cache: |
| 145 | + keys: |
| 146 | + - v2-caffe2-{{ checksum ".git/modules/third-party/caffe2/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 147 | + |
| 148 | + - restore_cache: |
| 149 | + keys: |
| 150 | + - v1-aten-{{ checksum ".git/modules/third-party/ATen/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 151 | + |
| 152 | + - restore_cache: |
| 153 | + keys: |
| 154 | + - v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 155 | + |
| 156 | + - restore_cache: |
| 157 | + keys: |
| 158 | + - v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 159 | + |
| 160 | + - run: |
| 161 | + name: build |
| 162 | + command: | |
| 163 | + cd ~/TensorComprehensions |
| 164 | + export TC_DIR=$(pwd) |
| 165 | + 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 |
| 166 | +
|
| 167 | + - save_cache: |
| 168 | + key: v2-caffe2-{{ checksum ".git/modules/third-party/caffe2/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 169 | + paths: |
| 170 | + - third-party-install/bin/convert_caffe_image_db |
| 171 | + - third-party-install/bin/convert_db |
| 172 | + - third-party-install/bin/db_throughput |
| 173 | + - third-party-install/bin/make_cifar_db |
| 174 | + - third-party-install/bin/make_mnist_db |
| 175 | + - third-party-install/bin/predictor_verifier |
| 176 | + - third-party-install/bin/print_registered_core_operators |
| 177 | + - third-party-install/bin/run_plan |
| 178 | + - third-party-install/bin/speed_benchmark |
| 179 | + - third-party-install/bin/split_db |
| 180 | + - third-party-install/bin/inspect_gpus |
| 181 | + - third-party-install/bin/print_core_object_sizes |
| 182 | + - third-party-install/bin/tutorial_blob |
| 183 | + - third-party-install/caffe |
| 184 | + - third-party-install/caffe2 |
| 185 | + - third-party-install/include/caffe |
| 186 | + - third-party-install/include/caffe2 |
| 187 | + - third-party-install/lib/libcaffe2.so |
| 188 | + - third-party-install/lib/libcaffe2_gpu.so |
| 189 | + |
| 190 | + - save_cache: |
| 191 | + key: v1-aten-{{ checksum ".git/modules/third-party/ATen/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 192 | + paths: |
| 193 | + - third-party-install/share/ATen |
| 194 | + - third-party-install/include/ATen |
| 195 | + - third-party-install/include/TH |
| 196 | + - third-party-install/include/THC |
| 197 | + - third-party-install/include/THCS |
| 198 | + - third-party-install/include/THCUNN |
| 199 | + - third-party-install/include/THNN |
| 200 | + - third-party-install/include/THS |
| 201 | + - third-party-install/lib/libATen.so |
| 202 | + - third-party-install/lib/libATen.so.1 |
| 203 | + - third-party-install/lib/libTH.so |
| 204 | + - third-party-install/lib/libTH.so.0 |
| 205 | + - third-party-install/lib/libTHC.so |
| 206 | + - third-party-install/lib/libTHC.so.0 |
| 207 | + - third-party-install/lib/libTHCS.so |
| 208 | + - third-party-install/lib/libTHCS.so.1 |
| 209 | + - third-party-install/lib/libTHCUNN.so |
| 210 | + - third-party-install/lib/libTHNN.so |
| 211 | + - third-party-install/lib/libTHS.so |
| 212 | + - third-party-install/lib/libTHS.so.1 |
| 213 | + - third-party/ATen/build/src/ATen/test |
| 214 | + |
| 215 | + - save_cache: |
| 216 | + key: v1-isl-{{ checksum ".git/modules/third-party/islpp/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 217 | + paths: |
| 218 | + - third-party-install/include/isl |
| 219 | + - third-party-install/lib/libisl.so |
| 220 | + - third-party-install/lib/libisl-static.a |
| 221 | + - third-party/islpp/build/isl_test |
| 222 | + - third-party/islpp/build/isl_test_int |
| 223 | + |
| 224 | + - save_cache: |
| 225 | + key: v1-halide-{{ checksum ".git/modules/third-party/halide/HEAD" }}-{{ checksum "build.sh" }}-{{ checksum ".circleci/config.yml" }}-{{ arch }}-1604 |
| 226 | + paths: |
| 227 | + - third-party-install/include/Halide |
| 228 | + - third-party-install/lib/libHalide.so |
| 229 | + - third-party-install/lib/libHalide.a |
| 230 | + |
| 231 | + - run: |
| 232 | + name: test_isl |
| 233 | + command: | |
| 234 | + cd ~/TensorComprehensions |
| 235 | + LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test |
| 236 | + LD_PRELOAD=$(pwd)/third-party-install/lib/libisl.so ./third-party/islpp/build/isl_test_int |
| 237 | +
|
| 238 | + - run: |
| 239 | + name: test_cpu |
| 240 | + command: | |
| 241 | + cd ~/TensorComprehensions |
| 242 | + ./test_cpu.sh |
| 243 | +
|
| 244 | +workflows: |
| 245 | + version: 2 |
| 246 | + build: |
| 247 | + jobs: |
| 248 | + - "build-1404" |
| 249 | + - "build-1604" |
0 commit comments