|
|
|
@ -16,8 +16,11 @@ endif()
|
|
|
|
|
|
|
|
|
|
if(DEFINED ENV{D_PKG_SERVER})
|
|
|
|
|
set(GE_PB_PKG $ENV{D_PKG_SERVER})
|
|
|
|
|
message("Download packages from PKG server")
|
|
|
|
|
endif()
|
|
|
|
|
message("Download packages from DPKG server")
|
|
|
|
|
elseif(DEFINED ENV{MSLIBS_SERVER})
|
|
|
|
|
set(GE_PB_PKG "http://$ENV{MSLIBS_SERVER}:8081")
|
|
|
|
|
message("Download packages from MSPKG server")
|
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
set(ASCEND_DRIVER_DIR ${ASCEND_DIR}/driver/lib64)
|
|
|
|
|
set(ASCEND_DRIVER_COMMON_DIR ${ASCEND_DIR}/driver/lib64/common)
|
|
|
|
@ -105,7 +108,7 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
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(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
#find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
if(PRODUCT STREQUAL "flr3")
|
|
|
|
|
elseif(PRODUCT STREQUAL "flr1")
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
|
|
|
|
@ -127,10 +130,10 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
|
|
|
|
|
#find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
else()
|
|
|
|
|
message(STATUS "PLATFORM param is invalid, should be train or inference, you choose nothing!")
|
|
|
|
|
message(STATUS "PLATFORM param is invalid, should be train or inference, you choose nothing!")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (ENABLE_GE_COV OR ENABLE_GE_UT)
|
|
|
|
|
if (ENABLE_GE_COV OR ENABLE_GE_UT)
|
|
|
|
|
add_subdirectory(tests)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|