Paddle-Lite MLU 270 编译错误

mw3dktmi  于 2021-12-01  发布在  Java
关注(0)|答案(4)|浏览(528)

编译找不到cnrtCreateQueue的定义

[ 36%] Building CXX object lite/model_parser/flatbuffers/CMakeFiles/test_program_desc.dir/program_desc_test.cc.o
[ 36%] Linking CXX static library libkernel.a
[ 36%] Built target kernel
[ 36%] Linking CXX executable test_context
Scanning dependencies of target compatible_pb
[ 36%] Building CXX object lite/model_parser/CMakeFiles/compatible_pb.dir/compatible_pb.cc.o
[ 36%] Linking CXX static library libsequence2batch.a
libdevice_info.a(device_info.cc.o): In function paddle::lite::Device<(paddle::lite_api::TargetType)11>::CreateQueue()': /home/paddle/Paddle-Lite/lite/core/device_info.cc:1194: undefined reference tocnrtCreateQueue'
/home/paddle/Paddle-Lite/lite/core/device_info.cc:1195: undefined reference to cnrtCreateQueue' /home/paddle/Paddle-Lite/lite/core/device_info.cc:1199: undefined reference tocnrtCreateQueue'
collect2: error: ld returned 1 exit status
lite/core/CMakeFiles/test_context.dir/build.make:114: recipe for target 'lite/core/test_context' failed
make[2]:***[lite/core/test_context] Error 1
CMakeFiles/Makefile2:30591: recipe for target 'lite/core/CMakeFiles/test_context.dir/all' failed
make[1]:***[lite/core/CMakeFiles/test_context.dir/all] Error 2
make[1]:***Waiting for unfinished jobs....
[ 36%] Built target sequence2batch
[ 36%] Linking CXX static library libsubgraph_bridge_graph_mlu.a
[ 36%] Built target subgraph_bridge_graph_mlu
[ 36%] Linking CXX executable test_vector_view
Strip debug symbols done on final executable file.
[ 36%] Built target test_vector_view
[ 36%] Linking CXX executable test_fbs_io
Strip debug symbols done on final executable file.
[ 36%] Built target test_fbs_io
[ 36%] Linking CXX executable test_program_desc
[ 36%] Linking CXX static library libcompatible_pb.a
[ 36%] Built target compatible_pb
Strip debug symbols done on final executable file.

bvpmtnay

bvpmtnay1#

看起来是依赖库不正确,导致符号不对应,编译失败

biswetbf

biswetbf2#

那个release版本的paddle lite可以编译

xuo3flqw

xuo3flqw3#

@yongqiangma 请问知道用户问题的原因吗

3yhwsihp

3yhwsihp4#

有遇上新的问题了

In file included from /root/Paddle-Lite/lite/kernels/mlu/subgraph_compute.cc:15:0:
/root/Paddle-Lite/lite/kernels/mlu/subgraph_compute.h: In member function 'bool paddle::lite::kernels::mlu::SubgraphEngine::BuildDeviceProgram()':
/root/Paddle-Lite/lite/kernels/mlu/subgraph_compute.h:75:25: error: 'class std::unique_ptrpaddle::lite::RuntimeProgram' has no member named 'empty'
if (origin_program_.empty()) {
^
lite/kernels/mlu/CMakeFiles/subgraph_compute_mlu.dir/build.make:62: recipe for target 'lite/kernels/mlu/CMakeFiles/subgraph_compute_mlu.dir/subgraph_compute.cc.o' failed
make[2]:***[lite/kernels/mlu/CMakeFiles/subgraph_compute_mlu.dir/subgraph_compute.cc.o] Error 1
CMakeFiles/Makefile2:12921: recipe for target 'lite/kernels/mlu/CMakeFiles/subgraph_compute_mlu.dir/all' failed
make[1]:***[lite/kernels/mlu/CMakeFiles/subgraph_compute_mlu.dir/all] Error 2
make[1]:***Waiting for unfinished jobs....
In file included from /root/Paddle-Lite/lite/kernels/mlu/bridges/test_helper.cc:20:0:
/root/Paddle-Lite/lite/kernels/mlu/subgraph_compute.h: In member function 'bool paddle::lite::kernels::mlu::SubgraphEngine::BuildDeviceProgram()':
/root/Paddle-Lite/lite/kernels/mlu/subgraph_compute.h:75:25: error: 'class std::unique_ptrpaddle::lite::RuntimeProgram' has no member named 'empty'
if (origin_program_.empty()) {
^
lite/kernels/mlu/bridges/CMakeFiles/subgraph_test_helper_mlu.dir/build.make:62: recipe for target 'lite/kernels/mlu/bridges/CMakeFiles/subgraph_test_helper_mlu.dir/test_helper.cc.o' failed
make[2]:***[lite/kernels/mlu/bridges/CMakeFiles/subgraph_test_helper_mlu.dir/test_helper.cc.o] Error 1
CMakeFiles/Makefile2:14961: recipe for target 'lite/kernels/mlu/bridges/CMakeFiles/subgraph_test_helper_mlu.dir/all' failed
make[1]:***[lite/kernels/mlu/bridges/CMakeFiles/subgraph_test_helper_mlu.dir/all] Error 2

在哪个release版本验证过?我现在develop和2.7、2.6都试过不管用

相关问题