Browse Source

support mindspore building tests

tags/v1.1.0
yanghaoran 4 years ago
parent
commit
a9ce7611c8
7 changed files with 12 additions and 5 deletions
  1. +7
    -0
      CMakeLists.txt
  2. +1
    -1
      cmake/external_libs/protobuf_static.cmake
  3. +2
    -2
      ge/CMakeLists.txt
  4. +1
    -1
      metadef
  5. +1
    -1
      parser
  6. BIN
      third_party/prebuild/aarch64/libmmpa.a
  7. BIN
      third_party/prebuild/x86_64/libmmpa.a

+ 7
- 0
CMakeLists.txt View File

@@ -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()


+ 1
- 1
cmake/external_libs/protobuf_static.cmake View File

@@ -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 ()



+ 2
- 2
ge/CMakeLists.txt View File

@@ -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
metadef

@@ -1 +1 @@
Subproject commit 89590b3405f6c5714997c07f81470764ac66635b
Subproject commit 57e72aac24a35e40799e342fdacca362a66395c4

+ 1
- 1
parser

@@ -1 +1 @@
Subproject commit c4f6e1e03ac58a5c24e9bd3a04634f7e7b3213c3
Subproject commit bb6424dc6d9252a3ac70650cde2f547761237681

BIN
third_party/prebuild/aarch64/libmmpa.a View File


BIN
third_party/prebuild/x86_64/libmmpa.a View File


Loading…
Cancel
Save