Browse Source

ge ut final

tags/v1.1.0
t00456437 4 years ago
parent
commit
61d4025cc5
5 changed files with 10 additions and 9 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +4
    -1
      build.sh
  3. +2
    -3
      cmake/external_libs/protobuf_shared.cmake
  4. +1
    -1
      cmake/external_libs/protobuf_static.cmake
  5. +2
    -3
      cmake/external_libs/protoc.cmake

+ 1
- 1
CMakeLists.txt View File

@@ -121,7 +121,7 @@ if (ENABLE_OPEN_SRC)
message(STATUS "PLATFORM param is invalid, should be train or inference, you choose nothing!")
endif()

if (ENABLE_GE_COV OR ENABLE_GE_UT OR ENABLE_GE_ST)
if (ENABLE_GE_COV OR ENABLE_GE_UT)
add_subdirectory(tests)
endif()



+ 4
- 1
build.sh View File

@@ -59,7 +59,7 @@ checkopts()
ENABLE_GE_ST="off"
ENABLE_GE_COV="off"
GE_ONLY="on"
PLATFORM="inference"
PLATFORM=""
PRODUCT="normal"
ENABLE_GITEE="off"
# Process the options
@@ -166,6 +166,9 @@ build_graphengine()
elif [ "x${PLATFORM}" = "xinference" ]
then
TARGET="ge_compiler atc_ge_local_engine atc_ge_local_opskernel_builder atc_host_cpu_engine atc_host_cpu_opskernel_builder atc opensrc_ascendcl ${TARGET}"
elif [ "X$ENABLE_GE_UT" = "Xon" ]
then
TARGET="ut_libgraph ut_libge_multiparts_utest ut_libge_others_utest ut_libge_kernel_utest ut_libge_distinct_load_utest"
elif [ "x${PLATFORM}" = "xall" ]
then
# build all the target


+ 2
- 3
cmake/external_libs/protobuf_shared.cmake View File

@@ -12,9 +12,8 @@ if ((${CMAKE_INSTALL_PREFIX} STREQUAL /usr/local) OR
endif()

if (ENABLE_GITEE)
#set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.8.0.tar.gz")
set(REQ_URL "/home/t00456437/workspace/v3.8.0.tar.gz")
#set(MD5 "eba86ae9f07ba5cfbaf8af3bc4e84236")
set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.8.0.tar.gz")
set(MD5 "eba86ae9f07ba5cfbaf8af3bc4e84236")
else()
set(REQ_URL "https://github.com/protocolbuffers/protobuf/archive/v3.8.0.tar.gz")
set(MD5 "3d9e32700639618a4d2d342c99d4507a")


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

@@ -20,7 +20,7 @@ set(protobuf_CXXFLAGS "-Wno-maybe-uninitialized -Wno-unused-parameter -fPIC -fst
set(protobuf_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
set(PROTOBUF_STATIC_PKG_DIR ${CMAKE_INSTALL_PREFIX}/protobuf_static)
ExternalProject_Add(protobuf_static_build
URL https://github.com/protocolbuffers/protobuf/archive/v3.8.0.tar.gz
URL ${REQ_URL}
#URL /home/txd/workspace/linux_cmake/pkg/protobuf-3.8.0.tar.gz
#SOURCE_DIR ${METADEF_DIR}/../../third_party/protobuf/src/protobuf-3.8.0
CONFIGURE_COMMAND ${CMAKE_COMMAND}


+ 2
- 3
cmake/external_libs/protoc.cmake View File

@@ -13,9 +13,8 @@ if ((${CMAKE_INSTALL_PREFIX} STREQUAL /usr/local) OR
endif()
if (ENABLE_GITEE)
#set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.8.0.tar.gz")
#set(MD5 "eba86ae9f07ba5cfbaf8af3bc4e84236")
set(REQ_URL "/home/t00456437/workspace/v3.8.0.tar.gz")
set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.8.0.tar.gz")
set(MD5 "eba86ae9f07ba5cfbaf8af3bc4e84236")
else()
set(REQ_URL "https://github.com/protocolbuffers/protobuf/archive/v3.8.0.tar.gz")
set(MD5 "3d9e32700639618a4d2d342c99d4507a")


Loading…
Cancel
Save