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  谢谢!

  • 相关阅读:
    hdu 1240 Asteroids!
    hdu 1253 胜利大逃亡
    hdu 1035 Robot Motion
    hdu 1181 变形课
    hdu 1548 A strange lift
    DFS Sum It Up
    hdu 3278 Catch That Cow
    hdu 1312 Red and Black
    ACM菜鸟
    eclipse新建安卓项目点击finish后窗口无法关闭
  • 原文地址:https://www.cnblogs.com/sddai/p/10365680.html
Copyright © 2011-2022 走看看