opencl版本非docker版本编译出问题。
Created by: esun0087
dev 分支下, commit id 为eed7a506
使用https://paddlepaddle.github.io/Paddle-Lite/v2.0.0-rc/opencl/ 下编译非docker的paddlelite
cmake ..
-DLITE_WITH_OPENCL=ON
-DWITH_GPU=OFF
-DWITH_MKL=OFF
-DWITH_LITE=ON
-DLITE_WITH_CUDA=OFF
-DLITE_WITH_X86=OFF
-DLITE_WITH_ARM=ON
-DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON
-DWITH_TESTING=ON
-DARM_TARGET_OS="android" -DARM_TARGET_ARCH_ABI="armv8" -DARM_TARGET_LANG="gcc"
错误如下:
-- Found Paddle host system: ubuntu, version: 16.04.6
-- Found Paddle host system's CPU: 24 cores
-- Found host C compiler: /usr/bin/gcc
-- Found host CXX compiler: /usr/bin/g++
-- Lite ARM Compile android with armv8
-- CXX compiler: /home/user/disk3_workspace/bin/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++, version: GNU 4.9.0
-- C compiler: /home/user/disk3_workspace/bin/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc, version: GNU 4.9.0
-- AR tools: /home/user/disk3_workspace/bin/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
-- CMAKE_BUILD_TYPE: Release
-- Building the mobile framework
-- Found OpenMP
-- OpenMP C flags: -fopenmp
-- OpenMP CXX flags: -fopenmp
-- OpenMP OpenMP_CXX_LIB_NAMES: log;gomp
-- OpenMP OpenMP_CXX_LIBRARIES: /home/user/disk3_workspace/bin/android-ndk-r17c/platforms/android-23/arch-arm64/usr/lib/liblog.so;/home/user/disk3_workspace/bin/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/lib64/libgomp.a
CMake Error at /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:2474 (message):
No download info given for 'extern_gflags' and its source directory:
/home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/third-party/gflags
is not an existing non-empty directory. Please specify one of:
- SOURCE_DIR with an existing non-empty directory
- DOWNLOAD_COMMAND
- URL
- GIT_REPOSITORY
- SVN_REPOSITORY
- HG_REPOSITORY
- CVS_REPOSITORY and CVS_MODULE Call Stack (most recent call first): /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:3029 (_ep_add_download_command) cmake/external/gflags.cmake:37 (ExternalProject_Add) CMakeLists.txt:135 (include)
CMake Error at /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:2474 (message): No download info given for 'extern_gtest' and its source directory:
/home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/third-party/googletest
is not an existing non-empty directory. Please specify one of:
- SOURCE_DIR with an existing non-empty directory
- DOWNLOAD_COMMAND
- URL
- GIT_REPOSITORY
- SVN_REPOSITORY
- HG_REPOSITORY
- CVS_REPOSITORY and CVS_MODULE Call Stack (most recent call first): /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:3029 (_ep_add_download_command) cmake/external/gtest.cmake:55 (ExternalProject_Add) CMakeLists.txt:138 (include)
CMake Warning at /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/FindProtobuf.cmake:455 (message): Protobuf compiler version doesn't match library version 2.6.1 Call Stack (most recent call first): cmake/external/protobuf.cmake:18 (FIND_PACKAGE) CMakeLists.txt:140 (include)
CMake Error at /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:2474 (message): No download info given for 'protobuf_host' and its source directory:
/home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/third-party/protobuf-host
is not an existing non-empty directory. Please specify one of:
- SOURCE_DIR with an existing non-empty directory
- DOWNLOAD_COMMAND
- URL
- GIT_REPOSITORY
- SVN_REPOSITORY
- HG_REPOSITORY
- CVS_REPOSITORY and CVS_MODULE Call Stack (most recent call first): /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:3029 (_ep_add_download_command) cmake/external/protobuf.cmake:221 (ExternalProject_Add) cmake/external/protobuf.cmake:278 (build_protobuf) CMakeLists.txt:140 (include)
CMake Error at /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:2474 (message): No download info given for 'extern_protobuf' and its source directory:
/home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/third-party/protobuf-mobile
is not an existing non-empty directory. Please specify one of:
- SOURCE_DIR with an existing non-empty directory
- DOWNLOAD_COMMAND
- URL
- GIT_REPOSITORY
- SVN_REPOSITORY
- HG_REPOSITORY
- CVS_REPOSITORY and CVS_MODULE Call Stack (most recent call first): /home/user/disk3_workspace/bin/cmake-3.10/share/cmake-3.10/Modules/ExternalProject.cmake:3029 (_ep_add_download_command) cmake/external/protobuf.cmake:221 (ExternalProject_Add) cmake/external/protobuf.cmake:286 (build_protobuf) CMakeLists.txt:140 (include)
-- Protobuf protoc executable: /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/build_opencl/third_party/install/protobuf_host/bin/protoc -- Protobuf-lite library: /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/build_opencl/third_party/install/protobuf/lib/libprotobuf-lite.a -- Protobuf library: /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/build_opencl/third_party/install/protobuf/lib/libprotobuf.a -- Protoc library: /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/build_opencl/third_party/install/protobuf/lib/libprotoc.a -- Protobuf version: 3.1.0 CMake Warning at lite/CMakeLists.txt:3 (message): Lite enabled!
-- LIGHT_FRAMEWORK: ON -- LITE_WITH_CUDA: OFF -- LITE_WITH_X86: OFF -- LITE_WITH_ARM: ON -- LITE_WITH_NPU: OFF -- LITE_WITH_XPU: OFF -- LITE_WITH_FPGA: OFF -- LITE_WITH_PROFILE: OFF -- building lite raw test: test_cl_functions -- building lite raw test: test_cl_im2col -- generating arm dotprod code input file: /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/lite/backends/arm/math/dotprod/gemm_sdot_meta.h output file: /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/lite/backends/arm/math/dotprod/gemm_sdot.h -- building lite raw test: test_logging -- building lite raw test: test_varient -- building lite raw test: test_fc_op -- building lite raw test: test_pool_op -- building lite raw test: test_scale_op -- building lite raw test: test_softmax_op -- building lite raw test: test_batch_norm_op -- building lite raw test: test_concat_op -- building lite raw test: test_calib_op -- building lite raw test: test_fusion_elementwise_activation_ops -- building lite raw test: test_transpose_op -- add lite kernels -- compile with lite host kernels -- compile with lite ARM kernels -- building lite raw test: test_scale_compute_arm -- building lite raw test: test_softmax_compute_arm -- building lite raw test: test_batch_norm_compute_arm -- building lite raw test: test_elementwise_compute_arm -- building lite raw test: test_lrn_compute_arm -- building lite raw test: test_decode_bboxes_compute_arm -- building lite raw test: test_pool_compute_arm -- building lite raw test: test_mul_compute_arm -- building lite raw test: test_split_compute_arm -- building lite raw test: test_concat_compute_arm -- building lite raw test: test_dropout_compute_arm -- Ignore test test_transpose_compute_arm due to compile level extra -- building lite raw test: test_argmax_compute_arm -- building lite raw test: test_axpy_compute_arm -- building lite raw test: test_layer_norm_compute_arm -- building lite raw test: test_conv_transpose_compute_arm -- building lite raw test: test_elementwise_add_opencl -- building lite raw test: test_pool_opencl -- building lite raw test: test_fc_opencl -- building lite raw test: test_io_copy_compute_opencl -- building lite raw test: test_depthwise_conv2d_opencl -- building lite raw test: test_conv_opencl -- building lite raw test: test_layout_opencl fatal: no tag exactly matches 'eed7a506' -- tag: -- branch: develop -- commit: eed7a506 -- building lite raw test: test_subgraph_pass -- ----> subgraph_passes: subgraph_pass -- building lite raw test: test_pattern_matcher -- building lite raw test: test_naive_buffer -- building lite raw test: test_naive_buffer_wrapper -- building lite raw test: test_compatible_pb -- get ops ;conv_op;pool_op;fc_op;assign_op;relu_op;mul_op;matmul_op;scale_op;softmax_op;reshape_op;batch_norm_op;feed_op;fetch_op;io_copy_op;io_copy_once_op;activation_ops;elementwise_ops;lrn_op_lite;decode_bboxes_op_lite;box_coder_op_lite;multiclass_nms_op_lite;fusion_elementwise_activation_ops;mean_op;fill_constant_op;uniform_random_op;power_op;shuffle_channel_op;yolo_box_op;interpolate_op;argmax_op;axpy_op;gru_unit_op;gru_op;layout_op;layout_once_op;prior_box_op;density_prior_box_op;dropout_op;concat_op;pad2d_op;negative_op;crop_op;calib_op;calib_once_op;split_op;transpose_op;fake_quant;fake_dequant;conv_transpose_op;graph_op;expand_op_lite;reduce_max_op_lite;norm_op;shape_op_lite;sequence_expand_op_lite;squeeze_op_lite;unsqueeze_op_lite;im2sequence_op;gather_op;reduce_mean_op;stack_op;cast_op_lite;affine_channel_op;anchor_generator_op;generate_proposals_op;roi_align_op;box_clip_op;flatten_op;fake_quantize_range_abs_max_op;sequence_expand_as_op_lite;range_op;assign_value_op;fake_quantize_dequantize_moving_avg_abs_max_op;slice_op_lite -- get X86 kernels -- get Host kernels ;feed_compute_host;fetch_compute_host;reshape_compute_host;multiclass_nms_compute_host -- get ARM kernels ;conv_depthwise;conv_direct;conv_gemmlike;conv_winograd;conv_compute_arm;fc_compute_arm;activation_compute_arm;mul_compute_arm;matmul_compute_arm;scale_compute_arm;softmax_compute_arm;batch_norm_compute_arm;elementwise_compute_arm;lrn_compute_arm;decode_bboxes_compute_arm;pool_compute_arm;split_compute_arm;concat_compute_arm;pad2d_compute_arm;prior_box_compute_arm;density_prior_box_compute_arm;negative_compute_arm;crop_compute_arm;dropout_compute_arm;calib_compute_arm;transpose_compute_arm;power_compute_arm;yolo_box_compute_arm;shuffle_channel_compute_arm;argmax_compute_arm;axpy_compute_arm;conv_transpose_compute_arm;norm_compute_arm;interpolate_compute_arm;box_coder_compute_arm;shape_compute_arm;slice_compute_arm;cast_compute_arm;squeeze_compute_arm;unsqueeze_compute_arm;expand_compute_arm;reduce_max_compute_arm;sequence_expand_compute_arm;im2sequence_compute_arm;sequence_pool_compute_arm;layer_norm_compute_arm;gather_compute_arm;reduce_mean_compute_arm;stack_compute_arm;assign_compute_arm;affine_channel_compute_arm;anchor_generator_compute_arm;generate_proposals_compute_arm;roi_align_compute_arm;box_clip_compute_arm;range_compute_arm;assign_value_compute_arm -- get NPU kernels -- get XPU kernels -- get FPGA kernels -- building lite raw test: test_cxx_api -- building lite raw test: test_mobilenetv1_int8 -- building lite raw test: test_mobilenetv1 -- building lite raw test: test_mobilenetv2 -- building lite raw test: test_resnet50 -- building lite raw test: test_resnet50_fpga -- building lite raw test: test_inceptionv4 -- building lite raw test: test_light_api -- building lite raw test: test_apis -- building lite raw test: test_paddle_api -- building lite raw test: test_gen_code -- building lite raw test: test_generated_code -- Download inference test stuff from http://paddle-inference-dist.bj.bcebos.com/lite_naive_model.tar.gz -- Download inference test stuff from http://paddle-inference-dist.bj.bcebos.com/mobilenet_v1.tar.gz -- Download inference test stuff from http://paddle-inference-dist.bj.bcebos.com/mobilenet_v2_relu.tar.gz -- Download inference test stuff from http://paddle-inference-dist.bj.bcebos.com/resnet50.tar.gz -- Download inference test stuff from http://paddle-inference-dist.bj.bcebos.com/inception_v4_simple.tar.gz -- Download inference test stuff from http://paddle-inference-dist.bj.bcebos.com/MobileNetV1_quant.tar.gz -- publish inference lib to /home/user/disk3_workspace/handwrite/paddle_tool/Paddle-Lite/build_opencl/inference_lite_lib.android.armv8.opencl -- Configuring incomplete, errors occurred!