|
|
|
@ -49,6 +49,8 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(resource libresource.so ${GE_LIB_PATH})
|
|
|
|
|
find_module(error_manager liberror_manager.so ${GE_LIB_PATH})
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${GE_LIB_PATH})
|
|
|
|
|
find_module(error_manager_static liberror_manager.a ${GE_LIB_PATH})
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${GE_LIB_PATH})
|
|
|
|
|
else()
|
|
|
|
|
if(DEFINED ENV{ASCEND_CUSTOM_PATH})
|
|
|
|
|
set(ASCEND_DIR $ENV{ASCEND_CUSTOM_PATH})
|
|
|
|
@ -59,6 +61,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
set(ASCEND_DRIVER_COMMON_DIR ${ASCEND_DIR}/driver/lib64/common)
|
|
|
|
|
set(ASCEND_RUNTIME_DIR ${ASCEND_DIR}/fwkacllib/lib64)
|
|
|
|
|
set(ASCEND_ATC_DIR ${ASCEND_DIR}/atc/lib64)
|
|
|
|
|
set(ASCEND_ACL_DIR ${ASCEND_DIR}/acllib/lib64)
|
|
|
|
|
find_module(slog libslog.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(mmpa libmmpa.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(msprof libmsprof.so ${ASCEND_DRIVER_DIR})
|
|
|
|
@ -69,6 +72,8 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(resource libresource.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(error_manager liberror_manager.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(error_manager_static liberror_manager.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${ASCEND_ACL_DIR})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
set(METADEF_DIR ${CMAKE_CURRENT_LIST_DIR}/metadef)
|
|
|
|
|