@@ -156,6 +156,13 @@ elseif (ENABLE_D OR ENABLE_ACL) | |||||
find_module(register libregister.so ${ASCEND_MS_RUNTIME_PATH} ${ATLAS_MS_RUNTIME_PATH}) | find_module(register libregister.so ${ASCEND_MS_RUNTIME_PATH} ${ATLAS_MS_RUNTIME_PATH}) | ||||
endif () | endif () | ||||
set(METADEF_DIR ${CMAKE_CURRENT_LIST_DIR}/metadef) | |||||
add_subdirectory(metadef) | |||||
elseif(ENABLE_MS_TESTCASE) | |||||
include(cmake/external_libs/protobuf_static.cmake) | |||||
include(cmake/external_libs/securec.cmake) | |||||
include(cmake/intf_pub_linux.cmake) | |||||
set(METADEF_DIR ${CMAKE_CURRENT_LIST_DIR}/metadef) | set(METADEF_DIR ${CMAKE_CURRENT_LIST_DIR}/metadef) | ||||
add_subdirectory(metadef) | add_subdirectory(metadef) | ||||
else() | else() | ||||
@@ -48,7 +48,7 @@ set_target_properties(ascend_protobuf_static_lib PROPERTIES | |||||
add_library(ascend_protobuf_static INTERFACE) | add_library(ascend_protobuf_static INTERFACE) | ||||
target_include_directories(ascend_protobuf_static INTERFACE ${PROTOBUF_STATIC_PKG_DIR}/include) | target_include_directories(ascend_protobuf_static INTERFACE ${PROTOBUF_STATIC_PKG_DIR}/include) | ||||
target_link_libraries(ascend_protobuf_static INTERFACE ascend_protobuf_static_lib) | target_link_libraries(ascend_protobuf_static INTERFACE ascend_protobuf_static_lib) | ||||
if (ENABLE_D OR ENABLE_ACL) | |||||
if (ENABLE_D OR ENABLE_ACL OR ENABLE_MS_TESTCASES) | |||||
include_directories(${PROTOBUF_STATIC_PKG_DIR}/include) | include_directories(${PROTOBUF_STATIC_PKG_DIR}/include) | ||||
endif () | endif () | ||||
@@ -1,4 +1,4 @@ | |||||
if (NOT ENABLE_D AND NOT ENABLE_ACL) | |||||
if (NOT ENABLE_D AND NOT ENABLE_ACL AND NOT ENABLE_MS_TESTCASES) | |||||
add_subdirectory(common) | add_subdirectory(common) | ||||
add_subdirectory(plugin/engine) | add_subdirectory(plugin/engine) | ||||
add_subdirectory(graph/build/memory) | add_subdirectory(graph/build/memory) | ||||
@@ -600,7 +600,7 @@ set(INFER_SRC_LIST | |||||
"analyzer/analyzer.cc" | "analyzer/analyzer.cc" | ||||
) | ) | ||||
if (NOT ENABLE_D AND NOT ENABLE_ACL) | |||||
if (NOT ENABLE_D AND NOT ENABLE_ACL AND NOT ENABLE_MS_TESTCASES) | |||||
############ libge_runner.so ############ | ############ libge_runner.so ############ | ||||
add_library(ge_runner SHARED ${TRAIN_SRC_LIST} ${PROTO_SRCS} ${PROTO_CLIENT_SRCS}) | add_library(ge_runner SHARED ${TRAIN_SRC_LIST} ${PROTO_SRCS} ${PROTO_CLIENT_SRCS}) | ||||
@@ -1 +1 @@ | |||||
Subproject commit 89590b3405f6c5714997c07f81470764ac66635b | |||||
Subproject commit 57e72aac24a35e40799e342fdacca362a66395c4 |
@@ -1 +1 @@ | |||||
Subproject commit c4f6e1e03ac58a5c24e9bd3a04634f7e7b3213c3 | |||||
Subproject commit bb6424dc6d9252a3ac70650cde2f547761237681 |