|
|
|
@ -74,7 +74,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
set(STATIC_ACL_LIB ${GE_LIB_PATH})
|
|
|
|
|
find_module(slog libslog.so ${GE_LIB_PATH})
|
|
|
|
|
find_module(static_mmpa libmmpa.a ${GE_LIB_PATH})
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${GE_LIB_PATH})
|
|
|
|
|
find_module(msprofiler_ext libmsprofiler.a ${GE_LIB_PATH})
|
|
|
|
|
find_module(hccl libhccl.so ${GE_LIB_PATH})
|
|
|
|
|
find_module(adump_server libadump_server.a ${GE_LIB_PATH})
|
|
|
|
|
find_module(runtime libruntime.so ${GE_LIB_PATH})
|
|
|
|
@ -83,7 +83,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
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_fwk libmsprofiler_fwk.a ${GE_LIB_PATH})
|
|
|
|
|
find_module(msprofiler_fwk_ext libmsprofiler_fwk.a ${GE_LIB_PATH})
|
|
|
|
|
#find_module(ascendcl_static libascendcl.a ${GE_LIB_PATH})
|
|
|
|
|
elseif(ENABLE_GE_COV OR ENABLE_GE_UT)
|
|
|
|
|
add_subdirectory(tests)
|
|
|
|
@ -97,7 +97,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(runtime libruntime.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(resource libresource.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(error_manager liberror_manager.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(msprofiler_fwk libmsprofiler_fwk.a ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(msprofiler_fwk_ext libmsprofiler_fwk.a ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
|
|
|
|
|
if(PRODUCT STREQUAL "flr3")
|
|
|
|
|
message(FATAL_ERROR "This platform is not supported in train mode, build terminated")
|
|
|
|
@ -109,7 +109,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(resource libresource.so ${ASCEND_ATC_DIR})
|
|
|
|
|
find_module(error_manager liberror_manager.so ${ASCEND_ATC_DIR})
|
|
|
|
|
find_module(error_manager_static liberror_manager.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler_ext libmsprofiler.a ${ASCEND_ACL_DIR})
|
|
|
|
|
#find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
if(PRODUCT STREQUAL "flr3")
|
|
|
|
|
elseif(PRODUCT STREQUAL "flr1")
|
|
|
|
@ -120,7 +120,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
endif()
|
|
|
|
|
elseif(PLATFORM STREQUAL "all")
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler_ext libmsprofiler.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(hccl libhccl.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(adump_server libadump_server.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(runtime libruntime.so ${ASCEND_ACL_DIR})
|
|
|
|
@ -128,7 +128,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(resource libresource.so ${ASCEND_ATC_DIR})
|
|
|
|
|
find_module(error_manager liberror_manager.so ${ASCEND_ATC_DIR})
|
|
|
|
|
find_module(error_manager_static liberror_manager.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler_fwk libmsprofiler_fwk.a ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(msprofiler_fwk_ext libmsprofiler_fwk.a ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
|
|
|
|
|
#find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
else()
|
|
|
|
|