python - make pycaffe -> "fatal error: cublas_v2.h: No such file or directory" -


i compiled caffe , know trying compile pycaffe. when run make pycaffe in caffe root folder, get:

f@f-virtualbox:~/caffe/caffe-master$ make pycaffe cxx src/caffe/layer_factory.cpp in file included ./include/caffe/common.hpp:19:0,                  ./include/caffe/blob.hpp:8,                  ./include/caffe/layer.hpp:8,                  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 target '.build_release/src/caffe/layer_factory.o' failed make: *** [.build_release/src/caffe/layer_factory.o] error 1 

how fix that?

if don't plan use gpu, can circumvent issue uncommenting cpu_only := 1 in makefile.config:

# cpu-only switch (uncomment build without gpu support). cpu_only := 1 

Comments