我编译了caffe,我知道我正在尝试编译pycaffe。当我在caffe根文件夹中运行make pycaffe时,我得到:
f@f-VirtualBox:~/caffe/caffe-master$ make pycaffe
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common.hpp:19:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layer.hpp:8,
from src/caffe/layer_factory.cpp:3:
./include/caffe/util/device_alternate.hpp:34:23: fatal error:
cublas_v2.h: No such file or directory
#include <cublas_v2.h>
^
compilation terminated.
Makefile:516: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1如何解决这个问题?
发布于 2015-07-11 00:00:00
如果您不打算使用图形处理器,您可以通过在Makefile.config中取消注释CPU_ONLY := 1来绕过此问题:
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1https://stackoverflow.com/questions/31345255
复制相似问题