-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
华为昇腾310NPU源码编译,编译命令为:
build_linux.sh --arch=armv8 --toolchain=gcc --with_extra=ON --with_python=ON --with_log=ON --with_exception=ON --with_nnadapter=ON --nnadapter_with_huawei_ascend_npu=ON --nnadapter_huawei_ascend_npu_sdk_root=/usr/local/Ascend/ascend-toolkit/latest --nnadapter_huawei_ascend_npu_sdk_version=7.0.0 full_publish
编译了好几次都显示
[W 6/30 15:21:16.858 .../src/driver/huawei_ascend_npu/utility.cc:57 InitializeAscendCL] CANN version mismatch. The build version is 0.0.0, but the current environment version is 7.0.0.
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:42 Context] properties: HUAWEI_ASCEND_NPU_SELECTED_DEVICE_IDS=0
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:67 Context] selected device ids:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:69 Context] 0
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:79 Context] profiling path:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:89 Context] dump model path:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:99 Context] precision mode:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:121 Context] op select impl mode:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:131 Context] op type list for impl mode:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:141 Context] enable compressw weight:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:151 Context] auto tune mode:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:161 Context] enable dynamic shape range:
[I 6/30 15:21:16.858 ...r/src/driver/huawei_ascend_npu/engine.cc:177 Context] initial buffer length of dynamic shape range: -1
[W 6/30 15:21:16.858 ...ter/nnadapter/src/runtime/compilation.cc:334 Finish] Warning: Failed to create a program, No model and cache is provided.
[W 6/30 15:21:16.858 ...le-Lite/lite/kernels/nnadapter/engine.cc:149 LoadFromCache] Warning: Build model failed(3) !
[F 6/30 15:21:16.858 ...kernels/nnadapter/converter/converter.cc:109 Apply] Op converter 'subgraph' not found!
[F 6/30 15:21:16.858 ...kernels/nnadapter/converter/converter.cc:109 Apply] Op converter 'subgraph' not found!
处理图片 AgAACg4XJf47Mm8aSKNCuYpV8ftzoMf8.png 时发生严重错误: Paddle-Lite C++ Exception:
[F 6/30 15:21:16.858 ...kernels/nnadapter/converter/converter.cc:109 Apply] Op converter 'subgraph' not found!
每次编译都把编译生成的文件都删除了
是什么原因呢,求解答