caffe icon indicating copy to clipboard operation
caffe copied to clipboard

NVCC src/caffe/layers/hdf5_output_layer.cu,hdf5_output_layer.o error, Using cuda6.5

Open xxw345 opened this issue 11 years ago • 2 comments

Just fyi, I am compiling Caffe on cluster environment, I don't have root permission. When using make all, it run smoothly till the line below:

NVCC src/caffe/layers/hdf5_output_layer.cu /util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/cuda/6.5/include/cuda_runtime.h(1232): warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/cuda/6.5/include/cuda_runtime.h(1232): warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/cuda/6.5/include/cuda_runtime.h(1232): warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/cuda/6.5/include/cuda_runtime.h(1232): warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

At end of source: warning: routine is both "inline" and "noinline"

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored

/util/academic/python/anaconda/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

At end of source: warning: routine is both "inline" and "noinline"

At end of source: warning: routine is both "inline" and "noinline"

/user/xiangxui/.usr/local/include/google/protobuf/arena.h:909:38: error: conflicting declaration ‘const google::protobuf::internal::integral_constant<bool, ((sizeof (DestructorSkippable(static_cast<const T*>(0))) == sizeof (char)) || (google::protobuf::internal::has_trivial_destructor::value == true))> google::protobuf::Arena::is_destructor_skippable::value’ Arena::is_destructor_skippable::value = ^ /user/xiangxui/.usr/local/include/google/protobuf/arena.h:589:19: error: ‘google::protobuf::Arena::is_destructor_skippable::value’ has a previous declaration as ‘const type google::protobuf::Arena::is_destructor_skippable::value’ static const type value; ^ /user/xiangxui/.usr/local/include/google/protobuf/arena.h:909:38: error: declaration of ‘const type google::protobuf::Arena::is_destructor_skippable::value’ outside of class is not definition [-fpermissive] Arena::is_destructor_skippable::value = ^ make: *** [.build_release/cuda/src/caffe/layers/hdf5_output_layer.o] Error 1

FYI I crack this error by #787 by Yangqing Jia.

The final version of arena.h is https://github.com/xfxyjwf/protobuf/commit/494716a682ef854168e92231a3cdcc89d587d9b9

xxw345 avatar Oct 07 '15 03:10 xxw345

@xxw345 Hi there! I am having the same error while I am using your mentioned file! Do have any other idea?

sepidehhosseinzadeh avatar Apr 13 '16 00:04 sepidehhosseinzadeh