0

问题描述

ubuntu16.04+caffe+cuda+python2.7配置python接口出错,caffe已经配置完毕并且测试成功
runtest测试成功
图片描述

根据教程
图片描述

配置python接口时出现问题,
图片描述

问题出现的环境背景及自己尝试过哪些方法

尝试过再caffe 目录下安装glog 和 boost 都未能解决问题

相关代码

ease (Use -Wno-deprecated-gpu-targets to suppress warning).
NVCC src/caffe/solvers/adagrad_solver.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
NVCC src/caffe/util/math_functions.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
NVCC src/caffe/util/im2col.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from src/caffe/solvers/rmsprop_solver.cu:1:0:
./include/caffe/util/math_functions.hpp:7:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
In file included from src/caffe/solvers/adadelta_solver.cu:1:0:
./include/caffe/util/math_functions.hpp:7:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
In file included from src/caffe/solvers/nesterov_solver.cu:1:0:
./include/caffe/util/math_functions.hpp:7:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
In file included from src/caffe/solvers/adagrad_solver.cu:1:0:
./include/caffe/util/math_functions.hpp:7:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
In file included from src/caffe/solvers/adam_solver.cu:1:0:
./include/caffe/util/math_functions.hpp:7:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
In file included from src/caffe/solvers/sgd_solver.cu:1:0:
./include/caffe/util/math_functions.hpp:7:26: fatal error: glog/logging.h: No such file or directory
Makefile:604: recipe for target '.build_release/cuda/src/caffe/solvers/rmsprop_solver.o' failed
compilation terminated.
make: * [.build_release/cuda/src/caffe/solvers/rmsprop_solver.o] Error 1
make: * Waiting for unfinished jobs....
Makefile:604: recipe for target '.build_release/cuda/src/caffe/solvers/adadelta_solver.o' failed
make: * [.build_release/cuda/src/caffe/solvers/adadelta_solver.o] Error 1
Makefile:604: recipe for target '.build_release/cuda/src/caffe/solvers/adagrad_solver.o' failed
make: * [.build_release/cuda/src/caffe/solvers/adagrad_solver.o] Error 1
Makefile:604: recipe for target '.build_release/cuda/src/caffe/solvers/nesterov_solver.o' failed
make: * [.build_release/cuda/src/caffe/solvers/nesterov_solver.o] Error 1
Makefile:604: recipe for target '.build_release/cuda/src/caffe/solvers/adam_solver.o' failed
make: * [.build_release/cuda/src/caffe/solvers/adam_solver.o] Error 1
Makefile:604: recipe for target '.build_release/cuda/src/caffe/solvers/sgd_solver.o' failed
make: * [.build_release/cuda/src/caffe/solvers/sgd_solver.o] Error 1
In file included from src/caffe/util/im2col.cu:3:0:
./include/caffe/common.hpp:4:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
Makefile:604: recipe for target '.build_release/cuda/src/caffe/util/im2col.o' failed
make: * [.build_release/cuda/src/caffe/util/im2col.o] Error 1
In file included from src/caffe/util/math_functions.cu:8:0:
./include/caffe/common.hpp:4:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
Makefile:604: recipe for target '.build_release/cuda/src/caffe/util/math_functions.o' failed
make: * [.build_release/cuda/src/caffe/util/math_functions.o] Error 1

你期待的结果是什么?实际看到的错误信息又是什么?

2019-04-17 提问
1

glog和boost的库路径有没有加入到环境变量?

wangwang · 4月18日

展开评论
0 个回答

撰写答案

推广链接