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

发布于 2022-09-11 19:13:25 字数 4582 浏览 27 评论 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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文