1、makefile.conf文件的修改:
(1)cudnn
(2)matlab路径改为:/usr/local/MATLAB/R2014a
2、make all -j 16
make test -j 16
make runtest -j 16
3 make matcaffe
4\make distribute
make pycaffe
5、gedit ~/.bashrc
执行完后修改bashrc文件,添加
export PYTHONPATH=${HOME}/caffe/distribute/python:$PYTHONPATH
export LD_LIBRARY_PATH=${HOME}/caffe/build/lib:$LD_LIBRARY_PATH
source ~/.bashrc
使得python能够找到caffe的依赖。
vim /etc/profile profile最后添加: export PYTHONPATH=/root/$CAFFE_ROOT/python:$PYTHONPATH source /etc/profile
6\进入python,import caffe,如果成功则说明一切ok,否则检查路径从头再来,甚至需要重新编译python。