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.youkuaiyun.com/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
最终没有报错,问题解决。