From 7ae6fbfe4a58b9f4b04ddea38b47613e45026b54 Mon Sep 17 00:00:00 2001 From: yanghongtian Date: Sat, 11 Apr 2020 10:35:45 +0800 Subject: [PATCH] fixed coding styles --- cmake/device/hw_ascend_npu.cmake | 5 ----- cmake/lite.cmake | 2 +- lite/kernels/hw_ascend_npu/bridges/graph.cc | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/cmake/device/hw_ascend_npu.cmake b/cmake/device/hw_ascend_npu.cmake index 03b760c4a7..45672a51c3 100644 --- a/cmake/device/hw_ascend_npu.cmake +++ b/cmake/device/hw_ascend_npu.cmake @@ -34,7 +34,6 @@ include_directories("${ACL_INC}") # find ascendcl library find_library(ACL_LIB_FILE NAMES ascendcl PATHS ${ASCEND_HOME}/acllib/lib64) - if(NOT ACL_LIB_FILE) message(FATAL_ERROR "Can not find ACL Library in ${ASCEND_HOME}/acllib/lib64") else() @@ -45,7 +44,6 @@ endif() # find register library find_library(REG_LIB_FILE NAMES register PATHS ${ASCEND_HOME}/acllib/lib64) - if(NOT REG_LIB_FILE) message(FATAL_ERROR "Can not find REG Library in ${ASCEND_HOME}/acllib/lib64") else() @@ -56,7 +54,6 @@ endif() find_library(RT_LIB_FILE NAMES runtime PATHS ${ASCEND_HOME}/acllib/lib64) - if(NOT RT_LIB_FILE) message(FATAL_ERROR "Can not find RT Library in ${ASCEND_HOME}/acllib/lib64") else() @@ -101,7 +98,5 @@ else() set_property(TARGET opp_lib PROPERTY IMPORTED_LOCATION ${OPP_LIB_FILE}) endif() - set(hw_ascend_npu_builder_libs graph_lib opp_lib CACHE INTERNAL "ascend builder libs") - diff --git a/cmake/lite.cmake b/cmake/lite.cmake index c346784fbf..e546563c13 100644 --- a/cmake/lite.cmake +++ b/cmake/lite.cmake @@ -199,7 +199,7 @@ function(lite_cc_binary TARGET) NPU_DEPS ${args_NPU_DEPS} XPU_DEPS ${args_XPU_DEPS} HW_ASCEND_NPU_DEPS ${args_HW_ASCEND_NPU_DEPS} - BM_DEPS ${args_BM_DEPS} + BM_DEPS ${args_BM_DEPS} PROFILE_DEPS ${args_PROFILE_DEPS} LIGHT_DEPS ${args_LIGHT_DEPS} HVY_DEPS ${args_HVY_DEPS} diff --git a/lite/kernels/hw_ascend_npu/bridges/graph.cc b/lite/kernels/hw_ascend_npu/bridges/graph.cc index 76963f7ea9..b5567aa828 100644 --- a/lite/kernels/hw_ascend_npu/bridges/graph.cc +++ b/lite/kernels/hw_ascend_npu/bridges/graph.cc @@ -14,7 +14,7 @@ #include "lite/kernels/hw_ascend_npu/bridges/graph.h" /// reference from opp package -#include #include namespace paddle { -- GitLab