From 11e2b08be37bfcb96793f62c75c3e142ab0ab4fa Mon Sep 17 00:00:00 2001 From: wanghailu0717 Date: Thu, 26 Oct 2023 10:18:15 +0800 Subject: [PATCH] fix --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2efc84fd..e6cd4b11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,7 +312,7 @@ if(USE_ASCEND) find_library(ASCEND_BASE libnnopbase.so "${ASCEND_HOME}/lib64") find_library(ASCEND_DNN libopapi.so "${ASCEND_HOME}/lib64") find_library(ASCEND_HAL libascend_hal.so "${ASCEND_HOME}/../../driver/lib64/driver") - find_library(ASCEND_RT libruntime.so "${ASCEND_HOME}/lib64") + # find_library(ASCEND_RT libruntime.so "${ASCEND_HOME}/lib64") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lstdc++ -Wall -Werror") if ((NOT DEFINED TARGET_CPU_ARCH) AND (NOT DEFINED ENV{TARGET_CPU_ARCH})) execute_process(COMMAND uname -m OUTPUT_VARIABLE _uname_m OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -323,7 +323,7 @@ if(USE_ASCEND) set(TARGET_CPU_ARCH $ENV{TARGET_CPU_ARCH} CACHE STRING "Target CPU ARCH") endif() message(STATUS "TARGET_CPU_ARCH: ${TARGET_CPU_ARCH}") - target_link_libraries(InfiniTensor ${ASCEND_RT} ${ASCEND_HAL} ${ASCEND_CL} ${ASCEND_BASE} ${ASCEND_DNN} stdc++) + target_link_libraries(InfiniTensor ${ASCEND_HAL} ${ASCEND_CL} ${ASCEND_BASE} ${ASCEND_DNN} stdc++) endif() # # Python bindings