caffe2.sh 555 B

123456789101112131415161718
  1. #!/usr/bin/env sh
  2. set -e
  3. #https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile
  4. #openmpi-dev@testing libiomp-dev
  5. #http://fabiorehm.com/blog/2015/07/22/building-a-minimum-viable-phantomjs-2-docker-image/
  6. apk add build-base cmake git glog-dev gtest-dev leveldb-dev@testing openmpi-dev@testing openmpi-doc@testing lmdb-dev snappy-dev protobuf-dev protobuf-c python3-dev
  7. pip3 install future
  8. pip3 install numpy
  9. pip3 install protobuf
  10. git clone --recursive https://github.com/caffe2/caffe2.git
  11. cd caffe2
  12. make
  13. cd build
  14. make install