From a717a990682ec1db93cbcba9d80da7e1dce7a73a Mon Sep 17 00:00:00 2001 From: shentanyue <34421038+shentanyue@users.noreply.github.com> Date: Wed, 21 Dec 2022 16:00:49 +0800 Subject: [PATCH 1/2] Update utility.cc --- .../nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc b/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc index 7244136396c..7537596471e 100644 --- a/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc +++ b/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc @@ -661,7 +661,7 @@ bool GetAscendCANNVersion(int* major, int* minor, int* patch) { return true; } } - NNADAPTER_LOG(FATAL) << "Unable to find the Ascend CANN installation path! " + NNADAPTER_LOG(WARNING) << "Unable to find the Ascend CANN installation path! " "Please install the Ascend CANN and add the root " "directory into LD_LIBRARY_PATH."; return false; From a15a8a668f9d5bb160a3b805276862b77c83e85e Mon Sep 17 00:00:00 2001 From: shentanyue <34421038+shentanyue@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:15:45 +0800 Subject: [PATCH 2/2] Update utility.cc --- .../nnadapter/src/driver/huawei_ascend_npu/utility.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc b/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc index 7537596471e..40cab68f1d5 100644 --- a/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc +++ b/lite/backends/nnadapter/nnadapter/src/driver/huawei_ascend_npu/utility.cc @@ -661,9 +661,10 @@ bool GetAscendCANNVersion(int* major, int* minor, int* patch) { return true; } } - NNADAPTER_LOG(WARNING) << "Unable to find the Ascend CANN installation path! " - "Please install the Ascend CANN and add the root " - "directory into LD_LIBRARY_PATH."; + NNADAPTER_LOG(WARNING) + << "Unable to find the Ascend CANN installation path! " + "Please install the Ascend CANN and add the root " + "directory into LD_LIBRARY_PATH."; return false; } *major = major_version;