- 版本、预测库信息:
1)Paddle Lite 版本:branch develop
2)Host 环境:20.04.1-Ubuntu
3)运行设备环境:X86
4)预测后端信息:OpenCL Nvidia 1660 super
- 预测信息
1)预测 API:C++
2)预测选项信息:benchmark_bin,
cmd="./build.lite.linux.x86.gcc.opencl/lite/api/tools/benchmark/benchmark_bin --model_file=./models/ch_ppocr_mobile_v2.0_det_infer/ch_ppocr_mobile_v2_0_det_v2_0/model.pdmodel --param_file=./models/ch_ppocr_mobile_v2.0_det_infer/ch_ppocr_mobile_v2_0_det_v2_0/model.pdiparams --input_shape=1,3,640,640 --warmup=10 --repeats=20 --backend=opencl,x86 --gpu_precision=fp32"
-Model link
https://paddlelite-demo.bj.bcebos.com/NNAdapter/models/PaddleOCR/ch_ppocr_mobile_v2.0_det_infer.tgz
======= Opt Info =======
Load paddle model from ./models/ch_ppocr_mobile_v2.0_det_infer/ch_ppocr_mobile_v2_0_det_v2_0/model.pdmodel and ./models/ch_ppocr_mobile_v2.0_det_infer/ch_ppocr_mobile_v2_0_det_v2_0/model.pdiparams
Save optimized model to ./models/ch_ppocr_mobile_v2.0_det_infer/ch_ppocr_mobile_v2_0_det_v2_0/opt.nb
I0830 17:23:53.447731 11441 paddle_api.cc:50] need to check fp16 valid:0
I0830 17:23:53.447736 11441 paddle_api.cc:57] Found opencl library:1
I0830 17:23:53.447737 11441 paddle_api.cc:63] dlsym_success:1
I0830 17:23:53.447739 11441 cl_runtime.h:93] need to check fp16 valid:0
I0830 17:23:53.447742 11441 paddle_api.cc:70] opencl_valid:1
I0830 17:23:53.447744 11441 paddle_api.cc:323] opencl binary path and file name:/paddle_lite_opencl_kernel.bin
I0830 17:23:53.447757 11441 paddle_api.cc:50] need to check fp16 valid:0
I0830 17:23:53.447757 11441 paddle_api.cc:57] Found opencl library:1
I0830 17:23:53.447759 11441 paddle_api.cc:63] dlsym_success:1
I0830 17:23:53.447762 11441 cl_runtime.h:93] need to check fp16 valid:0
I0830 17:23:53.447763 11441 paddle_api.cc:70] opencl_valid:1
I0830 17:23:53.447798 11441 cl_runtime.cc:863] tuned_file:/paddle_lite_opencl_tuned.params
W0830 17:23:53.447804 11441 cl_runtime.cc:872] Not found tuned file:/paddle_lite_opencl_tuned.params
I0830 17:23:53.447821 11441 paddle_api.cc:341] set opencl_tune_mode: CL_TUNE_NORMAL, lws_repeats:4
I0830 17:23:53.447824 11441 paddle_api.cc:344] tuned file path & name:/paddle_lite_opencl_tuned.params
I0830 17:23:53.447825 11441 paddle_api.cc:50] need to check fp16 valid:0
I0830 17:23:53.447827 11441 paddle_api.cc:57] Found opencl library:1
I0830 17:23:53.447829 11441 paddle_api.cc:63] dlsym_success:1
I0830 17:23:53.447829 11441 cl_runtime.h:93] need to check fp16 valid:0
I0830 17:23:53.447831 11441 paddle_api.cc:70] opencl_valid:1
I0830 17:23:53.447834 11441 paddle_api.cc:356] set opencl precision: CL_PRECISION_FP32
I0830 17:23:53.455142 11441 cl_runtime.h:93] need to check fp16 valid:0
W0830 17:23:53.457551 11441 cl_runtime.cc:220] There is no precompiled OpenCL binary[/paddle_lite_opencl_kernel.bin] in the given OpenCL binary path. Also please make sure the storage directory exist and you have Write&Read permission. Jump to build program from source.
F0830 17:23:53.679805 11441 conv_image_compute.cc:2737] OpenCL error with code CL_INVALID_KERNEL_ARGS happened in file /home/cqjcdl/yaoyao/Paddle-Lite/lite/kernels/opencl/conv_image_compute.cc at line 2737. Exiting.
Check failure stack trace:
./run_benchmark.sh: line 330: 11441 Aborted (core dumped)
with GLOG_v 4
I0830 17:32:08.133193 11475 cl_runtime.cc:184] --- program -> image/conv2d_1x1_opt_kernel.cl -DRELU -DBIASE_CH -cl-fast-relaxed-math -cl-mad-enable -DCL_DTYPE_float -DCL_DTYPE_FLOAT_FORCE has been built in cache ---
I0830 17:32:08.133195 11475 cl_context.cc:42] --- end get program ---
I0830 17:32:08.133196 11475 cl_context.cc:43] --- to create kernel: conv2d_1x1_h2w3c2 ---
I0830 17:32:08.133200 11475 cl_context.cc:49] --- end create kernel ---
I0830 17:32:08.133204 11475 cl_context.cc:59] --- kernel count: 6 ---
F0830 17:32:08.133704 11475 conv_image_compute.cc:2737] OpenCL error with code CL_INVALID_KERNEL_ARGS happened in file /home/cqjcdl/yaoyao/Paddle-Lite/lite/kernels/opencl/conv_image_compute.cc at line 2737. Exiting.
Check failure stack trace:
./run_benchmark.sh: line 330: 11475 Aborted (core dumped)
4条答案
按热度按时间6jjcrrmo1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档、常见问题、历史Issue来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ and Github Issue to get the answer.Have a nice day!
mzillmmw2#
@sprouteer tiantian,帮忙看下哈~
ttvkxqim3#
好的,运行时试试加上参数 --opencl_tune_mode=none
aoyhnmkz4#
运行时加上参数 --opencl_tune_mode=none可以跑过,谢谢!