caffe编译过程出现问题,望大神指点

user@user-All-Series:~/caffe$ make -j4
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/solvers/adam_solver.cpp
CXX src/caffe/solvers/nesterov_solver.cpp
CXX src/caffe/solvers/rmsprop_solver.cpp
In file included from /usr/local/cuda/include/cuda_runtime.h:78:0,
                 from ./include/caffe/util/device_alternate.hpp:36,
                 from ./include/caffe/common.hpp:19,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/net.hpp:10,
                 from ./include/caffe/solver.hpp:7,
                 from ./include/caffe/sgd_solvers.hpp:7,
                 from src/caffe/solvers/adam_solver.cpp:3:
/usr/local/cuda/include/host_config.h:50:0: error: unterminated #if
 #if !defined(__HOST_CONFIG_H__)
 ^
Makefile:581: recipe for target '.build_release/src/caffe/solvers/adam_solver.o' failed
make: *** [.build_release/src/caffe/solvers/adam_solver.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/local/cuda/include/cuda_runtime.h:78:0,
                 from ./include/caffe/util/device_alternate.hpp:36,
                 from ./include/caffe/common.hpp:19,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/net.hpp:10,
                 from ./include/caffe/solver.hpp:7,
                 from ./include/caffe/sgd_solvers.hpp:7,
                 from src/caffe/solvers/nesterov_solver.cpp:3:
/usr/local/cuda/include/host_config.h:50:0: error: unterminated #if
 #if !defined(__HOST_CONFIG_H__)
 ^
Makefile:581: recipe for target '.build_release/src/caffe/solvers/nesterov_solver.o' failed
make: *** [.build_release/src/caffe/solvers/nesterov_solver.o] Error 1
In file included from /usr/local/cuda/include/cuda_runtime.h:78:0,
                 from ./include/caffe/util/device_alternate.hpp:36,
                 from ./include/caffe/common.hpp:19,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/net.hpp:10,
                 from ./include/caffe/solver.hpp:7,
                 from ./include/caffe/sgd_solvers.hpp:7,
                 from src/caffe/solvers/rmsprop_solver.cpp:3:
/usr/local/cuda/include/host_config.h:50:0: error: unterminated #if
 #if !defined(__HOST_CONFIG_H__)
 ^
Makefile:581: recipe for target '.build_release/src/caffe/solvers/rmsprop_solver.o' failed
make: *** [.build_release/src/caffe/solvers/rmsprop_solver.o] Error 1

 
已邀请:

alex68 - 一般不扯淡~

赞同来自:

你的cuda安装成功了吗?sample能运行成功吗

要回复问题请先登录注册