diff --git a/build.sh b/build.sh index 4ebcad069c..31155e6bfc 100755 --- a/build.sh +++ b/build.sh @@ -566,7 +566,7 @@ build_lite() else mkdir -pv ${BASEPATH}/mindspore/lite/output/ if [[ "$LITE_PLATFORM" == "x86_64" ]]; then - OUTPUT_DIR=${BASEPATH}/mindspore/lite/output/MSLite-0.5.0-linux_x86_64 + OUTPUT_DIR=${BASEPATH}/output/MSLite-0.5.0-linux_x86_64 rm -rf ${OUTPUT_DIR} && mkdir -p ${OUTPUT_DIR} && cd ${OUTPUT_DIR} mkdir -p ${OUTPUT_DIR}/converter && mkdir -p ${OUTPUT_DIR}/time_profile mkdir -p ${OUTPUT_DIR}/benchmark && mkdir -p ${OUTPUT_DIR}/include && mkdir -p ${OUTPUT_DIR}/lib @@ -587,6 +587,8 @@ build_lite() cp -r ${BASEPATH}/third_party/flatbuffers/include/ ${OUTPUT_DIR}/third_party/flatbuffers/ cd .. tar -cf MSLite-0.5.0-linux_x86_64.tar.gz MSLite-0.5.0-linux_x86_64/ --warning=no-file-changed + sha256sum MSLite-0.5.0-linux_x86_64.tar.gz > MSLite-0.5.0-linux_x86_64.tar.gz.256sha + rm -rf MSLite-0.5.0-linux_x86_64/ elif [[ "$LITE_PLATFORM" == "arm64" ]]; then OUTPUT_DIR=${BASEPATH}/mindspore/lite/output/MSLite-0.5.0-linux_arm64 rm -rf ${OUTPUT_DIR} && mkdir -p ${OUTPUT_DIR} && cd ${OUTPUT_DIR} @@ -604,6 +606,8 @@ build_lite() cp -r ${BASEPATH}/third_party/flatbuffers/include/ ${OUTPUT_DIR}/third_party/flatbuffers/ cd .. tar -cf MSLite-0.5.0-linux_arm64.tar.gz MSLite-0.5.0-linux_arm64/ --warning=no-file-changed + sha256sum MSLite-0.5.0-linux_arm64.tar.gz > MSLite-0.5.0-linux_arm64.tar.gz.256sha + rm -rf MSLite-0.5.0-linux_arm64/ elif [[ "$LITE_PLATFORM" == "arm32" ]]; then OUTPUT_DIR=${BASEPATH}/mindspore/lite/output/MSLite-0.5.0-linux_arm32 rm -rf ${OUTPUT_DIR} && mkdir -p ${OUTPUT_DIR} && cd ${OUTPUT_DIR} @@ -621,6 +625,8 @@ build_lite() cp -r ${BASEPATH}/third_party/flatbuffers/include/ ${OUTPUT_DIR}/third_party/flatbuffers/ cd .. tar -cf MSLite-0.5.0-linux_arm32.tar.gz MSLite-0.5.0-linux_arm32/ --warning=no-file-changed + sha256sum MSLite-0.5.0-linux_arm32.tar.gz > MSLite-0.5.0-linux_arm32.tar.gz.256sha + rm -rf MSLite-0.5.0-linux_arm32/ fi echo "---------------- mindspore lite: build success ----------------" fi diff --git a/mindspore/lite/CMakeLists.txt b/mindspore/lite/CMakeLists.txt index fd70ace0fe..f35b5b60c1 100644 --- a/mindspore/lite/CMakeLists.txt +++ b/mindspore/lite/CMakeLists.txt @@ -17,6 +17,7 @@ include_directories(${TOP_DIR}/third_party) include_directories(${TOP_DIR}/third_party/flatbuffers/include) include(${TOP_DIR}/cmake/utils.cmake) +include(${TOP_DIR}/cmake/dependency_utils.cmake) include(${TOP_DIR}/cmake/external_libs/json.cmake) include(${TOP_DIR}/cmake/dependency_securec.cmake) set(CMAKE_VERBOSE_MAKEFILE on) diff --git a/mindspore/lite/build.sh b/mindspore/lite/build.sh deleted file mode 100755 index 15243f98c9..0000000000 --- a/mindspore/lite/build.sh +++ /dev/null @@ -1,272 +0,0 @@ -#!/usr/bin/env bash - -set -e - -CUR_DIR=$(cd "$(dirname $0)"; pwd) -BASE_DIR=${CUR_DIR}/../../ - -usage() -{ - echo "Usage:" - echo "bash build.sh [-d] [-a arm64|arm32] [-j[n]] [-m] [-f] [-g] [-c] [-s] [-o]" - echo "" - echo "Options:" - echo " -d Enable Debug" - echo " -c Enable compile converter, default off" - echo " -m Enable Incremental compilation" - echo " -a Select ARM platform, default off" - echo " -j[n] Set the threads when building, default: -j8" - echo " -f Compile fp16 ops" - echo " -g Enable gpu compile" - echo " -s Support train" - echo " -o Offline compile OpenCL kernel" -} - -checkopts() -{ - # Init default values of build options - THREAD_NUM="8" - BUILD_TYPE="Release" - BUILD_DEVICE_PLATFORM="off" - MAKE_ONLY="off" - ENABLE_FP16="off" - ENABLE_GPU="off" - ENABLE_CONVERTER="off" - SUPPORT_TRAIN="off" - OFFLINE_COMPILE="off" - - # Process the options - while getopts 'j:da:mfcsgo' opt - do - OPTARG=$(echo ${OPTARG} | tr '[A-Z]' '[a-z]') - case "${opt}" in - m) - MAKE_ONLY="on" - echo "Incremental compilation" - ;; - d) - BUILD_TYPE="Debug" - echo "Build Debug version" - ;; - j) - THREAD_NUM=$OPTARG - ;; - a) - if [[ "X$OPTARG" == "Xarm64" ]]; then - BUILD_DEVICE_PLATFORM="arm64" - echo "Enable arm64" - elif [[ "X$OPTARG" == "Xarm32" ]]; then - BUILD_DEVICE_PLATFORM="arm32" - echo "Enable arm32" - else - echo "-I parameter must be arm64 or arm32" - exit 1 - fi - ;; - c) - ENABLE_CONVERTER="on" - echo "Enable converter" - ;; - s) - SUPPORT_TRAIN="on" - echo "Support train" - ;; - f) - ENABLE_FP16="on" - echo "Enable fp16" - ;; - g) - ENABLE_GPU="on" - echo "Enable gpu" - ;; - o) - OFFLINE_COMPILE="on" - echo "OpenCL kernel offline compile" - ;; - *) - echo "Unknown option ${opt}!" - usage - exit 1 - esac - done -} - -checkndk() { - if [ "${ANDROID_NDK}" ]; then - echo -e "\e[31mANDROID_NDK_PATH=$ANDROID_NDK \e[0m" - else - echo -e "\e[31mplease set ANDROID_NDK_PATH in environment variable for example: export ANDROID_NDK=/root/usr/android-ndk-r16b/ \e[0m" - exit 1 - fi -} - -gene_flatbuffer() { - FLAT_DIR="${BASE_DIR}/mindspore/lite/schema" - cd ${FLAT_DIR} && rm -rf "${FLAT_DIR}/inner" && mkdir -p "${FLAT_DIR}/inner" - find . -name "*.fbs" -print0 | xargs -0 "${FLATC}" -c -b - find . -name "*.fbs" -print0 | xargs -0 "${FLATC}" -c -b --reflect-types --gen-mutable --reflect-names --gen-object-api -o "${FLAT_DIR}/inner" - - FLAT_DIR="${BASE_DIR}/mindspore/lite/tools/converter/parser/tflite" - cd ${FLAT_DIR} - find . -name "*.fbs" -print0 | xargs -0 "${FLATC}" -c -b --reflect-types --gen-mutable --reflect-names --gen-object-api -o "${FLAT_DIR}/" -} - -build_flatbuffer() { - cd ${BASE_DIR} - FLATC="${BASE_DIR}"/third_party/flatbuffers/build/flatc - if [[ ! -f "${FLATC}" ]]; then - git submodule update --init --recursive third_party/flatbuffers - cd ${BASE_DIR}/third_party/flatbuffers - rm -rf build && mkdir -pv build && cd build && cmake .. && make -j$THREAD_NUM - gene_flatbuffer - fi - if [[ "${MAKE_ONLY}" == "off" ]]; then - gene_flatbuffer - fi -} - -gene_protobuf() { - PROTO_SRC_DIR="${BASE_DIR}/mindspore/lite/tools/converter/parser/caffe" - find ${PROTO_SRC_DIR} -name "*.proto" -print0 | xargs -0 "${PROTOC}" -I"${PROTO_SRC_DIR}" --cpp_out="${PROTO_SRC_DIR}" - PROTO_SRC_DIR="${BASE_DIR}/mindspore/lite/tools/converter/parser/onnx" - find ${PROTO_SRC_DIR} -name "*.proto" -print0 | xargs -0 "${PROTOC}" -I"${PROTO_SRC_DIR}" --cpp_out="${PROTO_SRC_DIR}" -} - -build_protobuf() { - cd ${BASE_DIR} - PROTOC="${BASE_DIR}"/third_party/protobuf/build/bin/protoc - if [[ ! -f "${PROTOC}" ]]; then - git submodule update --init --recursive third_party/protobuf - cd ${BASE_DIR}/third_party/protobuf - rm -rf build && mkdir -pv build && ./autogen.sh - ./configure --prefix=${BASE_DIR}/third_party/protobuf/build - make clean && make -j$THREAD_NUM && make install - gene_protobuf - fi - if [[ "${MAKE_ONLY}" == "off" ]]; then - gene_protobuf - fi -} - -build_gtest() { - cd ${BASE_DIR} - git submodule update --init --recursive third_party/googletest -} - -gene_clhpp() { - CL_SRC_DIR="${BASE_DIR}/mindspore/lite/src/runtime/kernel/opencl/cl" - for sub_dir in "${CL_SRC_DIR}"/* - do - data_type="$(basename ${sub_dir})" - if [ ! -d ${CL_SRC_DIR}/${data_type} ]; then - continue - fi - cd ${CL_SRC_DIR}/${data_type} - rm -rf *.inc - echo "$(cd "$(dirname $0)"; pwd)" - for file_path in "${CL_SRC_DIR}/${data_type}"/* - do - file="$(basename ${file_path})" - inc_file=`echo ${CL_SRC_DIR}/${data_type}/${file} | sed 's/$/.inc/'` - sed 's/^/\"/;s/$/ \\n\" \\/' ${CL_SRC_DIR}/${data_type}/${file} > ${inc_file} - kernel_name=`echo ${file} | sed s'/.\{3\}$//'` - sed -i "1i\static const char *${kernel_name}_source_${data_type} =\"\\n\" \\" ${inc_file} - sed -i '$a\;' ${inc_file} - done - done -} - -gene_ocl_program() { - CL_SRC_DIR="${BASE_DIR}/mindspore/lite/src/runtime/kernel/opencl/cl" - SPIRV_DIR=build/spirv - rm -rf ${SPIRV_DIR} - mkdir -pv ${SPIRV_DIR} - for sub_dir in "${CL_SRC_DIR}"/* - do - data_type="$(basename ${sub_dir})" - if [ ! -d ${CL_SRC_DIR}/${data_type} ]; then - continue - fi - #echo $(cd "$(dirname $0)"; pwd) - for file_path in "${CL_SRC_DIR}/${data_type}"/* - do - file="$(basename ${file_path})" - if [ "${file##*.}" != "cl" ]; then - continue - fi - clang -Xclang -finclude-default-header -cl-std=CL2.0 --target=spir64-unknown-unknown -emit-llvm \ - -c -O0 -o ${SPIRV_DIR}/${file%.*}.bc ${CL_SRC_DIR}/${data_type}/${file} - done - done - - bcs=`ls ${SPIRV_DIR}/*.bc` - llvm-link ${bcs} -o ${SPIRV_DIR}/program.bc - llvm-spirv -o ${SPIRV_DIR}/program.spv ${SPIRV_DIR}/program.bc - - CL_PROGRAM_PATH="${BASE_DIR}/mindspore/lite/src/runtime/kernel/opencl/cl/program.inc" - echo "#include " > ${CL_PROGRAM_PATH} - echo "std::vector g_program_binary = {" >> ${CL_PROGRAM_PATH} - #hexdump -v -e '16/1 "0x%02x, " "\n"' ${SPIRV_DIR}/program.spv >> ${CL_PROGRAM_PATH} - hexdump -v -e '1/1 "0x%02x, "' ${SPIRV_DIR}/program.spv >> ${CL_PROGRAM_PATH} - echo "};" >> ${CL_PROGRAM_PATH} - echo "Compile SPIRV done" -} - -build_opencl() { - cd ${BASE_DIR} - git submodule update --init third_party/OpenCL-Headers - git submodule update --init third_party/OpenCL-CLHPP - if [[ "${OFFLINE_COMPILE}" == "on" ]]; then - gene_ocl_program - else - gene_clhpp - fi -} - -buildlite() { - if [[ "${MAKE_ONLY}" == "off" ]]; then - cd ${CUR_DIR} - rm -rf build - mkdir -pv build - cd build - if [[ "${BUILD_DEVICE_PLATFORM}" == "arm64" ]]; then - checkndk - cmake -DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" -DANDROID_NATIVE_API_LEVEL="19" \ - -DANDROID_NDK="${ANDROID_NDK}" -DANDROID_ABI="arm64-v8a" -DANDROID_TOOLCHAIN_NAME="aarch64-linux-android-clang" \ - -DANDROID_STL="c++_shared" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DSUPPORT_TRAIN=${SUPPORT_TRAIN} \ - -DBUILD_DEVICE=on -DPLATFORM_ARM64=on -DBUILD_CONVERTER=off -DENABLE_NEON=on -DENABLE_FP16="${ENABLE_FP16}" \ - -DSUPPORT_GPU=${ENABLE_GPU} -DOFFLINE_COMPILE=${OFFLINE_COMPILE} .. - elif [[ "${BUILD_DEVICE_PLATFORM}" == "arm32" ]]; then - checkndk - cmake -DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" -DANDROID_NATIVE_API_LEVEL="19" \ - -DANDROID_NDK="${ANDROID_NDK}" -DANDROID_ABI="armeabi-v7a" -DANDROID_TOOLCHAIN_NAME="clang" \ - -DANDROID_STL="c++_shared" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \ - -DBUILD_DEVICE=on -DPLATFORM_ARM32=on -DENABLE_NEON=on -DSUPPORT_TRAIN=${SUPPORT_TRAIN} -DBUILD_CONVERTER=off \ - -DSUPPORT_GPU=${ENABLE_GPU} -DOFFLINE_COMPILE=${OFFLINE_COMPILE} .. - else - cmake -DBUILD_DEVICE=on -DPLATFORM_ARM64=off -DBUILD_CONVERTER=${ENABLE_CONVERTER} -DSUPPORT_TRAIN=${SUPPORT_TRAIN} \ - -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DSUPPORT_GPU=${ENABLE_GPU} -DOFFLINE_COMPILE=${OFFLINE_COMPILE} .. - fi - else - cd ${CUR_DIR}/build - fi - VERBOSE=2 make -j$THREAD_NUM -} - -echo "---------------- mindspore lite: build start ----------------" -checkopts "$@" -build_flatbuffer -if [[ "${ENABLE_CONVERTER}" == "on" ]]; then - build_protobuf -fi -if [[ "${ENABLE_GPU}" == "on" ]]; then - build_opencl -fi -build_gtest -buildlite -COMPILE_RET=$? -if [[ "${COMPILE_RET}" -ne 0 ]]; then - echo "---------------- mindspore lite: build failed ----------------" -else - echo "---------------- mindspore lite: build success ----------------" -fi diff --git a/mindspore/lite/cmake-build-cloud/Lite.cbp b/mindspore/lite/cmake-build-cloud/Lite.cbp deleted file mode 100644 index c33b0880ed..0000000000 --- a/mindspore/lite/cmake-build-cloud/Lite.cbp +++ /dev/null @@ -1,4235 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-cloud/googletest/CTestTestfile.cmake b/mindspore/lite/cmake-build-cloud/googletest/CTestTestfile.cmake deleted file mode 100644 index 08108fdcf4..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/CTestTestfile.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# CMake generated Testfile for -# Source directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/third_party/googletest -# Build directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/mindspore/lite/cmake-build-cloud/googletest -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("googlemock") diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/CTestTestfile.cmake b/mindspore/lite/cmake-build-cloud/googletest/googlemock/CTestTestfile.cmake deleted file mode 100644 index 4b7b83c241..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/CTestTestfile.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# CMake generated Testfile for -# Source directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/third_party/googletest/googlemock -# Build directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/mindspore/lite/cmake-build-cloud/googletest/googlemock -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("gtest") diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gmock.cbp b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gmock.cbp deleted file mode 100644 index d4b5f94e6f..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gmock.cbp +++ /dev/null @@ -1,517 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/CTestTestfile.cmake b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/CTestTestfile.cmake deleted file mode 100644 index fe5ea99621..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/third_party/googletest/googletest -# Build directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/GTestConfig.cmake b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/GTestConfig.cmake deleted file mode 100644 index 0ee9ec8f9f..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/GTestConfig.cmake +++ /dev/null @@ -1,33 +0,0 @@ - -####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### -####### Any changes to this file will be overwritten by the next CMake run #### -####### The input file was Config.cmake.in ######## - -get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) - -macro(set_and_check _var _file) - set(${_var} "${_file}") - if(NOT EXISTS "${_file}") - message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") - endif() -endmacro() - -macro(check_required_components _NAME) - foreach(comp ${${_NAME}_FIND_COMPONENTS}) - if(NOT ${_NAME}_${comp}_FOUND) - if(${_NAME}_FIND_REQUIRED_${comp}) - set(${_NAME}_FOUND FALSE) - endif() - endif() - endforeach() -endmacro() - -#################################################################################### -include(CMakeFindDependencyMacro) -if (ON) - set(THREADS_PREFER_PTHREAD_FLAG ON) - find_dependency(Threads) -endif() - -include("${CMAKE_CURRENT_LIST_DIR}/GTestTargets.cmake") -check_required_components("") diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/GTestConfigVersion.cmake b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/GTestConfigVersion.cmake deleted file mode 100644 index b12397d658..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/GTestConfigVersion.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# This is a basic version file for the Config-mode of find_package(). -# It is used by write_basic_package_version_file() as input file for configure_file() -# to create a version-file which can be installed along a config.cmake file. -# -# The created file sets PACKAGE_VERSION_EXACT if the current version string and -# the requested version string are exactly the same and it sets -# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. -# The variable CVF_VERSION must be set before calling configure_file(). - -set(PACKAGE_VERSION "1.9.0") - -if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) - set(PACKAGE_VERSION_COMPATIBLE FALSE) -else() - set(PACKAGE_VERSION_COMPATIBLE TRUE) - if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) - set(PACKAGE_VERSION_EXACT TRUE) - endif() -endif() - - -# if the installed project requested no architecture check, don't perform the check -if("FALSE") - return() -endif() - -# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: -if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") - return() -endif() - -# check that the installed version has the same 32/64bit-ness as the one which is currently searching: -if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") - math(EXPR installedBits "8 * 8") - set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") - set(PACKAGE_VERSION_UNSUITABLE TRUE) -endif() diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gmock.pc b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gmock.pc deleted file mode 100644 index d4242cfa66..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gmock.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gmock -Description: GoogleMock (without main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgmock -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gmock_main.pc b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gmock_main.pc deleted file mode 100644 index 2da4fbcc01..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gmock_main.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gmock_main -Description: GoogleMock (with main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgmock_main -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gtest.pc b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gtest.pc deleted file mode 100644 index a9931b8be9..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gtest.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gtest -Description: GoogleTest (without main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgtest -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gtest_main.pc b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gtest_main.pc deleted file mode 100644 index 57948c76ee..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/generated/gtest_main.pc +++ /dev/null @@ -1,10 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gtest_main -Description: GoogleTest (with main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Requires: gtest -Libs: -L${libdir} -lgtest_main -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/gtest.cbp b/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/gtest.cbp deleted file mode 100644 index df1d2d30c9..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googlemock/gtest/gtest.cbp +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-cloud/googletest/googletest-distribution.cbp b/mindspore/lite/cmake-build-cloud/googletest/googletest-distribution.cbp deleted file mode 100644 index 933a58b237..0000000000 --- a/mindspore/lite/cmake-build-cloud/googletest/googletest-distribution.cbp +++ /dev/null @@ -1,517 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-cloud/src/runtime/kernel/arm/opclib/optimize.cbp b/mindspore/lite/cmake-build-cloud/src/runtime/kernel/arm/opclib/optimize.cbp deleted file mode 100644 index 2e3dd81d81..0000000000 --- a/mindspore/lite/cmake-build-cloud/src/runtime/kernel/arm/opclib/optimize.cbp +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-minnie/Lite.cbp b/mindspore/lite/cmake-build-minnie/Lite.cbp deleted file mode 100644 index 686f790850..0000000000 --- a/mindspore/lite/cmake-build-minnie/Lite.cbp +++ /dev/null @@ -1,4235 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-minnie/googletest/CTestTestfile.cmake b/mindspore/lite/cmake-build-minnie/googletest/CTestTestfile.cmake deleted file mode 100644 index 356aeec8f0..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/CTestTestfile.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# CMake generated Testfile for -# Source directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/third_party/googletest -# Build directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/mindspore/lite/cmake-build-minnie/googletest -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("googlemock") diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/CTestTestfile.cmake b/mindspore/lite/cmake-build-minnie/googletest/googlemock/CTestTestfile.cmake deleted file mode 100644 index 59a3fc27a5..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/CTestTestfile.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# CMake generated Testfile for -# Source directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/third_party/googletest/googlemock -# Build directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/mindspore/lite/cmake-build-minnie/googletest/googlemock -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("gtest") diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gmock.cbp b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gmock.cbp deleted file mode 100644 index 5ed2a552da..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gmock.cbp +++ /dev/null @@ -1,517 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/CTestTestfile.cmake b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/CTestTestfile.cmake deleted file mode 100644 index caf7474c1d..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/third_party/googletest/googletest -# Build directory: /mnt/data/workspace/OpenAI/Huawei/mindspore/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/GTestConfig.cmake b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/GTestConfig.cmake deleted file mode 100644 index 0ee9ec8f9f..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/GTestConfig.cmake +++ /dev/null @@ -1,33 +0,0 @@ - -####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### -####### Any changes to this file will be overwritten by the next CMake run #### -####### The input file was Config.cmake.in ######## - -get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) - -macro(set_and_check _var _file) - set(${_var} "${_file}") - if(NOT EXISTS "${_file}") - message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") - endif() -endmacro() - -macro(check_required_components _NAME) - foreach(comp ${${_NAME}_FIND_COMPONENTS}) - if(NOT ${_NAME}_${comp}_FOUND) - if(${_NAME}_FIND_REQUIRED_${comp}) - set(${_NAME}_FOUND FALSE) - endif() - endif() - endforeach() -endmacro() - -#################################################################################### -include(CMakeFindDependencyMacro) -if (ON) - set(THREADS_PREFER_PTHREAD_FLAG ON) - find_dependency(Threads) -endif() - -include("${CMAKE_CURRENT_LIST_DIR}/GTestTargets.cmake") -check_required_components("") diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/GTestConfigVersion.cmake b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/GTestConfigVersion.cmake deleted file mode 100644 index b12397d658..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/GTestConfigVersion.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# This is a basic version file for the Config-mode of find_package(). -# It is used by write_basic_package_version_file() as input file for configure_file() -# to create a version-file which can be installed along a config.cmake file. -# -# The created file sets PACKAGE_VERSION_EXACT if the current version string and -# the requested version string are exactly the same and it sets -# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. -# The variable CVF_VERSION must be set before calling configure_file(). - -set(PACKAGE_VERSION "1.9.0") - -if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) - set(PACKAGE_VERSION_COMPATIBLE FALSE) -else() - set(PACKAGE_VERSION_COMPATIBLE TRUE) - if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) - set(PACKAGE_VERSION_EXACT TRUE) - endif() -endif() - - -# if the installed project requested no architecture check, don't perform the check -if("FALSE") - return() -endif() - -# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: -if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") - return() -endif() - -# check that the installed version has the same 32/64bit-ness as the one which is currently searching: -if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") - math(EXPR installedBits "8 * 8") - set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") - set(PACKAGE_VERSION_UNSUITABLE TRUE) -endif() diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gmock.pc b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gmock.pc deleted file mode 100644 index d4242cfa66..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gmock.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gmock -Description: GoogleMock (without main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgmock -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gmock_main.pc b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gmock_main.pc deleted file mode 100644 index 2da4fbcc01..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gmock_main.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gmock_main -Description: GoogleMock (with main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgmock_main -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gtest.pc b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gtest.pc deleted file mode 100644 index a9931b8be9..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gtest.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gtest -Description: GoogleTest (without main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgtest -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gtest_main.pc b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gtest_main.pc deleted file mode 100644 index 57948c76ee..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/generated/gtest_main.pc +++ /dev/null @@ -1,10 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gtest_main -Description: GoogleTest (with main() function) -Version: 1.9.0 -URL: https://github.com/google/googletest -Requires: gtest -Libs: -L${libdir} -lgtest_main -pthread -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -pthread diff --git a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/gtest.cbp b/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/gtest.cbp deleted file mode 100644 index b79931c448..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googlemock/gtest/gtest.cbp +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-minnie/googletest/googletest-distribution.cbp b/mindspore/lite/cmake-build-minnie/googletest/googletest-distribution.cbp deleted file mode 100644 index 429f759103..0000000000 --- a/mindspore/lite/cmake-build-minnie/googletest/googletest-distribution.cbp +++ /dev/null @@ -1,517 +0,0 @@ - - - - - - diff --git a/mindspore/lite/cmake-build-minnie/src/runtime/kernel/arm/opclib/optimize.cbp b/mindspore/lite/cmake-build-minnie/src/runtime/kernel/arm/opclib/optimize.cbp deleted file mode 100644 index 07af7ee779..0000000000 --- a/mindspore/lite/cmake-build-minnie/src/runtime/kernel/arm/opclib/optimize.cbp +++ /dev/null @@ -1,112 +0,0 @@ - - - - - -