caffe GPU版本编译遇到的几个问题
1.环境:ubuntu18 desktop版
Caffe-GPU编译问题:nvcc fatal : Unsupported gpu architecture ‘compute_20’:
https://blog.csdn.net/kemgine/article/details/78781377
2.make runtest时出现错误:
[FAILED] BatchReindexLayerTest/3.TestGradient, where TypeParam = caffe::GPUDevice<double>
解决方法:
https://blog.csdn.net/m0_38082419/article/details/79379066
3.编译pycaffe成功但是import caffe出错:
from google.protobuf.internal import enum_type_wrapper
原因:依赖项没装好,此处为protobuf没装好,所以:
sudo install protobuf
并加入路径:
export PYTHONPATH=/work/project/caffe/python:$PYTHONPATH
4.Creating lmdb…
F0225 16:39:23.937786 23330 convert_mnist_data.cpp:45] Check failed: image_file Unable to open file data/mnist/train-images-idx3-ubyte
*** Check failure stack trace: ***
@ 0x7f5d0f0e8daa (unknown)
@ 0x7f5d0f0e8ce4 (unknown)
@ 0x7f5d0f0e86e6 (unknown)
@ 0x7f5d0f0eb687 (unknown)
@ 0x4045df convert_dataset()
@ 0x402943 main
@ 0x7f5d0de99ec5 (unknown)
@ 0x40298c (unknown)
@ (nil) (unknown)
Aborted (core dumped)
F0225 16:39:24.025714 23334 convert_mnist_data.cpp:45] Check failed: image_file Unable to open file data/mnist/t10k-images-idx3-ubyte
*** Check failure stack trace: ***
@ 0x7faa1af57daa (unknown)
@ 0x7faa1af57ce4 (unknown)
@ 0x7faa1af576e6 (unknown)
@ 0x7faa1af5a687 (unknown)
@ 0x4045df convert_dataset()
@ 0x402943 main
@ 0x7faa19d08ec5 (unknown)
@ 0x40298c (unknown)
@ (nil) (unknown)
Aborted (core dumped)
Done.
`
rename your mnist dataset,because you downloaded mnist dataset maybe was “t10k-images.idx3-ubyte” but it is the “t10k-images-idx3-ubyte” in create_mnist.sh,so you have to use '-'instead of ‘.’