Open delongqilinksprite opened 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
mace::OpenCLRuntime::OpenCLRuntime()': opencl_runtime.cc:(.text+0x4420): undefined reference to
mace::kTuningParamsData' ../library/mace_gpu/libmace.a(helper.o): In function
mace::kTuningParamsData' helper.cc:(.text+0x2aa4): undefined reference to
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 to
谢谢!
请看已经被closed的那个issue
平台: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, std::allocator >, unsigned int const, std::vector<unsigned int, std::allocator > const&, mace::StatsFuture )':
helper.cc:(.text+0x2aa0): undefined reference to
mace::OpenCLRuntime::OpenCLRuntime()': opencl_runtime.cc:(.text+0x4420): undefined reference to
mace::kTuningParamsData' opencl_runtime.cc:(.text+0x4424): undefined reference tomace::kTuningParamsData' ../library/mace_gpu/libmace.a(helper.o): In function
mace::kernels::TuningOrRun3DKernel(cl::Kernel const&, std::__cxx11::basic_string<char, std::char_traitsmace::kTuningParamsData' helper.cc:(.text+0x2aa4): undefined reference to
mace::kTuningParamsData' ../library/mace_gpu/libmace.a(helper.o): In functionmace::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 to
mace::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谢谢!