zhy520xp / mace-makefile-project

makefile 交叉编译 libmace.a,并能在嵌入式端调用GPU来跑深度学习模型
95 stars 18 forks source link

rk3288编译unit_test_gpu错误 #3

Open delongqilinksprite opened 6 years ago

delongqilinksprite commented 6 years ago

平台:RK3288 重新编译了protobuf3.4以及libmace.a,GPU版本,编译test程序出错,如下: firefly@firefly:~/github/mace-makefile-project/unit_test_gpu$ make g++ -o demo unit_test.o ../library/mace_gpu/libmace.a ../library/protobuf3.4.0/libprotobuf-lite.a -fopenmp -lm -pthread -lrt -ldl ../library/mace_gpu/libmace.a(opencl_runtime.o): In function mace::OpenCLRuntime::OpenCLRuntime()': opencl_runtime.cc:(.text+0x4420): undefined reference tomace::kTuningParamsData' opencl_runtime.cc:(.text+0x4424): undefined reference to mace::kTuningParamsData' ../library/mace_gpu/libmace.a(helper.o): In functionmace::kernels::TuningOrRun3DKernel(cl::Kernel const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, unsigned int const, std::vector<unsigned int, std::allocator > const&, mace::StatsFuture)': helper.cc:(.text+0x2aa0): undefined reference to mace::kTuningParamsData' helper.cc:(.text+0x2aa4): undefined reference tomace::kTuningParamsData' ../library/mace_gpu/libmace.a(helper.o): In function mace::kernels::TuningOrRun2DKernel(cl::Kernel const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > const&, mace::StatsFuture*)': helper.cc:(.text+0x3594): undefined reference tomace::kTuningParamsData' ../library/mace_gpu/libmace.a(helper.o):helper.cc:(.text+0x3598): more undefined references to `mace::kTuningParamsData' follow collect2: error: ld returned 1 exit status Makefile:29: recipe for target 'demo' failed

谢谢!

zhy520xp commented 6 years ago

请看已经被closed的那个issue