zoukankan      html  css  js  c++  java
  • 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  谢谢!

  • 相关阅读:
    Python+MySQL学习笔记(一)
    MySQL的基本操作
    2016.08.15
    使用vue为image的src动态赋值
    json对象与json字符串的转化
    js三元运算符
    uniapp vue中的短信验证码
    设计模式
    回调函数
    自定义注解
  • 原文地址:https://www.cnblogs.com/sddai/p/10365680.html
Copyright © 2011-2022 走看看