cp Makefile.config.example Makefile.config
# Adjust Makefile.config (for example, if using Anaconda Python)
make all
make test
make runtest
编译的时候如果要引入cuDNN加速,你需要在文件Makefile.config中解注释USE_CUDNN := 1。
如果你的电脑上没有 GPU,你应该使用CPU-only模式的Caffe,请在文件Makefile.config中解注释CPU_ONLY := 1
。
要编译 Python 和 MATLAB 包,请独立的执行make pycaffe和
make matcaffe
. 请务必首先在Makefile.config中配置你的MATLAB 和 Python路径!