Closed pengwei1024 closed 4 months ago
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档、常见问题、历史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!
开启 opencl 标志再编译运行是这个错误 OpenCL runtime init failed
root@NVTEVM:/mnt/sd/x$ ./mobilenetv1_light_api mobilenetv1_opt_opencl.nb 1,3,224
,224 100 10 0 1 1 1
raw_input_shapes: 1,3,224,224
input shape: 1,3,224,224
[I 1/ 1 15: 3:17.190 ...ect/Paddle-Lite/lite/core/device_info.cc:282 get_cpu_arch] Unknow cpu arch: 3081
[I 1/ 1 15: 3:17.191 ...ect/Paddle-Lite/lite/core/device_info.cc:1275 Setup] ARM multiprocessors name: MODEL NAME : ARMV7 PROCESSOR REV 1 (V7L)
HARDWARE : NOVATEK VIDEO PLATFORM
[I 1/ 1 15: 3:17.192 ...ect/Paddle-Lite/lite/core/device_info.cc:1276 Setup] ARM multiprocessors number: 1
[I 1/ 1 15: 3:17.192 ...ect/Paddle-Lite/lite/core/device_info.cc:1278 Setup] ARM multiprocessors ID: 0, max freq: 0, min freq: 0, cluster ID: 0, CPU ARCH: A-1
[I 1/ 1 15: 3:17.192 ...ect/Paddle-Lite/lite/core/device_info.cc:1284 Setup] L1 DataCache size is:
[I 1/ 1 15: 3:17.192 ...ect/Paddle-Lite/lite/core/device_info.cc:1286 Setup] 32 KB
[I 1/ 1 15: 3:17.192 ...ect/Paddle-Lite/lite/core/device_info.cc:1288 Setup] L2 Cache size is:
[I 1/ 1 15: 3:17.193 ...ect/Paddle-Lite/lite/core/device_info.cc:1290 Setup] 512 KB
[I 1/ 1 15: 3:17.193 ...ect/Paddle-Lite/lite/core/device_info.cc:1292 Setup] L3 Cache size is:
[I 1/ 1 15: 3:17.193 ...ect/Paddle-Lite/lite/core/device_info.cc:1294 Setup] 0 KB
[I 1/ 1 15: 3:17.193 ...ect/Paddle-Lite/lite/core/device_info.cc:1296 Setup] Total memory: 59444KB
[I 1/ 1 15: 3:17.193 ...ect/Paddle-Lite/lite/core/device_info.cc:1297 Setup] SVE2 support: 0
[I 1/ 1 15: 3:17.194 ...ect/Paddle-Lite/lite/core/device_info.cc:1298 Setup] SVE2 f32mm support: 0
[I 1/ 1 15: 3:17.194 ...ect/Paddle-Lite/lite/core/device_info.cc:1299 Setup] SVE2 i8mm support: 0
[I 1/ 1 15: 3:17.210 ...oject/Paddle-Lite/lite/api/paddle_api.cc:50 IsOpenCLBackendValid] need to check fp16 valid:0
[4 1/ 1 15: 3:17.213 ...-Lite/lite/backends/opencl/cl_wrapper.cc:99 InitHandle] Load the OpenCL library from Unknown
[I 1/ 1 15: 3:17.214 ...-Lite/lite/backends/opencl/cl_wrapper.cc:41 CLWrapper] Failed to find and initialize Opencl library
[I 1/ 1 15: 3:17.214 ...oject/Paddle-Lite/lite/api/paddle_api.cc:57 IsOpenCLBackendValid] Found opencl library:0
is_opencl_backend_valid:false
*** nb model will be running on cpu. ***
[I 1/ 1 15: 3:17.214 ...ect/Paddle-Lite/lite/core/device_info.cc:509 check_cpu_online] Failed to query the online statue of CPU id:0
[I 1/ 1 15: 3:17.214 ...ect/Paddle-Lite/lite/core/device_info.cc:514 check_cpu_online] CPU id:0 is offine
[W 1/ 1 15: 3:17.214 ...ect/Paddle-Lite/lite/core/device_info.cc:1352 SetRunMode] Some cores are offline, switch to NO BIND MODE
[4 1/ 1 15: 3:17.217 ...e-Lite/lite/model_parser/model_parser.cc:787 LoadModelNaiveFromFile] Meta_version:2
[4 1/ 1 15: 3:17.217 ...e-Lite/lite/model_parser/model_parser.cc:880 LoadModelFbsFromFile] Opt_version:v2.9
[W 1/ 1 15: 3:17.217 ...e-Lite/lite/model_parser/model_parser.cc:886 LoadModelFbsFromFile]
warning: the version of opt that transformed this model is not consistent with current Paddle-Lite version.
version of opt:v2.9
version of current Paddle-Lite:518238f89
[4 1/ 1 15: 3:17.218 ...e-Lite/lite/model_parser/model_parser.cc:895 LoadModelFbsFromFile] topo_size: 74480
[4 1/ 1 15: 3:18.137 ...e-Lite/lite/model_parser/model_parser.cc:810 LoadModelNaiveFromFile] paddle_version:0
[4 1/ 1 15: 3:18.137 ...e-Lite/lite/model_parser/model_parser.cc:811 LoadModelNaiveFromFile] Load naive buffer model in 'mobilenetv1_opt_opencl.nb' successfully
[3 1/ 1 15: 3:18.140 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': feed/def/1/4/2 for feed
[I 1/ 1 15: 3:18.144 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.144 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.150 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': io_copy/host_to_device/5/4/2 for io_copy
[I 1/ 1 15: 3:18.152 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.152 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.152 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': layout/NCHW_to_ImageDefault/5/4/4 for layout
[I 1/ 1 15: 3:18.153 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.153 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.154 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.154 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.154 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.155 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.155 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.155 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.156 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.156 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.157 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.157 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.158 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.158 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.158 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.159 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.159 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.160 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.160 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.160 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.162 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.163 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.163 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.163 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.164 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.164 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.164 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.165 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.165 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.498 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.499 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.499 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.499 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.500 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.506 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.507 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.508 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.509 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.510 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.511 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.512 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.512 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.513 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.513 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.515 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.515 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.515 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.517 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.519 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.519 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.520 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.520 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.520 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.521 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.522 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.523 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.523 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.524 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.524 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.525 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.525 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.525 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.526 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.860 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.860 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.862 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.862 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.863 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.863 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.864 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.864 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.864 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.865 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.865 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.866 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.866 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.866 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.867 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': depthwise_conv2d/image2d/5/5/4 for depthwise_conv2d
[I 1/ 1 15: 3:18.867 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.867 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.868 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': conv2d/image2d/5/5/4 for conv2d
[I 1/ 1 15: 3:18.868 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.869 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.869 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': pool2d/image2d/5/5/4 for pool2d
[I 1/ 1 15: 3:18.869 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.870 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': layout/ImageDefault_to_NCHW/5/4/1 for layout
[I 1/ 1 15: 3:18.870 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.870 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.871 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.872 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': fc/def/5/1/1 for fc
[I 1/ 1 15: 3:18.872 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.873 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.874 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': io_copy/device_to_host/5/4/2 for io_copy
[I 1/ 1 15: 3:18.874 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:18.874 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:18.875 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': softmax/def/4/1/1 for softmax
[I 1/ 1 15: 3:19.206 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[3 1/ 1 15: 3:19.206 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '__@kernel_type_attr@__': fetch/def/1/4/2 for fetch
[I 1/ 1 15: 3:19.206 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:19.207 ...-Lite/lite/backends/opencl/cl_runtime.cc:69 Init] opencl_lib_found:0
[I 1/ 1 15: 3:19.207 .../project/Paddle-Lite/lite/core/context.h:532 InitOnce] OpenCL runtime init failed
[F 1/ 1 15: 3:19.207 .../project/Paddle-Lite/lite/core/program.h:267 Init] opencl_valid:0
terminate called after throwing an instance of 'paddle::lite::PaddleLiteException'
what(): Paddle-Lite C++ Exception:
[F 1/ 1 15: 3:19.207 .../project/Paddle-Lite/lite/core/program.h:267 Init] opencl_valid:0
Aborted (core dumped)
开发同学正在跟进中
您好,请问这是什么设备,根据报错信息,是这个设备找不到opencl相关库
运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. 这个错误解决了么? 我也是,用的官方的模型
运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. 这个错误解决了么? 我也是,用的官方的模型
好像是编译的opencl版本,那我那个设备没有opencl,只编译纯cpu 就不会有问题了
运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. 这个错误解决了么? 我也是,用的官方的模型
好像是编译的opencl版本,那我那个设备没有opencl,只编译纯cpu 就不会有问题了
我编译如下,关闭了opencl 了: ./lite/tools/build.sh --arm_os=armlinux --arm_abi=armv7hf --arm_lang=gcc --build_extra=ON --build_cv=ON --with_exception=ON --build_opencl=OFF --with_log=ON tiny_publish
怎么运行的时候还在报 opencl
pick kernel for io_copy opencl/any/any get 0 kernels [5 4/ 6 11:18:44.138 ...lientek/Paddle-Lite/lite/core/op_lite.cc:124 CreateKernels] op io_copy get 0 kernels [F 4/ 6 11:18:44.138 ...lientek/Paddle-Lite/lite/core/program.cc:356 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0 Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. terminate called after throwing an instance of 'paddle::lite::PaddleLiteException' what(): Paddle-Lite C++ Exception: [F 4/ 6 11:18:44.138 ...lientek/Paddle-Lite/lite/core/program.cc:356 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0 Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite
运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. 这个错误解决了么? 我也是,用的官方的模型
好像是编译的opencl版本,那我那个设备没有opencl,只编译纯cpu 就不会有问题了
我编译如下,关闭了opencl 了: ./lite/tools/build.sh --arm_os=armlinux --arm_abi=armv7hf --arm_lang=gcc --build_extra=ON --build_cv=ON --with_exception=ON --build_opencl=OFF --with_log=ON tiny_publish
怎么运行的时候还在报 opencl
pick kernel for io_copy opencl/any/any get 0 kernels [5 4/ 6 11:18:44.138 ...lientek/Paddle-Lite/lite/core/op_lite.cc:124 CreateKernels] op io_copy get 0 kernels [F 4/ 6 11:18:44.138 ...lientek/Paddle-Lite/lite/core/program.cc:356 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0 Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. terminate called after throwing an instance of 'paddle::lite::PaddleLiteException' what(): Paddle-Lite C++ Exception: [F 4/ 6 11:18:44.138 ...lientek/Paddle-Lite/lite/core/program.cc:356 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0 Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite
用opt换了模型对了
有类似问题,在宿主上正常但在docker下异常,容器是通过普通ubuntu下搭建的,估计是opencl驱动问题:
File "detect-ocr-lite.py", line 136, in init predictor = create_paddle_predictor(config) RuntimeError: Paddle-Lite C++ Exception: [F 5/ 4 10:30:44.263 ...ddle-ocr/Paddle-Lite/lite/core/program.h:245 Init] opencl_valid:0
查了program.h代码,是有几个值使用&&生成这个0结果的,但不清楚具体怎么处理。盼回复
[I 1/ 1 13:45:58.576 ...ect/Paddle-Lite/lite/core/device_info.cc:1276 Setup] ARM multiprocessors number: 1 [I 1/ 1 13:45:58.576 ...ect/Paddle-Lite/lite/core/device_info.cc:1278 Setup] ARM multiprocessors ID: 0, max freq: 0, min freq: 0, cluster ID: 0, CPU ARCH: A-1 [I 1/ 1 13:45:58.576 ...ect/Paddle-Lite/lite/core/device_info.cc:1284 Setup] L1 DataCache size is: [I 1/ 1 13:45:58.576 ...ect/Paddle-Lite/lite/core/device_info.cc:1286 Setup] 32 KB [I 1/ 1 13:45:58.576 ...ect/Paddle-Lite/lite/core/device_info.cc:1288 Setup] L2 Cache size is: [I 1/ 1 13:45:58.577 ...ect/Paddle-Lite/lite/core/device_info.cc:1290 Setup] 512 KB [I 1/ 1 13:45:58.577 ...ect/Paddle-Lite/lite/core/device_info.cc:1292 Setup] L3 Cache size is: [I 1/ 1 13:45:58.577 ...ect/Paddle-Lite/lite/core/device_info.cc:1294 Setup] 0 KB [I 1/ 1 13:45:58.577 ...ect/Paddle-Lite/lite/core/device_info.cc:1296 Setup] Total memory: 59444KB [I 1/ 1 13:45:58.577 ...ect/Paddle-Lite/lite/core/device_info.cc:1297 Setup] SVE2 support: 0 [I 1/ 1 13:45:58.578 ...ect/Paddle-Lite/lite/core/device_info.cc:1298 Setup] SVE2 f32mm support: 0 [I 1/ 1 13:45:58.578 ...ect/Paddle-Lite/lite/core/device_info.cc:1299 Setup] SVE2 i8mm support: 0 [I 1/ 1 13:45:58.585 ...oject/Paddle-Lite/lite/api/paddle_api.cc:50 IsOpenCLBackendValid] need to check fp16 valid:0 is_opencl_backend_valid:false nb model will be running on cpu. [I 1/ 1 13:45:58.586 ...ect/Paddle-Lite/lite/core/device_info.cc:509 check_cpu_online] Failed to query the online statue of CPU id:0 [I 1/ 1 13:45:58.586 ...ect/Paddle-Lite/lite/core/device_info.cc:514 check_cpu_online] CPU id:0 is offine [W 1/ 1 13:45:58.586 ...ect/Paddle-Lite/lite/core/device_info.cc:1352 SetRunMode] Some cores are offline, switch to NO BIND MODE [4 1/ 1 13:45:58.588 ...e-Lite/lite/model_parser/model_parser.cc:787 LoadModelNaiveFromFile] Meta_version:2 [4 1/ 1 13:45:58.588 ...e-Lite/lite/model_parser/model_parser.cc:880 LoadModelFbsFromFile] Opt_version:v2.9 [W 1/ 1 13:45:58.589 ...e-Lite/lite/model_parser/model_parser.cc:886 LoadModelFbsFromFile] warning: the version of opt that transformed this model is not consistent with current Paddle-Lite version. version of opt:v2.9 version of current Paddle-Lite:518238f89 [4 1/ 1 13:45:58.589 ...e-Lite/lite/model_parser/model_parser.cc:895 LoadModelFbsFromFile] topo_size: 74480 [4 1/ 1 13:45:59.503 ...e-Lite/lite/model_parser/model_parser.cc:810 LoadModelNaiveFromFile] paddle_version:0 [4 1/ 1 13:45:59.503 ...e-Lite/lite/model_parser/model_parser.cc:811 LoadModelNaiveFromFile] Load naive buffer model in 'mobilenetv1_opt_opencl.nb' successfully [3 1/ 1 13:45:59.507 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '@kernel_type_attr@': feed/def/1/4/2 for feed [3 1/ 1 13:45:59.508 ...project/Paddle-Lite/lite/core/program.cc:329 RuntimeProgram] Found the attr '@kernel_type_attr@': io_copy/host_to_device/5/4/2 for io_copy [F 1/ 1 13:45:59.508 ...project/Paddle-Lite/lite/core/program.cc:358 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0 Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. terminate called after throwing an instance of 'paddle::lite::PaddleLiteException' what(): Paddle-Lite C++ Exception: [F 1/ 1 13:45:59.508 ...project/Paddle-Lite/lite/core/program.cc:358 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0 Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite.
Aborted (core dumped)