|
@@ -79,8 +79,6 @@ if (ENABLE_OPEN_SRC) |
|
|
find_module(ascend_hal_stub libascend_hal.so ${GE_LIB_PATH}) |
|
|
find_module(ascend_hal_stub libascend_hal.so ${GE_LIB_PATH}) |
|
|
find_module(msprofiler_fwk_ext 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}) |
|
|
#find_module(ascendcl_static libascendcl.a ${GE_LIB_PATH}) |
|
|
elseif(ENABLE_GE_COV OR ENABLE_GE_UT) |
|
|
|
|
|
add_subdirectory(tests) |
|
|
|
|
|
else() |
|
|
else() |
|
|
find_module(slog libalog.so ${ASCEND_ATC_DIR}) |
|
|
find_module(slog libalog.so ${ASCEND_ATC_DIR}) |
|
|
find_module(static_mmpa libmmpa.a ${ASCEND_ATC_DIR}) |
|
|
find_module(static_mmpa libmmpa.a ${ASCEND_ATC_DIR}) |
|
@@ -95,7 +93,7 @@ if (ENABLE_OPEN_SRC) |
|
|
elseif(PLATFORM STREQUAL "inference") |
|
|
elseif(PLATFORM STREQUAL "inference") |
|
|
find_module(adump_server libadump_server.a ${ASCEND_ACL_DIR}) |
|
|
find_module(adump_server libadump_server.a ${ASCEND_ACL_DIR}) |
|
|
find_module(runtime libruntime.so ${ASCEND_ACL_DIR}) |
|
|
find_module(runtime libruntime.so ${ASCEND_ACL_DIR}) |
|
|
find_module(runtime_compile libruntime_compile.so ${ASCEND_ATC_DIR}) |
|
|
|
|
|
|
|
|
find_module(runtime_compile libruntime_compile.so ${ASCEND_ATC_DIR}) |
|
|
find_module(msprofiler_ext libmsprofiler.a ${ASCEND_ACL_DIR}) |
|
|
find_module(msprofiler_ext libmsprofiler.a ${ASCEND_ACL_DIR}) |
|
|
if(PRODUCT STREQUAL "flr3") |
|
|
if(PRODUCT STREQUAL "flr3") |
|
|
elseif(PRODUCT STREQUAL "flr1") |
|
|
elseif(PRODUCT STREQUAL "flr1") |
|
@@ -106,17 +104,21 @@ if (ENABLE_OPEN_SRC) |
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}) |
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}) |
|
|
endif() |
|
|
endif() |
|
|
elseif(PLATFORM STREQUAL "all") |
|
|
elseif(PLATFORM STREQUAL "all") |
|
|
find_module(adump_server libadump_server.a ${ASCEND_RUNTIME_DIR}) |
|
|
|
|
|
find_module(runtime libruntime.so ${ASCEND_RUNTIME_DIR}) |
|
|
|
|
|
|
|
|
find_module(adump_server libadump_server.a ${ASCEND_RUNTIME_DIR}) |
|
|
|
|
|
find_module(runtime libruntime.so ${ASCEND_RUNTIME_DIR}) |
|
|
find_module(msprofiler_fwk_ext 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}) |
|
|
|
|
|
find_module(runtime_compile libruntime_compile.so ${ASCEND_ATC_DIR}) |
|
|
|
|
|
find_module(msprofiler_ext libmsprofiler.a ${ASCEND_ACL_DIR}) |
|
|
|
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver) |
|
|
|
|
|
find_module(runtime_compile libruntime_compile.so ${ASCEND_ATC_DIR}) |
|
|
|
|
|
find_module(msprofiler_ext libmsprofiler.a ${ASCEND_ACL_DIR}) |
|
|
else() |
|
|
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() |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(ENABLE_GE_COV OR ENABLE_GE_UT) |
|
|
|
|
|
add_subdirectory(tests) |
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
set(METADEF_DIR ${CMAKE_CURRENT_LIST_DIR}/metadef) |
|
|
set(METADEF_DIR ${CMAKE_CURRENT_LIST_DIR}/metadef) |
|
|
set(PARSER_DIR ${CMAKE_CURRENT_LIST_DIR}/parser) |
|
|
set(PARSER_DIR ${CMAKE_CURRENT_LIST_DIR}/parser) |
|
|
set(GE_DEPEND_DIR ${CMAKE_CURRENT_LIST_DIR}/..) |
|
|
set(GE_DEPEND_DIR ${CMAKE_CURRENT_LIST_DIR}/..) |
|
|