-
Notifications
You must be signed in to change notification settings - Fork 6.8k
comiple error about the ndarray or something else #1528
Comments
I think I should add message below to give a better description about the error state. g++ -DMSHADOW_FORCE_STREAM -Wall -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -Iinclude -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/data1/NLPRMNT/lidangwei/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_USE_OPENCV=1 |
@mli @piiswrong could you give me some suggestions? |
it's hard to tell what happened. |
I reinstall the repo and change the atlas to mkl, then it works. |
After the compile is ok, there still exist a problem in running. python example/image-classification/train_mnist.py
|
Here I list the example code given in example/notebook/... #!/usr/bin/env python Load the pre-trained modelprefix = "Inception/Inception_BN" |
I have worked out the problem, this issue could be closed! |
There is a problem when compile the mxnet on centos6.5 without cudadnn and the cuda version is 6.5.
The error is about the ndarray or something else, I am not sure about it. Could anyone else help me fix this problem ? Thank you very much.
build/src/ndarray/ndarray.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::ClipOp(mxn et::NDArray const&, float const&, float const&, mxnet::NDArray*)::{lambda(mxnet::RunContext)#2}>(mxnet::ClipOp(mxnet::NDArray const&, float const&, float const&, mxnet::NDArr ay*)::{lambda(mxnet::RunContext)#2}, mxnet::Context, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::engine::Var*, std::alloc ator<mxnet::engine::Var> > const, mxnet::FnProperty, int)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunConte xt, mxnet::engine::CallbackOnComplete)': ndarray.cc:(.text+0x7aa): undefined reference to
void mxnet::ndarray::EvalClipmshadow::gpu(mshadow::TBlob const&, float const&, float const&, mshadow::TBlob_, mxnet::RunContext)'
build/src/ndarray/ndarray.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::SetValueOp (float const&, mxnet::NDArray_)::{lambda(mxnet::RunContext)#2}>(mxnet::SetValueOp(float const&, mxnet::NDArray_)::{lambda(mxnet::RunContext)#2}, mxnet::Context, std::vector<m xnet::engine::Var_, std::allocatormxnet::engine::Var > const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const, mxnet::FnProperty, int)::{lambda (mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunContext, mxnet::engine::CallbackOnComplete)': ndarray.cc:(.text+0x8b1): undefined reference to
void mxnet::ndarray::Evalmshadow::gpu(float const&, mshadow::TBlob*, mxnet::RunContext)'build/src/ndarray/ndarray.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::CopyFromTo (mxnet::NDArray const&, mxnet::NDArray*, int)::{lambda(mxnet::RunContext)#2}>(mxnet::CopyFromTo(mxnet::NDArray const&, mxnet::NDArray_, int)::{lambda(mxnet::RunContext)#2}, m xnet::Context, std::vector<mxnet::engine::Var_, std::allocatormxnet::engine::Var > const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const, mxne t::FnProperty, int)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunContext, mxnet::engine::CallbackOnComplete) ': ndarray.cc:(.text+0x9e5): undefined reference to
void mxnet::ndarray::Copy<mshadow::cpu, mshadow::gpu>(mshadow::TBlob const&, mshadow::TBlob*, mxnet::Context, mxnet::Context, mxnet::RunContext)'
build/src/ndarray/ndarray.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::CopyFromTo (mxnet::NDArray const&, mxnet::NDArray*, int)::{lambda(mxnet::RunContext)#3}>(mxnet::CopyFromTo(mxnet::NDArray const&, mxnet::NDArray_, int)::{lambda(mxnet::RunContext)#3}, m xnet::Context, std::vector<mxnet::engine::Var_, std::allocatormxnet::engine::Var > const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const, mxne t::FnProperty, int)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunContext, mxnet::engine::CallbackOnComplete) ': ndarray.cc:(.text+0xb55): undefined reference to
void mxnet::ndarray::Copy<mshadow::gpu, mshadow::cpu>(mshadow::TBlob const&, mshadow::TBlob*, mxnet::Context, mxnet::Context, mxnet::RunContext)'
build/src/ndarray/ndarray.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::CopyFromTo (mxnet::NDArray const&, mxnet::NDArray*, int)::{lambda(mxnet::RunContext)#4}>(mxnet::CopyFromTo(mxnet::NDArray const&, mxnet::NDArray_, int)::{lambda(mxnet::RunContext)#4}, m xnet::Context, std::vector<mxnet::engine::Var_, std::allocatormxnet::engine::Var > const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const, mxne t::FnProperty, int)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunContext, mxnet::engine::CallbackOnComplete) ': ndarray.cc:(.text+0xcc5): undefined reference to
void mxnet::ndarray::Copy<mshadow::gpu, mshadow::gpu>(mshadow::TBlob const&, mshadow::TBlob*, mxnet::Context, mxnet::Context, mxnet::RunContext)'
................................................................
................................................................
build/src/operator/softmax_activation.o: In function
mxnet::op::SoftmaxActivationProp::CreateOperator(mxnet::Context) const': softmax_activation.cc:(.text+0x3bc): undefined reference to
mxnet::Operator* mxnet::op::CreateOpmshadow::gpu(mxnet::op::SoftmaxActivationParam)'build/src/operator/softmax_output.o: In function
mxnet::op::SoftmaxOutputProp::CreateOperator(mxnet::Context) const': softmax_output.cc:(.text+0x7a1): undefined reference to
mxnet::Operator* mxnet::op::CreateOpmshadow::gpu(mxnet::op::SoftmaxOutputParam)'build/src/operator/swapaxis.o: In function
mxnet::op::SwapAxisProp::CreateOperator(mxnet::Context) const': swapaxis.cc:(.text+0x38d): undefined reference to
mxnet::Operator* mxnet::op::CreateOpmshadow::gpu(mxnet::op::SwapAxisParam)'build/src/operator/upsampling.o: In function
mxnet::op::UpSamplingProp::CreateOperator(mxnet::Context) const': upsampling.cc:(.text+0x38a5): undefined reference to
mxnet::Operator* mxnet::op::CreateOpmshadow::gpu(mxnet::op::UpSamplingParam)'build/src/optimizer/sgd.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::opt::SGDOpt: :Update(int, mxnet::NDArray*, mxnet::NDArray const*, float, float)::{lambda(mxnet::RunContext)#4}>(mxnet::opt::SGDOpt::Update(int, mxnet::NDArray*, mxnet::NDArray const*, flo at, float)::{lambda(mxnet::RunContext)#4}, mxnet::Context, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::engine::Var*, std: :allocator<mxnet::engine::Var> > const, mxnet::FnProperty, int)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::Ru nContext, mxnet::engine::CallbackOnComplete)': sgd.cc:(.text._ZNSt17_Function_handlerIFvN5mxnet10RunContextENS0_6engine18CallbackOnCompleteEEZNS0_6Engine8PushSyncIZNS0_3opt6SGDOpt6UpdateEiPNS0_7NDArrayEPKS9_ffEUlS1_E2_EEv T_NS0_7ContextERKSt6vectorIPNS2_3VarESaISI_EESM_NS0_10FnPropertyEiEUlS1_S3_E_E9_M_invokeERKSt9_Any_dataS1_S3_[_ZNSt17_Function_handlerIFvN5mxnet10RunContextENS0_6engine18Call backOnCompleteEEZNS0_6Engine8PushSyncIZNS0_3opt6SGDOpt6UpdateEiPNS0_7NDArrayEPKS9_ffEUlS1_E2_EEvT_NS0_7ContextERKSt6vectorIPNS2_3VarESaISI_EESM_NS0_10FnPropertyEiEUlS1_S3_E_E 9_M_invokeERKSt9_Any_dataS1_S3_]+0x9c): undefined reference to
mxnet::opt::call_sgd_update_gpu(mxnet::RunContext, mshadow::TBlob, mshadow::TBlob, float, float, mxnet::opt::SGDParam const&)'
build/src/optimizer/sgd.o: In function
std::_Function_handler<void ()(mxnet::RunContext, mxnet::engine::CallbackOnComplete), void mxnet::Engine::PushSync<mxnet::opt::SGDOpt$ :Update(int, mxnet::NDArray*, mxnet::NDArray const*, float, float)::{lambda(mxnet::RunContext)#3}>(mxnet::opt::SGDOpt::Update(int, mxnet::NDArray*, mxnet::NDArray const*, fl$ at, float)::{lambda(mxnet::RunContext)#3}, mxnet::Context, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::engine::Var*, std$ :allocator<mxnet::engine::Var> > const, mxnet::FnProperty, int)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::R$ nContext, mxnet::engine::CallbackOnComplete)': sgd.cc:(.text._ZNSt17_Function_handlerIFvN5mxnet10RunContextENS0_6engine18CallbackOnCompleteEEZNS0_6Engine8PushSyncIZNS0_3opt6SGDOpt6UpdateEiPNS0_7NDArrayEPKS9_ffEUlS1_E1_EE$T_NS0_7ContextERKSt6vectorIPNS2_3VarESaISI_EESM_NS0_10FnPropertyEiEUlS1_S3_E_E9_M_invokeERKSt9_Any_dataS1_S3_[_ZNSt17_Function_handlerIFvN5mxnet10RunContextENS0_6engine18Cal$ backOnCompleteEEZNS0_6Engine8PushSyncIZNS0_3opt6SGDOpt6UpdateEiPNS0_7NDArrayEPKS9_ffEUlS1_E1_EEvT_NS0_7ContextERKSt6vectorIPNS2_3VarESaISI_EESM_NS0_10FnPropertyEiEUlS1_S3_E_$ 9_M_invokeERKSt9_Any_dataS1_S3_]+0xbd): undefined reference to
mxnet::opt::call_sgd_mom_update_gpu(mxnet::RunContext, mshadow::TBlob, mshadow::TBlob, mshadow::TBlob, float, float, mxnet::opt::SGDParam const&)'collect2: error: ld returned 1 exit status
make: *** [bin/im2rec] Error 1
The text was updated successfully, but these errors were encountered: