Skip to content

Commit

Permalink
Merge pull request #1993 from IsaacYangSLA/fix/caffe-deps
Browse files Browse the repository at this point in the history
Update CI scripts to add some new deps to Caffe build.
  • Loading branch information
IsaacYangSLA authored Mar 16, 2018
2 parents 2d7852f + 0348b1b commit 5aceada
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
global:
- PROTOBUF_ROOT=~/protobuf
- CAFFE_ROOT=~/caffe
- CAFFE_TAG=v0.16.4
- TORCH_ROOT=~/torch
- OMP_NUM_THREADS=1
- OPENBLAS_MAIN_FREE=1
Expand Down Expand Up @@ -86,13 +87,15 @@ addons:
- libboost-python-dev
- libboost-system-dev
- libboost-thread-dev
- libboost-regex-dev
- libgflags-dev
- libgoogle-glog-dev
- libhdf5-serial-dev
- libleveldb-dev
- liblmdb-dev
- libopenblas-dev
- libopencv-dev
- libturbojpeg
- libsnappy-dev
- python-dev
- python-flask
Expand Down Expand Up @@ -124,6 +127,7 @@ install:
- echo "backend:agg" > ~/.config/matplotlib/matplotlibrc
- ./scripts/travis/install-protobuf.sh $PROTOBUF_ROOT
- ./scripts/travis/install-caffe.sh $CAFFE_ROOT
- pip install tornado==4.5.3
- if [ "$DIGITS_TEST_FRAMEWORK" == "torch" ]; then travis_wait ./scripts/travis/install-torch.sh $TORCH_ROOT; else unset TORCH_ROOT; fi
- pip install -r ./requirements.txt --force-reinstall
- if [ "$DIGITS_TEST_FRAMEWORK" == "tensorflow" ]; then travis_wait ./scripts/travis/install-tensorflow.sh; fi
Expand Down
11 changes: 8 additions & 3 deletions scripts/travis/install-caffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ set -x
git clone "https://github.com/${CAFFE_FORK}/caffe.git" "$INSTALL_DIR" $CAFFE_BRANCH --depth 1

# configure project
mkdir -p "${INSTALL_DIR}/build"
cd "${INSTALL_DIR}/build"
cmake .. -DCPU_ONLY=On -DBLAS=Open
cd "$INSTALL_DIR"
if [ "$CAFFE_FORK" == "NVIDIA" ]; then
git fetch --all --tags --prune
git checkout "tags/$CAFFE_TAG"
fi
mkdir -p build
cd build
cmake .. -DCPU_ONLY=1 -DBLAS=Open

# build
make --jobs="$(nproc)"
Expand Down

0 comments on commit 5aceada

Please sign in to comment.