Kirin 990 NPU没有调用
Created by: wangying6
NPU模型的subgraph生成成功,但是在Kirin990上运行时没有调用NPU,查看日志发现Build Model fail
05/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1064 Setup] ARM multiprocessors name: HARDWARE : HISILICON KIRIN990 TAS_KIRIN990 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1065 Setup] ARM multiprocessors number: 8 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 0, max freq: 1863, min freq: 1863, cluster ID: 1, CPU ARCH: A55 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 1, max freq: 1863, min freq: 1863, cluster ID: 1, CPU ARCH: A55 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 2, max freq: 1863, min freq: 1863, cluster ID: 1, CPU ARCH: A55 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 3, max freq: 1863, min freq: 1863, cluster ID: 1, CPU ARCH: A55 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 4, max freq: 2088, min freq: 2088, cluster ID: 0, CPU ARCH: A76 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 5, max freq: 2088, min freq: 2088, cluster ID: 0, CPU ARCH: A76 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 6, max freq: 2861, min freq: 2861, cluster ID: 0, CPU ARCH: A76 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1067 Setup] ARM multiprocessors ID: 7, max freq: 2861, min freq: 2861, cluster ID: 0, CPU ARCH: A76 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1073 Setup] L1 DataCache size is: 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1075 Setup] 32 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1075 Setup] 32 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1075 Setup] 64 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1075 Setup] 64 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1077 Setup] L2 Cache size is: 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1079 Setup] 128 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1079 Setup] 128 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1079 Setup] 512 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1079 Setup] 512 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1081 Setup] L3 Cache size is: 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1083 Setup] 4096 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1083 Setup] 4096 KB 2020-09-28 09:59:01.507 13705-13705/com.example.paddlelitedemo I/Paddle-Lite: [I 9/28 9:59: 1.507 ...ddle-Lite-2.6.1/lite/core/device_info.cc:1085 Setup] Total memory: 7679916KB 2020-09-28 09:59:01.509 13705-13705/com.example.paddlelitedemo W/Paddle-Lite: [W 9/28 9:59: 1.509 ...-2.6.1/lite/model_parser/model_parser.cc:806 LoadModelNaiveFromFile] warning: the version of opt that transformed this model is not consistent with current Paddle-Lite version. version of opt:v2.6.1 version of current Paddle-Lite: 2020-09-28 09:59:01.634 13705-13705/com.example.paddlelitedemo W/Paddle-Lite: [W 9/28 9:59: 1.634 ...e-Lite-2.6.1/lite/backends/npu/device.cc:40 Build] [NPU] BuildIRModel failed! 2020-09-28 09:59:01.634 13705-13705/com.example.paddlelitedemo W/Paddle-Lite: [W 9/28 9:59: 1.634 ...6.1/lite/kernels/npu/subgraph_compute.cc:94 BuildDeviceProgram] [NPU] Build model failed!