cannot build fast rcnn on gpu but success on cpu only

140 views
Skip to first unread message

jun wei Chen

unread,
Feb 29, 2016, 8:17:39 PM2/29/16
to Caffe Users
i got these errors when i build fast rcnn on gpu , but i can successfully build when cpu only

.build_release/tools/extract_features.o: In function `int feature_extraction_pipeline<float>(int, char**)':
extract_features.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[_Z27feature_extraction_pipelineIfEiiPPc]+0xa7): undefined reference to `
caffe::Caffe::singleton_'
extract_features.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[_Z27feature_extraction_pipelineIfEiiPPc]+0x116): undefined reference to `caffe::Net<float>::Net(std::string const&, caffe::Phase)'

extract_features
.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[_Z27feature_extraction_pipelineIfEiiPPc]+0x162b): undefined reference to `caffe::Caffe::singleton_'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/extract_features.bin] Error 1
make: *** Waiting for unfinished jobs....
.build_release/tools/convert_imageset.o: In function `
void caffe::shuffle<__gnu_cxx::__normal_iterator<std::pair<std::string, int>*, std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > > >(__gnu_cxx::__normal_iterator<std::pair<std::string, int>*, std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > >, __gnu_cxx::__normal_iterator<std::pair<std::string, int>*, std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > >)':
convert_imageset.cpp:(.text._ZN5caffe7shuffleIN9__gnu_cxx17__normal_iteratorIPSt4pairISsiESt6vectorIS4_SaIS4_EEEEEEvT_SA_[_ZN5caffe7shuffleIN9__gnu_cxx17__normal_iteratorIPSt4pairISsiESt6vectorIS4_SaIS4_EEEEEEvT_SA_]+0x14): undefined reference to `caffe::Caffe::singleton_'

collect2
: error: ld returned 1 exit status
make
: *** [.build_release/tools/convert_imageset.bin] Error 1
.build_release/tools/caffe.o: In function `test()':
caffe.cpp:(.text+0x2dc): undefined reference to `
caffe::Caffe::singleton_'
caffe.cpp:(.text+0x30e): undefined reference to `caffe::Net<float>::Net(std::string const&, caffe::Phase)'

caffe
.cpp:(.text+0x1435): undefined reference to `caffe::Caffe::singleton_'
.build_release/tools/caffe.o: In function `
train()':
caffe.cpp:(.text+0x1f16): undefined reference to `caffe::Caffe::singleton_'

caffe
.cpp:(.text+0x2212): undefined reference to `caffe::Caffe::singleton_'
.build_release/tools/caffe.o: In function `
time()':
caffe.cpp:(.text+0x2805): undefined reference to `caffe::Caffe::singleton_'

caffe
.cpp:(.text+0x2837): undefined reference to `caffe::Net<float>::Net(std::string const&, caffe::Phase)'
caffe.cpp:(.text+0x3420): undefined reference to `
caffe::Caffe::singleton_'
.build_release/tools/caffe.o: In function `caffe::Solver<float>* caffe::GetSolver<float>(caffe::SolverParameter const&)'
:
caffe
.cpp:(.text._ZN5caffe9GetSolverIfEEPNS_6SolverIT_EERKNS_15SolverParameterE[_ZN5caffe9GetSolverIfEEPNS_6SolverIT_EERKNS_15SolverParameterE]+0x8c): undefined reference to `caffe::Solver<float>::Solver(caffe::SolverParameter const&)'
caffe.cpp:(.text._ZN5caffe9GetSolverIfEEPNS_6SolverIT_EERKNS_15SolverParameterE[_ZN5caffe9GetSolverIfEEPNS_6SolverIT_EERKNS_15SolverParameterE]+0x12c): undefined reference to `
caffe::Solver<float>::Solver(caffe::SolverParameter const&)'
caffe.cpp:(.text._ZN5caffe9GetSolverIfEEPNS_6SolverIT_EERKNS_15SolverParameterE[_ZN5caffe9GetSolverIfEEPNS_6SolverIT_EERKNS_15SolverParameterE]+0x25c): undefined reference to `caffe::Solver<float>::Solver(caffe::SolverParameter const&)'

.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe9SGDSolverIfEE[_ZTVN5caffe9SGDSolverIfEE]+0x28): undefined reference to `caffe::SGDSolver<float>::ComputeUpdateValue()'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe9SGDSolverIfEE[_ZTVN5caffe9SGDSolverIfEE]+0x30): undefined reference to `
caffe::SGDSolver<float>::SnapshotSolverState(caffe::SolverState*)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe9SGDSolverIfEE[_ZTVN5caffe9SGDSolverIfEE]+0x38): undefined reference to `caffe::SGDSolver<float>::RestoreSolverState(caffe::SolverState const&)'

.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe14NesterovSolverIfEE[_ZTVN5caffe14NesterovSolverIfEE]+0x28): undefined reference to `caffe::NesterovSolver<float>::ComputeUpdateValue()'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe14NesterovSolverIfEE[_ZTVN5caffe14NesterovSolverIfEE]+0x30): undefined reference to `
caffe::SGDSolver<float>::SnapshotSolverState(caffe::SolverState*)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe14NesterovSolverIfEE[_ZTVN5caffe14NesterovSolverIfEE]+0x38): undefined reference to `caffe::SGDSolver<float>::RestoreSolverState(caffe::SolverState const&)'

.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe13AdaGradSolverIfEE[_ZTVN5caffe13AdaGradSolverIfEE]+0x28): undefined reference to `caffe::AdaGradSolver<float>::ComputeUpdateValue()'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe13AdaGradSolverIfEE[_ZTVN5caffe13AdaGradSolverIfEE]+0x30): undefined reference to `
caffe::SGDSolver<float>::SnapshotSolverState(caffe::SolverState*)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe13AdaGradSolverIfEE[_ZTVN5caffe13AdaGradSolverIfEE]+0x38): undefined reference to `caffe::SGDSolver<float>::RestoreSolverState(caffe::SolverState const&)'

collect2
: error: ld returned 1 exit status
make
: *** [.build_release/tools/caffe.bin] Error 1




在此輸入代碼...




Attilio Porchia

unread,
Mar 26, 2016, 6:04:32 PM3/26/16
to Caffe Users
Hello,
did you fix this error?
Reply all
Reply to author
Forward
0 new messages