https://blog.csdn.net/ThomasCai001/article/details/53940430
错误提示
-
fatal error: caffe/proto/caffe.pb.h: No such file or directory
-
#include "caffe/proto/caffe.pb.h"
一、有可能是make太快造成的错误
make all -j 改为 make all 试试
二、否则就是丢失问题了
解决方法:
用protoc从caffe/src/caffe/proto/caffe.proto生成caffe.pb.h和caffe.pb.cc
thomas@thomas-All-Series:~/GOTURN-master/build$ protoc --cpp_out=/home/thomas/GOTURN-master/caffe-master/include/caffe/ caffe.proto
之后在
/home/thomas/GOTURN-master/caffe-master/include/caffe目录下新建文件夹,命名为proto,然后把编译出来的caffe.pb.h和caffe.pb.cc放进去
之后,错误消失。
附:如出现以下错误:
libcudart.so.7.5: cannot open shared object file: No such file or directory
解决方法:
64-bit:sudo ldconfig /usr/local/cuda/lib64
Check failed: error == cudaSuccess (8 vs. 0) invalid device function
该错误是由于GPU的运算能力的不匹配所导致的,在makefile。config里改
# CUDA architecture setting: going with all of them.
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50
参考:http://blog.csdn.net/xmzwlw/article/details/48270225 谢谢!