Linux-Ubuntu16安装caffe

1.参考博客

https://www.cnblogs.com/chaofn/p/10790454.html

但是有几项设置的不同。

(1)

将:
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
改为:
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial

一项,我没有找到该项,直接将m hdf5_hl hdf5改为hdf5_serial_hl hdf5_serial

(2)

/usr/local/cuda/include/host_config.h文件又引用了crt文件夹中的相同文件,我改了该文件


#error-- unsupported GNU version! gcc versions later than 6 are not supported!
改为
//#error-- unsupported GNU version! gcc versions later than 6 are not supported!

2.编译过后出现问题

nvcc fatal   : Unsupported gpu architecture 'compute_20'

参考博主

https://blog.csdn.net/fanhenghui/article/details/80092131

暂时不报错了,继续参考1中的博客。

sudo make runtest -j8

安装 pycaffe notebook 接口环境时,也会报相应的错误,错误1,2,3。

注意:我在anaconda3的python2.7环境下操作的。 否者会报一个错误。

 dynamic module does not define module export function (PyInit__caffe)

执行楼主的

sudo apt-get install python-protobuf

时不起作用,还是报错

于是执行

conda install protobuf

最终没有报错,问题解决。

 

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值