!429 support mindspore building tests

From: @nicholas_yhr
Reviewed-by: @youui,@liujunzhu
Signed-off-by: @liujunzhu
pull/429/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 6a61213c07

@ -156,6 +156,13 @@ elseif (ENABLE_D OR ENABLE_ACL)
find_module(register libregister.so ${ASCEND_MS_RUNTIME_PATH} ${ATLAS_MS_RUNTIME_PATH})
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)
add_subdirectory(metadef)
else()

@ -48,7 +48,7 @@ set_target_properties(ascend_protobuf_static_lib PROPERTIES
add_library(ascend_protobuf_static INTERFACE)
target_include_directories(ascend_protobuf_static INTERFACE ${PROTOBUF_STATIC_PKG_DIR}/include)
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)
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(plugin/engine)
add_subdirectory(graph/build/memory)
@ -600,7 +600,7 @@ set(INFER_SRC_LIST
"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 ############
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

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save