Last active
August 31, 2016 17:06
-
-
Save jsrois/85c4b33709abe8f5620c1c153c9196a3 to your computer and use it in GitHub Desktop.
Installs Caffe in the Sunai@UOC server (May2016)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/BVLC/caffe.git | |
mkdir caffe/build | |
cd caffe/build | |
# these two hacks are required | |
export LC_ALL=es_ES.UTF-8 # this locale variable is unset | |
sed -i '29iset(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")' ../CMakeLists.txt | |
cmake -DBUILD_matlab=ON .. # matlab is disabled by default | |
make all # this takes a while | |
make runtest # all green | |
cd - | |
echo "export LC_ALL=es_ES.UTF-8" >> ~/.bash_profile | |
echo "export CAFFE_ROOT=$PWD/caffe" >> ~/.bash_profile | |
echo "export PYTHONPATH=$CAFFE_ROOT/python:$PYTHONPATH" >> ~/.bash_profile | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment