# For CUDA >= 9.0, comment the *_20 and *_21 lines for compatibility. CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,code=sm_50 \ -gencode arch=compute_52,code=sm_52 \ -gencode arch=compute_60,code=sm_60 \ -gencode arch=compute_61,code=sm_61 \ -gencode arch=compute_61,code=compute_61
error2
1 2 3 4 5
In file included from ./include/caffe/blob.hpp:8:0, from ./include/caffe/layers/absval_layer.hpp:6, from src/caffe/layers/absval_layer.cpp:3: ./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: 没有那个文件或目录 compilation terminated.
cd /usr/lib/x86_64-linux-gnu sudo ln -s libboost_python-py35.so libboost_python3.so
pycaffe接口
这部分在官方文档的Python and/or MATLAB Caffe (optional)部分,
error1
1 2 3 4 5 6 7
Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license"for more information. >>> import caffe Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'caffe'
Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license"for more information. >>> import caffe Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/caffe/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/opt/caffe/python/caffe/pycaffe.py", line 15, in <module> import caffe.io File "/opt/caffe/python/caffe/io.py", line 2, in <module> import skimage.io ImportError: No module named 'skimage'