caffe.pb.h丢失问题解决方法

 https://blog.csdn.net/ThomasCai001/article/details/53940430

 

错误提示

 

  1.  
    fatal error: caffe/proto/caffe.pb.h: No such file or directory
  2.  
    #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  谢谢!

转载于:https://www.cnblogs.com/sddai/p/10365680.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值