Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite.

Open pengwei1024 opened this issue 2 years ago • 4 comments

  • 标题:简洁、精准描述您的问题,例如“最新预测库的 API 文档在哪儿 ”
  • 版本、预测库信息:    1)Paddle Lite 版本:develop 分支编译产物    2)Host 环境:Ubuntu 18.04    3)运行设备环境:轻量级 linux 设备    4)预测后端信息:请描述使用的预测后端信息,如 CPU
  • 预测信息    1)预测 API:C++    2)预测选项信息:armv7hf    3)预测库来源:源码编译,gcc
  • 复现信息:
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 13:45:58.574 ...ect/Paddle-Lite/lite/core/device_info.cc:282 get_cpu_arch] Unknow cpu arch: 3081
[I  1/ 1 13:45:58.576 ...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 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)
  • 问题描述:请问下这个错误具体是什么原因呀,用的 develop 分支最新代码编译的,gcc 用的系统配套的 linux-arm-gcc,能编译成功,运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite.

pengwei1024 avatar Jul 28 '22 03:07 pengwei1024

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史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 APIFAQ and Github Issue to get the answer.Have a nice day!

paddle-bot[bot] avatar Jul 28 '22 03:07 paddle-bot[bot]

开启 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)

pengwei1024 avatar Jul 28 '22 04:07 pengwei1024

开发同学正在跟进中

xingjing1 avatar Aug 01 '22 07:08 xingjing1

您好,请问这是什么设备,根据报错信息,是这个设备找不到opencl相关库

sprouteer avatar Aug 01 '22 07:08 sprouteer

运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. 这个错误解决了么? 我也是,用的官方的模型

liuyongfusteven avatar Apr 06 '23 02:04 liuyongfusteven

运行报错 This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite. 这个错误解决了么? 我也是,用的官方的模型

好像是编译的opencl版本,那我那个设备没有opencl,只编译纯cpu 就不会有问题了

pengwei1024 avatar Apr 06 '23 03:04 pengwei1024

运行报错 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

liuyongfusteven avatar Apr 06 '23 03:04 liuyongfusteven

运行报错 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换了模型对了

liuyongfusteven avatar Apr 06 '23 03:04 liuyongfusteven

有类似问题,在宿主上正常但在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结果的,但不清楚具体怎么处理。盼回复

JH-Lam avatar May 04 '23 11:05 JH-Lam