forked from jiuyuan/InfiniTensor
fix
This commit is contained in:
parent
cc057bcf80
commit
11e2b08be3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue