From 8e5af5c310f309ad27139e1f124c89782eb2d216 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Sun, 16 Oct 2022 15:56:44 +0800 Subject: [PATCH 01/16] Add falcon cmake --- CMakeLists.txt | 29 ++----- FastDeploy.cmake.in | 2 +- cmake/falconcv.cmake | 87 ++++++++++++++++++++ fastdeploy/vision/common/processors/mat.h | 7 +- fastdeploy/vision/common/processors/utils.cc | 7 +- fastdeploy/vision/common/processors/utils.h | 4 + 6 files changed, 104 insertions(+), 32 deletions(-) create mode 100644 cmake/falconcv.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 783130766fd..794423821de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,14 +51,13 @@ endif() ############################# Basic Options for FastDeploy ################################ option(ENABLE_PADDLE_FRONTEND "Whether to enable PaddlePaddle frontend to support load paddle model in fastdeploy." ON) -option(WITH_GPU "Whether WITH_GPU=ON, will enable onnxruntime-gpu/paddle-infernce-gpu" OFF) +option(WITH_GPU "Whether WITH_GPU=ON, will enable onnxruntime-gpu/paddle-inference-gpu" OFF) option(ENABLE_ORT_BACKEND "Whether to enable onnxruntime backend." OFF) option(ENABLE_TRT_BACKEND "Whether to enable tensorrt backend." OFF) option(ENABLE_PADDLE_BACKEND "Whether to enable paddle backend." OFF) option(ENABLE_OPENVINO_BACKEND "Whether to enable openvino backend." OFF) option(ENABLE_LITE_BACKEND "Whether to enable paddle lite backend." OFF) option(ENABLE_VISION "Whether to enable vision models usage." OFF) -option(ENABLE_VISION_VISUALIZE "Whether to enable visualize vision model result toolbox." ON) option(ENABLE_TEXT "Whether to enable text models usage." OFF) option(WITH_TESTING "Whether to compile with unittest." OFF) ############################# Options for Android cross compiling ######################### @@ -67,10 +66,6 @@ option(WITH_LITE_STATIC "Use Paddle Lite static lib for Android." OFF) option(WITH_LITE_FULL_API "Use Paddle Lite full API lib for Android." ON) option(WITH_LITE_FP16 "Use Paddle Lite lib with fp16 enabled for Android." OFF) -# Please don't open this flag now, some bugs exists. -# Only support Linux Now -# option(ENABLE_OPENCV_CUDA "Whether to enable opencv with cuda, this will allow process image with GPU." OFF) - # Whether to build fastdeploy with vision/text/... examples, only for testings. option(BUILD_EXAMPLES "Whether to build fastdeploy with vision examples" OFF) @@ -131,16 +126,6 @@ set(HEAD_DIR "${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}") include_directories(${HEAD_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) -if(BUILD_EXAMPLES AND EXISTS ${PROJECT_SOURCE_DIR}/examples) - if(ENABLE_VISION) - # ENABLE_VISION_VISUALIZE must be ON if enable vision examples. - message(STATUS "Found BUILD_EXAMPLES and ENABLE_VISION ON, so, force ENABLE_VISION_VISUALIZE ON") - set(ENABLE_VISION_VISUALIZE ON CACHE BOOL "force to enable visualize vision model result toolbox" FORCE) - else() - message(WARNING "BUILD_EXAMPLES is ON, but found ENABLE_VISION OFF, will skip vision examples.") - endif() -endif() - if(ANDROID OR IOS) if(ENABLE_ORT_BACKEND) message(FATAL_ERROR "Not support ONNXRuntime backend for Andorid/IOS now. Please set ENABLE_ORT_BACKEND=OFF.") @@ -301,6 +286,7 @@ endif() if(ENABLE_VISION) add_definitions(-DENABLE_VISION) + add_definitions(-DENABLE_VISION_VISUALIZE) if(ENABLE_OPENCV_CUDA) if(NOT WITH_GPU) message(FATAL_ERROR "ENABLE_OPENCV_CUDA is available on Linux and WITH_GPU=ON, but now WITH_GPU=OFF.") @@ -316,13 +302,10 @@ if(ENABLE_VISION) include_directories(${PROJECT_SOURCE_DIR}/third_party/yaml-cpp/include) include(${PROJECT_SOURCE_DIR}/cmake/opencv.cmake) - if(ENABLE_VISION_VISUALIZE) - add_definitions(-DENABLE_VISION_VISUALIZE) - endif() -else() - if(ENABLE_VISION_VISUALIZE) - message("While ENABLE_VISION=OFF, will force ENABLE_VISION_VISUALIZE=OFF.") - set(ENABLE_VISION_VISUALIZE OFF) + if(ENABLE_FALCONCV) + add_definitions(-DENABLE_FALCONCV) + include(${PROJECT_SOURCE_DIR}/cmake/falconcv.cmake) + list(APPEND DEPEND_LIBS external_falconcv) endif() endif() diff --git a/FastDeploy.cmake.in b/FastDeploy.cmake.in index a76f9a8c378..1d193f21998 100644 --- a/FastDeploy.cmake.in +++ b/FastDeploy.cmake.in @@ -173,7 +173,7 @@ if(ENABLE_VISION) endif() # Win/Linux/Mac else() - find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR}) + find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR} NO_DEFAULT_PATH) list(APPEND FASTDEPLOY_INCS ${OpenCV_INCLUDE_DIRS}) list(APPEND FASTDEPLOY_LIBS ${OpenCV_LIBS}) endif() diff --git a/cmake/falconcv.cmake b/cmake/falconcv.cmake new file mode 100644 index 00000000000..e5dcd9a6e4d --- /dev/null +++ b/cmake/falconcv.cmake @@ -0,0 +1,87 @@ +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +include(ExternalProject) + +set(FALCONCV_PROJECT "extern_falconcv") +set(FALCONCV_PREFIX_DIR ${THIRD_PARTY_PATH}/falconcv) +set(FALCONCV_SOURCE_DIR + ${THIRD_PARTY_PATH}/falconcv/src/${FALCONCV_PROJECT}) +set(FALCONCV_INSTALL_DIR ${THIRD_PARTY_PATH}/install/falconcv) +set(FALCONCV_INC_DIR + "${FALCONCV_INSTALL_DIR}/include" + CACHE PATH "falconcv include directory." FORCE) +set(FALCONCV_LIB_DIR + "${FALCONCV_INSTALL_DIR}/lib/" + CACHE PATH "falconcv lib directory." FORCE) +set(CMAKE_BUILD_RPATH "${CMAKE_BUILD_RPATH}" + "${FALCONCV_LIB_DIR}") + +include_directories(${FALCONCV_INC_DIR}) +if(WIN32) + set(FALCONCV_COMPILE_LIB + "${FALCONCV_INSTALL_DIR}/lib/falconcv.lib" + CACHE FILEPATH "falconcv compile library." FORCE) +elseif(APPLE) + set(FALCONCV_COMPILE_LIB + "${FALCONCV_INSTALL_DIR}/lib/libfalconcv.dylib" + CACHE FILEPATH "falconcv compile library." FORCE) +else() + set(FALCONCV_COMPILE_LIB + "${FALCONCV_INSTALL_DIR}/lib/libfalconcv_shared.so" + CACHE FILEPATH "falconcv compile library." FORCE) +endif(WIN32) + +set(FALCONCV_URL_BASE "https://bj.bcebos.com/fastdeploy/third_libs/") +set(FALCONCV_VERSION "1.3.0") +if(WIN32) + message(FATAL_ERROR "FalconCV is not supported on Windows now.") + set(FALCONCV_FILE "falconcv-win-x64-${FALCONCV_VERSION}.zip") +elseif(APPLE) + message(FATAL_ERROR "FalconCV is not supported on Mac OSX now.") + if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64") + set(FALCONCV_FILE "falconcv-osx-arm64-${FALCONCV_VERSION}.tgz") + else() + set(FALCONCV_FILE "falconcv-osx-x86_64-${FALCONCV_VERSION}.tgz") + endif() +else() + if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") + set(FALCONCV_FILE "falconcv-linux-aarch64-${FALCONCV_VERSION}.tgz") + else() + message(FATAL_ERROR "FalconCV is not supported on Linux x64 now.") + set(FALCONCV_FILE "falconcv-linux-x64-${FALCONCV_VERSION}.tgz") + endif() +endif() +set(FALCONCV_URL "${FALCONCV_URL_BASE}${FALCONCV_FILE}") + +ExternalProject_Add( + ${FALCONCV_PROJECT} + ${EXTERNAL_PROJECT_LOG_ARGS} + URL ${FALCONCV_URL} + PREFIX ${FALCONCV_PREFIX_DIR} + DOWNLOAD_NO_PROGRESS 1 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + UPDATE_COMMAND "" + INSTALL_COMMAND + ${CMAKE_COMMAND} -E remove_directory ${FALCONCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E make_directory ${FALCONCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E rename ${FALCONCV_SOURCE_DIR}/lib/ + ${FALCONCV_LIB_DIR} && ${CMAKE_COMMAND} -E copy_directory + ${FALCONCV_SOURCE_DIR}/include ${FALCONCV_INC_DIR} + BUILD_BYPRODUCTS ${FALCONCV_COMPILE_LIB}) + +add_library(external_falconcv STATIC IMPORTED GLOBAL) +set_property(TARGET external_falconcv PROPERTY IMPORTED_LOCATION + ${FALCONCV_COMPILE_LIB}) +add_dependencies(external_falconcv ${FALCONCV_PROJECT}) diff --git a/fastdeploy/vision/common/processors/mat.h b/fastdeploy/vision/common/processors/mat.h index ab1a1f35e35..3ae710d07e1 100644 --- a/fastdeploy/vision/common/processors/mat.h +++ b/fastdeploy/vision/common/processors/mat.h @@ -14,6 +14,7 @@ #pragma once #include "fastdeploy/core/fd_tensor.h" #include "opencv2/core/core.hpp" +#include "fastdeploy/vision/common/processors/utils.h" #ifdef ENABLE_OPENCV_CUDA #include "opencv2/core/cuda.hpp" @@ -22,10 +23,6 @@ #include "opencv2/cudawarping.hpp" #endif -namespace fcv { - class Mat; -} - namespace fastdeploy { namespace vision { @@ -59,7 +56,7 @@ struct FASTDEPLOY_DECL Mat { #ifdef ENABLE_FALCONCV void SetMat(const fcv::Mat& mat) { fcv_mat = mat; - mat_type = Proclib::FALCONCV; + mat_type = ProcLib::FALCONCV; } inline fcv::Mat* GetFalconCVMat() { diff --git a/fastdeploy/vision/common/processors/utils.cc b/fastdeploy/vision/common/processors/utils.cc index d291f78125e..1d26c79075c 100644 --- a/fastdeploy/vision/common/processors/utils.cc +++ b/fastdeploy/vision/common/processors/utils.cc @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "fastdeploy/utils/utils.h" #include "fastdeploy/vision/common/processors/utils.h" namespace fastdeploy { @@ -103,8 +104,8 @@ FDDataType FalconCVDataTypeToFD(fcv::FCVImageType type) { } else if (type == fcv::FCVImageType::GRAY_F64) { return FDDataType::FP64; } - FDASSERT(false, "While calling FalconDataTypeToFD(), get unexpected type:" + std::to_string(int(type)) + "."); - return FDDataType::UNKNOWN; + FDASSERT(false, "While calling FalconDataTypeToFD(), get unexpected type:%d.", int(type)); + return FDDataType::UNKNOWN1; } fcv::FCVImageType CreateFalconDataCVType(FDDataType type, int channel) { @@ -127,7 +128,7 @@ fcv::FCVImageType CreateFalconDataCVType(FDDataType type, int channel) { return fcv::FCVImageType::PACKAGE_BGRA_F32; } } - FDASSERT(false, "Data type of " + Str(type) + " is not supported."); + FDASSERT(false, "Data type of %s is not supported.", Str(type).c_str()); return fcv::FCVImageType::PACKAGE_BGR_F32; } #endif diff --git a/fastdeploy/vision/common/processors/utils.h b/fastdeploy/vision/common/processors/utils.h index c6b6eb5adc7..03b80ce024d 100644 --- a/fastdeploy/vision/common/processors/utils.h +++ b/fastdeploy/vision/common/processors/utils.h @@ -17,6 +17,10 @@ #include "fastdeploy/utils/utils.h" #include "fastdeploy/core/fd_tensor.h" +#ifdef ENABLE_FALCONCV +#include "falconcv.h" +#endif + namespace fastdeploy { namespace vision { From 0a691a6a0e192e4ef7e7a45cda04be0e32509112 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 17 Oct 2022 17:22:06 +0800 Subject: [PATCH 02/16] Update CMakeLists.txt --- CMakeLists.txt | 94 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 86 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cd9e725fcc..418189e58b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,13 +51,15 @@ endif() ############################# Basic Options for FastDeploy ################################ option(ENABLE_PADDLE_FRONTEND "Whether to enable PaddlePaddle frontend to support load paddle model in fastdeploy." ON) -option(WITH_GPU "Whether WITH_GPU=ON, will enable onnxruntime-gpu/paddle-inference-gpu" OFF) +option(WITH_GPU "Whether WITH_GPU=ON, will enable onnxruntime-gpu/paddle-infernce-gpu/poros-gpu" OFF) option(ENABLE_ORT_BACKEND "Whether to enable onnxruntime backend." OFF) option(ENABLE_TRT_BACKEND "Whether to enable tensorrt backend." OFF) option(ENABLE_PADDLE_BACKEND "Whether to enable paddle backend." OFF) +option(ENABLE_POROS_BACKEND "Whether to enable poros backend." OFF) option(ENABLE_OPENVINO_BACKEND "Whether to enable openvino backend." OFF) option(ENABLE_LITE_BACKEND "Whether to enable paddle lite backend." OFF) option(ENABLE_VISION "Whether to enable vision models usage." OFF) +option(ENABLE_VISION_VISUALIZE "Whether to enable visualize vision model result toolbox." ON) option(ENABLE_TEXT "Whether to enable text models usage." OFF) option(WITH_TESTING "Whether to compile with unittest." OFF) ############################# Options for Android cross compiling ######################### @@ -66,6 +68,10 @@ option(WITH_LITE_STATIC "Use Paddle Lite static lib for Android." OFF) option(WITH_LITE_FULL_API "Use Paddle Lite full API lib for Android." ON) option(WITH_LITE_FP16 "Use Paddle Lite lib with fp16 enabled for Android." OFF) +# Please don't open this flag now, some bugs exists. +# Only support Linux Now +# option(ENABLE_OPENCV_CUDA "Whether to enable opencv with cuda, this will allow process image with GPU." OFF) + # Whether to build fastdeploy with vision/text/... examples, only for testings. option(BUILD_EXAMPLES "Whether to build fastdeploy with vision examples" OFF) @@ -103,6 +109,9 @@ if(WIN32) if(ENABLE_PADDLE_BACKEND) message(FATAL_ERROR "-DENABLE_PADDLE_BACKEND=ON doesn't support on non 64-bit system now.") endif() + if(ENABLE_POROS_BACKEND) + message(FATAL_ERROR "-DENABLE_POROS_BACKEND=ON doesn't support on non 64-bit system now.") + endif() if(ENABLE_VISION) message(FATAL_ERROR "-DENABLE_VISION=ON doesn't support on non 64-bit system now.") endif() @@ -126,6 +135,16 @@ set(HEAD_DIR "${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}") include_directories(${HEAD_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) +if(BUILD_EXAMPLES AND EXISTS ${PROJECT_SOURCE_DIR}/examples) + if(ENABLE_VISION) + # ENABLE_VISION_VISUALIZE must be ON if enable vision examples. + message(STATUS "Found BUILD_EXAMPLES and ENABLE_VISION ON, so, force ENABLE_VISION_VISUALIZE ON") + set(ENABLE_VISION_VISUALIZE ON CACHE BOOL "force to enable visualize vision model result toolbox" FORCE) + else() + message(WARNING "BUILD_EXAMPLES is ON, but found ENABLE_VISION OFF, will skip vision examples.") + endif() +endif() + if(ANDROID OR IOS) if(ENABLE_ORT_BACKEND) message(FATAL_ERROR "Not support ONNXRuntime backend for Andorid/IOS now. Please set ENABLE_ORT_BACKEND=OFF.") @@ -150,13 +169,14 @@ file(GLOB_RECURSE ALL_DEPLOY_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastde file(GLOB_RECURSE FDTENSOR_FUNC_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/function/*.cc) file(GLOB_RECURSE DEPLOY_ORT_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/ort/*.cc) file(GLOB_RECURSE DEPLOY_PADDLE_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/paddle/*.cc) +file(GLOB_RECURSE DEPLOY_POROS_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/poros/*.cc) file(GLOB_RECURSE DEPLOY_TRT_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/tensorrt/*.cc ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/tensorrt/*.cpp) file(GLOB_RECURSE DEPLOY_OPENVINO_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/openvino/*.cc) file(GLOB_RECURSE DEPLOY_LITE_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/lite/*.cc) file(GLOB_RECURSE DEPLOY_VISION_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/vision/*.cc) file(GLOB_RECURSE DEPLOY_TEXT_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/text/*.cc) file(GLOB_RECURSE DEPLOY_PYBIND_SRCS ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/pybind/*.cc ${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/*_pybind.cc) -list(REMOVE_ITEM ALL_DEPLOY_SRCS ${DEPLOY_ORT_SRCS} ${DEPLOY_PADDLE_SRCS} ${DEPLOY_TRT_SRCS} ${DEPLOY_OPENVINO_SRCS} ${DEPLOY_LITE_SRCS} ${DEPLOY_VISION_SRCS} ${DEPLOY_TEXT_SRCS}) +list(REMOVE_ITEM ALL_DEPLOY_SRCS ${DEPLOY_ORT_SRCS} ${DEPLOY_PADDLE_SRCS} ${DEPLOY_POROS_SRCS} ${DEPLOY_TRT_SRCS} ${DEPLOY_OPENVINO_SRCS} ${DEPLOY_LITE_SRCS} ${DEPLOY_VISION_SRCS} ${DEPLOY_TEXT_SRCS}) set(DEPEND_LIBS "") @@ -213,6 +233,62 @@ if(ENABLE_OPENVINO_BACKEND) include(${PROJECT_SOURCE_DIR}/cmake/openvino.cmake) endif() +if(ENABLE_POROS_BACKEND) + set(CMAKE_CXX_STANDARD 14) + add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) + add_definitions(-DENABLE_POROS_BACKEND) + list(APPEND ALL_DEPLOY_SRCS ${DEPLOY_POROS_SRCS}) + include(${PROJECT_SOURCE_DIR}/cmake/poros.cmake) + list(APPEND DEPEND_LIBS external_poros) + set(PYTHON_MINIMUM_VERSION 3.6) + set(PYTORCH_MINIMUM_VERSION 1.9) + set(TENSORRT_MINIMUM_VERSION 8.0) + # find python3 + find_package(Python3 ${PYTHON_MINIMUM_VERSION} REQUIRED COMPONENTS Interpreter Development) + message(STATUS "Found Python: ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}.${Python3_VERSION_PATCH}") + + if (NOT Python3_SITELIB) + message(FATAL_ERROR "site-packages not found. ") + else () + message(STATUS "site-packages: ${Python3_SITELIB}") + endif () + # find pytorch + find_package(Torch ${PYTORCH_MINIMUM_VERSION} REQUIRED HINTS ${Python3_SITELIB}) + include_directories(${TORCH_INCLUDE_DIRS}) + include_directories(${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}/fastdeploy/backends/poros/common) + list(APPEND DEPEND_LIBS ${TORCH_LIBRARY}) + if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/torch") + file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/torch") + endif() + if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/torch/lib") + file(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/torch/lib") + endif() + find_package(Python COMPONENTS Interpreter Development REQUIRED) + message(STATUS "Copying ${TORCH_INSTALL_PREFIX}/lib to ${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/torch/lib ...") + execute_process(COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/copy_directory.py ${TORCH_INSTALL_PREFIX}/lib ${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/torch/lib) + # find trt + if(NOT WITH_GPU) + message(FATAL_ERROR "While -DENABLE_POROS_BACKEND=ON, must set -DWITH_GPU=ON, but now it's OFF") + endif() + if(NOT TRT_DIRECTORY) + message(FATAL_ERROR "While -DENABLE_POROS_BACKEND=ON, must define -DTRT_DIRECTORY, e.g -DTRT_DIRECTORY=/Downloads/TensorRT-8.4") + endif() + include_directories(${TRT_DIRECTORY}/include) + find_library(TRT_INFER_LIB nvinfer ${TRT_DIRECTORY}/lib) + find_library(TRT_ONNX_LIB nvonnxparser ${TRT_DIRECTORY}/lib) + find_library(TRT_PLUGIN_LIB nvinfer_plugin ${TRT_DIRECTORY}/lib) + list(APPEND DEPEND_LIBS ${TRT_INFER_LIB} ${TRT_ONNX_LIB} ${TRT_PLUGIN_LIB}) + if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/tensorrt") + file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/tensorrt") + endif() + if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/tensorrt/lib") + file(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/tensorrt/lib") + endif() + find_package(Python COMPONENTS Interpreter Development REQUIRED) + message(STATUS "Copying ${TRT_DIRECTORY}/lib to ${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/tensorrt/lib ...") + execute_process(COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/copy_directory.py ${TRT_DIRECTORY}/lib ${CMAKE_CURRENT_BINARY_DIR}/third_libs/install/tensorrt/lib) +endif() + if(WITH_GPU) if(APPLE) message(FATAL_ERROR "Cannot enable GPU while compling in Mac OSX.") @@ -277,7 +353,7 @@ if(ENABLE_TRT_BACKEND) OUTPUT_VARIABLE curr_out ERROR_VARIABLE curr_out) if(ret EQUAL "1") - message(FATAL_ERROR "Failed to patchelf tensorrt libraries.") + message(FATAL_ERROR "Failed to patchelf tensorrt libraries.") endif() message(STATUS "result:${result} out:${curr_out}") endif() @@ -286,7 +362,6 @@ endif() if(ENABLE_VISION) add_definitions(-DENABLE_VISION) - add_definitions(-DENABLE_VISION_VISUALIZE) if(ENABLE_OPENCV_CUDA) if(NOT WITH_GPU) message(FATAL_ERROR "ENABLE_OPENCV_CUDA is available on Linux and WITH_GPU=ON, but now WITH_GPU=OFF.") @@ -302,10 +377,13 @@ if(ENABLE_VISION) include_directories(${PROJECT_SOURCE_DIR}/third_party/yaml-cpp/include) include(${PROJECT_SOURCE_DIR}/cmake/opencv.cmake) - if(ENABLE_FALCONCV) - add_definitions(-DENABLE_FALCONCV) - include(${PROJECT_SOURCE_DIR}/cmake/falconcv.cmake) - list(APPEND DEPEND_LIBS external_falconcv) + if(ENABLE_VISION_VISUALIZE) + add_definitions(-DENABLE_VISION_VISUALIZE) + endif() +else() + if(ENABLE_VISION_VISUALIZE) + message("While ENABLE_VISION=OFF, will force ENABLE_VISION_VISUALIZE=OFF.") + set(ENABLE_VISION_VISUALIZE OFF) endif() endif() From 5ec9b237a4bcf458c76b2a55b5d8f87807836db2 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Thu, 20 Oct 2022 10:23:03 +0800 Subject: [PATCH 03/16] Add implementation for more preprocessors --- CMakeLists.txt | 23 +- examples/CMakeLists.txt | 3 - fastdeploy/fastdeploy_model.h | 3 +- fastdeploy/vision/common/processors/base.cc | 17 +- fastdeploy/vision/common/processors/cast.cc | 33 + fastdeploy/vision/common/processors/cast.h | 5 +- .../vision/common/processors/center_crop.cc | 21 + .../vision/common/processors/center_crop.h | 5 +- .../common/processors/color_space_convert.cc | 28 + .../common/processors/color_space_convert.h | 10 +- .../vision/common/processors/convert.cc | 17 + fastdeploy/vision/common/processors/convert.h | 5 +- fastdeploy/vision/common/processors/crop.cc | 22 + fastdeploy/vision/common/processors/crop.h | 6 +- .../vision/common/processors/hwc2chw.cc | 24 +- fastdeploy/vision/common/processors/hwc2chw.h | 5 +- .../common/processors/limit_by_stride.cc | 48 ++ .../common/processors/limit_by_stride.h | 6 +- .../vision/common/processors/limit_long.cc | 42 ++ .../vision/common/processors/limit_long.h | 3 + .../vision/common/processors/limit_short.cc | 43 +- .../vision/common/processors/limit_short.h | 3 + fastdeploy/vision/common/processors/mat.h | 7 - .../vision/common/processors/normalize.cc | 23 + .../vision/common/processors/normalize.h | 5 +- .../processors/normalize_and_permute.cc | 111 ++++ .../common/processors/normalize_and_permute.h | 53 ++ fastdeploy/vision/common/processors/pad.cc | 39 ++ fastdeploy/vision/common/processors/pad.h | 5 +- .../vision/common/processors/pad_to_size.cc | 61 ++ .../vision/common/processors/pad_to_size.h | 3 + fastdeploy/vision/common/processors/resize.cc | 68 ++ fastdeploy/vision/common/processors/resize.h | 3 + .../common/processors/resize_by_short.cc | 42 ++ .../common/processors/resize_by_short.h | 3 + .../vision/common/processors/stride_pad.cc | 50 ++ .../vision/common/processors/stride_pad.h | 3 + .../vision/common/processors/transform.h | 1 + fastdeploy/vision/common/processors/utils.cc | 12 +- fastdeploy/vision/common/processors/utils.h | 3 + tests/gtest_utils.h | 18 +- tests/vision_preprocess/CMakeCache.txt | 355 ++++++++++ .../CMakeFiles/3.10.2/CMakeCCompiler.cmake | 73 ++ .../CMakeFiles/3.10.2/CMakeCXXCompiler.cmake | 75 +++ .../3.10.2/CMakeDetermineCompilerABI_C.bin | Bin 0 -> 9064 bytes .../3.10.2/CMakeDetermineCompilerABI_CXX.bin | Bin 0 -> 9248 bytes .../CMakeFiles/3.10.2/CMakeSystem.cmake | 15 + .../3.10.2/CompilerIdC/CMakeCCompilerId.c | 598 +++++++++++++++++ .../CMakeFiles/3.10.2/CompilerIdC/a.out | Bin 0 -> 9248 bytes .../CompilerIdCXX/CMakeCXXCompilerId.cpp | 576 ++++++++++++++++ .../CMakeFiles/3.10.2/CompilerIdCXX/a.out | Bin 0 -> 9424 bytes .../CMakeDirectoryInformation.cmake | 16 + .../CMakeFiles/CMakeOutput.log | 629 ++++++++++++++++++ .../CMakeFiles/Makefile.cmake | 118 ++++ tests/vision_preprocess/CMakeFiles/Makefile2 | 108 +++ tests/vision_preprocess/CMakeFiles/Progress/1 | 1 + .../CMakeFiles/Progress/count.txt | 1 + .../CMakeFiles/TargetDirectories.txt | 3 + .../CMakeFiles/cmake.check_cache | 1 + .../CXX.includecache | 16 + .../DependInfo.cmake | 21 + .../fastdeploy_gtest_main.dir/build.make | 114 ++++ .../cmake_clean.cmake | 10 + .../cmake_clean_target.cmake | 3 + .../fastdeploy_gtest_main.dir/depend.internal | 5 + .../fastdeploy_gtest_main.dir/depend.make | 5 + .../fastdeploy_gtest_main.dir/flags.make | 10 + .../fastdeploy_gtest_main.dir/link.txt | 2 + .../fastdeploy_gtest_main.dir/progress.make | 3 + .../CMakeFiles/feature_tests.bin | Bin 0 -> 13288 bytes .../CMakeFiles/feature_tests.c | 34 + .../CMakeFiles/feature_tests.cxx | 405 +++++++++++ .../CMakeFiles/progress.marks | 1 + tests/vision_preprocess/Makefile | 166 +++++ tests/vision_preprocess/cmake_install.cmake | 49 ++ tests/vision_preprocess/test_vision_cast.cc | 51 ++ .../test_vision_center_crop.cc | 79 +++ .../test_vision_colorspace_convert.cc | 76 +++ .../vision_preprocess/test_vision_convert.cc | 85 +++ tests/vision_preprocess/test_vision_crop.cc | 79 +++ .../vision_preprocess/test_vision_hwc2chw.cc | 78 +++ .../test_vision_limit_stride.cc | 53 ++ .../test_vision_normalize.cc | 116 ++++ .../test_vision_normalize_and_permute.cc | 65 ++ tests/vision_preprocess/test_vision_pad.cc | 78 +++ 85 files changed, 5005 insertions(+), 50 deletions(-) create mode 100644 fastdeploy/vision/common/processors/normalize_and_permute.cc create mode 100644 fastdeploy/vision/common/processors/normalize_and_permute.h create mode 100644 tests/vision_preprocess/CMakeCache.txt create mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake create mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin create mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin create mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c create mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out create mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp create mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out create mode 100644 tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/CMakeOutput.log create mode 100644 tests/vision_preprocess/CMakeFiles/Makefile.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/Makefile2 create mode 100644 tests/vision_preprocess/CMakeFiles/Progress/1 create mode 100644 tests/vision_preprocess/CMakeFiles/Progress/count.txt create mode 100644 tests/vision_preprocess/CMakeFiles/TargetDirectories.txt create mode 100644 tests/vision_preprocess/CMakeFiles/cmake.check_cache create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt create mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make create mode 100755 tests/vision_preprocess/CMakeFiles/feature_tests.bin create mode 100644 tests/vision_preprocess/CMakeFiles/feature_tests.c create mode 100644 tests/vision_preprocess/CMakeFiles/feature_tests.cxx create mode 100644 tests/vision_preprocess/CMakeFiles/progress.marks create mode 100644 tests/vision_preprocess/Makefile create mode 100644 tests/vision_preprocess/cmake_install.cmake create mode 100644 tests/vision_preprocess/test_vision_cast.cc create mode 100644 tests/vision_preprocess/test_vision_center_crop.cc create mode 100644 tests/vision_preprocess/test_vision_colorspace_convert.cc create mode 100644 tests/vision_preprocess/test_vision_convert.cc create mode 100644 tests/vision_preprocess/test_vision_crop.cc create mode 100644 tests/vision_preprocess/test_vision_hwc2chw.cc create mode 100644 tests/vision_preprocess/test_vision_limit_stride.cc create mode 100644 tests/vision_preprocess/test_vision_normalize.cc create mode 100644 tests/vision_preprocess/test_vision_normalize_and_permute.cc create mode 100644 tests/vision_preprocess/test_vision_pad.cc diff --git a/CMakeLists.txt b/CMakeLists.txt index 418189e58b5..0e58688c92f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,6 @@ option(ENABLE_POROS_BACKEND "Whether to enable poros backend." OFF) option(ENABLE_OPENVINO_BACKEND "Whether to enable openvino backend." OFF) option(ENABLE_LITE_BACKEND "Whether to enable paddle lite backend." OFF) option(ENABLE_VISION "Whether to enable vision models usage." OFF) -option(ENABLE_VISION_VISUALIZE "Whether to enable visualize vision model result toolbox." ON) option(ENABLE_TEXT "Whether to enable text models usage." OFF) option(WITH_TESTING "Whether to compile with unittest." OFF) ############################# Options for Android cross compiling ######################### @@ -135,16 +134,6 @@ set(HEAD_DIR "${PROJECT_SOURCE_DIR}/${CSRCS_DIR_NAME}") include_directories(${HEAD_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) -if(BUILD_EXAMPLES AND EXISTS ${PROJECT_SOURCE_DIR}/examples) - if(ENABLE_VISION) - # ENABLE_VISION_VISUALIZE must be ON if enable vision examples. - message(STATUS "Found BUILD_EXAMPLES and ENABLE_VISION ON, so, force ENABLE_VISION_VISUALIZE ON") - set(ENABLE_VISION_VISUALIZE ON CACHE BOOL "force to enable visualize vision model result toolbox" FORCE) - else() - message(WARNING "BUILD_EXAMPLES is ON, but found ENABLE_VISION OFF, will skip vision examples.") - endif() -endif() - if(ANDROID OR IOS) if(ENABLE_ORT_BACKEND) message(FATAL_ERROR "Not support ONNXRuntime backend for Andorid/IOS now. Please set ENABLE_ORT_BACKEND=OFF.") @@ -362,6 +351,7 @@ endif() if(ENABLE_VISION) add_definitions(-DENABLE_VISION) + add_definitions(-DENABLE_VISION_VISUALIZE) if(ENABLE_OPENCV_CUDA) if(NOT WITH_GPU) message(FATAL_ERROR "ENABLE_OPENCV_CUDA is available on Linux and WITH_GPU=ON, but now WITH_GPU=OFF.") @@ -377,13 +367,10 @@ if(ENABLE_VISION) include_directories(${PROJECT_SOURCE_DIR}/third_party/yaml-cpp/include) include(${PROJECT_SOURCE_DIR}/cmake/opencv.cmake) - if(ENABLE_VISION_VISUALIZE) - add_definitions(-DENABLE_VISION_VISUALIZE) - endif() -else() - if(ENABLE_VISION_VISUALIZE) - message("While ENABLE_VISION=OFF, will force ENABLE_VISION_VISUALIZE=OFF.") - set(ENABLE_VISION_VISUALIZE OFF) + if(ENABLE_FALCONCV) + add_definitions(-DENABLE_FALCONCV) + include(${PROJECT_SOURCE_DIR}/cmake/falconcv.cmake) + list(APPEND DEPEND_LIBS external_falconcv) endif() endif() diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 20d1b2624d8..5e789b63b0f 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -66,9 +66,6 @@ endfunction() # vision examples if(BUILD_EXAMPLES AND ENABLE_VISION) - if(NOT ENABLE_VISION_VISUALIZE) - message(FATAL_ERROR "ENABLE_VISION_VISUALIZE must be ON while BUILD_EXAMPLES and ENABLE_VISION both ON.") - endif() if(EXISTS ${PROJECT_SOURCE_DIR}/examples/vision) message(STATUS "") message(STATUS "*************FastDeploy Vision Examples Summary**********") diff --git a/fastdeploy/fastdeploy_model.h b/fastdeploy/fastdeploy_model.h index 030396c18b8..0a44151fabe 100644 --- a/fastdeploy/fastdeploy_model.h +++ b/fastdeploy/fastdeploy_model.h @@ -93,7 +93,8 @@ class FASTDEPLOY_DECL FastDeployModel { std::vector valid_external_backends; private: - std::unique_ptr runtime_; +// std::unique_ptr runtime_; + std::shared_ptr runtime_; bool runtime_initialized_ = false; // whether to record inference time bool enable_record_time_of_runtime_ = false; diff --git a/fastdeploy/vision/common/processors/base.cc b/fastdeploy/vision/common/processors/base.cc index a2359c16e9d..92e399e6035 100644 --- a/fastdeploy/vision/common/processors/base.cc +++ b/fastdeploy/vision/common/processors/base.cc @@ -28,8 +28,21 @@ bool Processor::operator()(Mat* mat, ProcLib lib) { target = default_lib; } - bool ret = ImplByOpenCV(mat); - return ret; + if (lib == ProcLib::FALCONCV) { +#ifdef ENABLE_FALCONCV + if (mat->mat_type != ProcLib::FALCONCV) { + if (mat->layout != Layout::HWC) { + FDERROR << "Cannot convert cv::Mat to fcv::Mat while layout is not HWC." << std::endl; + } + fcv::Mat fcv_mat = ConvertOpenCVMatToFalconCV(*(mat->GetOpenCVMat())); + mat->SetMat(fcv_mat); + } + return ImplByFalconCV(mat); +#else + FDASSERT(false, "FastDeploy didn't compile with FalconCV."); +#endif + } + return ImplByOpenCV(mat); } } // namespace vision diff --git a/fastdeploy/vision/common/processors/cast.cc b/fastdeploy/vision/common/processors/cast.cc index 44933345d10..c9ee95fb54b 100644 --- a/fastdeploy/vision/common/processors/cast.cc +++ b/fastdeploy/vision/common/processors/cast.cc @@ -35,6 +35,39 @@ bool Cast::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool Cast::ImplByFalconCV(Mat* mat) { + if (mat->layout != Layout::HWC) { + FDERROR + << "While using Falcon to cast image, the image must be layout of HWC." + << std::endl; + return false; + } + fcv::Mat* im = mat->GetFalconCVMat(); + if (dtype_ == "float") { + if (mat->Type() != FDDataType::FP32) { + fcv::Mat new_im; + auto fcv_type = CreateFalconCVDataType(FDDataType::FP32, im->channels()); + im->convert_to(new_im, fcv_type); + mat->SetMat(new_im); + } + } else if (dtype_ == "double") { + if (mat->Type() != FDDataType::FP64) { + fcv::Mat new_im; + auto fcv_type = CreateFalconCVDataType(FDDataType::FP64, im->channels()); + im->convert_to(new_im, fcv_type); + mat->SetMat(new_im); + } + } else { + FDWARNING << "Cast not support for " << dtype_ + << " now! will skip this operation." << std::endl; + } + float* tmp = static_cast(mat->GetFalconCVMat()->data()); + FDERROR << mat->GetFalconCVMat()->width() << " " << mat->GetFalconCVMat()->height() << " " << tmp[0] << " " << tmp[1224] << std::endl; + return true; +} +#endif + bool Cast::Run(Mat* mat, const std::string& dtype, ProcLib lib) { auto c = Cast(dtype); return c(mat, lib); diff --git a/fastdeploy/vision/common/processors/cast.h b/fastdeploy/vision/common/processors/cast.h index f6859cabab3..5e4457fb1d5 100644 --- a/fastdeploy/vision/common/processors/cast.h +++ b/fastdeploy/vision/common/processors/cast.h @@ -19,10 +19,13 @@ namespace fastdeploy { namespace vision { -class Cast : public Processor { +class FASTDEPLOY_DECL Cast : public Processor { public: explicit Cast(const std::string& dtype = "float") : dtype_(dtype) {} bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "Cast"; } static bool Run(Mat* mat, const std::string& dtype, ProcLib lib = ProcLib::OPENCV); diff --git a/fastdeploy/vision/common/processors/center_crop.cc b/fastdeploy/vision/common/processors/center_crop.cc index d229347c484..08cf2e4fbbe 100644 --- a/fastdeploy/vision/common/processors/center_crop.cc +++ b/fastdeploy/vision/common/processors/center_crop.cc @@ -34,6 +34,27 @@ bool CenterCrop::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool CenterCrop::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + int height = static_cast(im->height()); + int width = static_cast(im->width()); + if (height < height_ || width < width_) { + FDERROR << "[CenterCrop] Image size less than crop size" << std::endl; + return false; + } + int offset_x = static_cast((width - width_) / 2); + int offset_y = static_cast((height - height_) / 2); + fcv::Rect crop_roi(offset_x, offset_y, width_, height_); + fcv::Mat new_im; + im->copy_to(new_im, crop_roi); + mat->SetMat(new_im); + mat->SetWidth(width_); + mat->SetHeight(height_); + return true; +} +#endif + bool CenterCrop::Run(Mat* mat, const int& width, const int& height, ProcLib lib) { auto c = CenterCrop(width, height); diff --git a/fastdeploy/vision/common/processors/center_crop.h b/fastdeploy/vision/common/processors/center_crop.h index 9079973ce0e..8b59988cead 100644 --- a/fastdeploy/vision/common/processors/center_crop.h +++ b/fastdeploy/vision/common/processors/center_crop.h @@ -19,10 +19,13 @@ namespace fastdeploy { namespace vision { -class CenterCrop : public Processor { +class FASTDEPLOY_DECL CenterCrop : public Processor { public: CenterCrop(int width, int height) : height_(height), width_(width) {} bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "CenterCrop"; } static bool Run(Mat* mat, const int& width, const int& height, diff --git a/fastdeploy/vision/common/processors/color_space_convert.cc b/fastdeploy/vision/common/processors/color_space_convert.cc index 7c614a04846..9f8a1989914 100644 --- a/fastdeploy/vision/common/processors/color_space_convert.cc +++ b/fastdeploy/vision/common/processors/color_space_convert.cc @@ -24,6 +24,20 @@ bool BGR2RGB::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool BGR2RGB::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + if (im->channels() != 3) { + FDERROR << "[BGR2RGB] The channel of input image must be 3, but not it's " << im->channels() << "." << std::endl; + return false; + } + fcv::Mat new_im; + fcv::cvt_color(*im, new_im, fcv::ColorConvertType::CVT_PA_BGR2PA_RGB); + mat->SetMat(new_im); + return true; +} +#endif + bool RGB2BGR::ImplByOpenCV(Mat* mat) { cv::Mat* im = mat->GetOpenCVMat(); cv::Mat new_im; @@ -32,6 +46,20 @@ bool RGB2BGR::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool RGB2BGR::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + if (im->channels() != 3) { + FDERROR << "[RGB2BGR] The channel of input image must be 3, but not it's " << im->channels() << "." << std::endl; + return false; + } + fcv::Mat new_im; + fcv::cvt_color(*im, new_im, fcv::ColorConvertType::CVT_PA_RGB2PA_BGR); + mat->SetMat(new_im); + return true; +} +#endif + bool BGR2RGB::Run(Mat* mat, ProcLib lib) { auto b = BGR2RGB(); return b(mat, lib); diff --git a/fastdeploy/vision/common/processors/color_space_convert.h b/fastdeploy/vision/common/processors/color_space_convert.h index 8b813a10eb0..0598d60e3e1 100644 --- a/fastdeploy/vision/common/processors/color_space_convert.h +++ b/fastdeploy/vision/common/processors/color_space_convert.h @@ -19,17 +19,23 @@ namespace fastdeploy { namespace vision { -class BGR2RGB : public Processor { +class FASTDEPLOY_DECL BGR2RGB : public Processor { public: bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif virtual std::string Name() { return "BGR2RGB"; } static bool Run(Mat* mat, ProcLib lib = ProcLib::OPENCV); }; -class RGB2BGR : public Processor { +class FASTDEPLOY_DECL RGB2BGR : public Processor { public: bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "RGB2BGR"; } static bool Run(Mat* mat, ProcLib lib = ProcLib::OPENCV); diff --git a/fastdeploy/vision/common/processors/convert.cc b/fastdeploy/vision/common/processors/convert.cc index 73ae5a0eff0..65844379ebc 100644 --- a/fastdeploy/vision/common/processors/convert.cc +++ b/fastdeploy/vision/common/processors/convert.cc @@ -39,6 +39,23 @@ bool Convert::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool Convert::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + FDASSERT(im->channels() == 3, "Only support 3-channels image in FalconCV."); + std::vector mean(3, 0); + std::vector std(3, 0); + for (size_t i = 0; i < 3; ++i) { + std[i] = 1.0 / (alpha_[i] + 1e-06); + mean[i] = -1 * beta_[i] * std[i]; + } + fcv::Mat new_im; + fcv::normalize_to_submean_to_reorder(*im, mean, std, std::vector(), new_im, true); + mat->SetMat(new_im); + return true; +} +#endif + bool Convert::Run(Mat* mat, const std::vector& alpha, const std::vector& beta, ProcLib lib) { auto c = Convert(alpha, beta); diff --git a/fastdeploy/vision/common/processors/convert.h b/fastdeploy/vision/common/processors/convert.h index ae5db2631a6..74a397d53c0 100644 --- a/fastdeploy/vision/common/processors/convert.h +++ b/fastdeploy/vision/common/processors/convert.h @@ -18,11 +18,14 @@ namespace fastdeploy { namespace vision { -class Convert : public Processor { +class FASTDEPLOY_DECL Convert : public Processor { public: Convert(const std::vector& alpha, const std::vector& beta); bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "Convert"; } // Compute `result = mat * alpha + beta` directly by channel. diff --git a/fastdeploy/vision/common/processors/crop.cc b/fastdeploy/vision/common/processors/crop.cc index 1b5c8bcb859..42454bf2c16 100644 --- a/fastdeploy/vision/common/processors/crop.cc +++ b/fastdeploy/vision/common/processors/crop.cc @@ -35,6 +35,28 @@ bool Crop::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool Crop::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + int height = static_cast(im->height()); + int width = static_cast(im->width()); + if (height < height_ + offset_h_ || width < width_ + offset_w_) { + FDERROR << "[Crop] Cannot crop [" << height_ << ", " << width_ + << "] from the input image [" << height << ", " << width + << "], with offset [" << offset_h_ << ", " << offset_w_ << "]." + << std::endl; + return false; + } + fcv::Rect crop_roi(offset_w_, offset_h_, width_, height_); + fcv::Mat new_im; + im->copy_to(new_im, crop_roi); + mat->SetMat(new_im); + mat->SetWidth(width_); + mat->SetHeight(height_); + return true; +} +#endif + bool Crop::Run(Mat* mat, int offset_w, int offset_h, int width, int height, ProcLib lib) { auto c = Crop(offset_w, offset_h, width, height); diff --git a/fastdeploy/vision/common/processors/crop.h b/fastdeploy/vision/common/processors/crop.h index 8e583adca33..6ec9f4d80da 100644 --- a/fastdeploy/vision/common/processors/crop.h +++ b/fastdeploy/vision/common/processors/crop.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class Crop : public Processor { +class FASTDEPLOY_DECL Crop : public Processor { public: Crop(int offset_w, int offset_h, int width, int height) { offset_w_ = offset_w; @@ -28,6 +28,10 @@ class Crop : public Processor { height_ = height; } bool ImplByOpenCV(Mat* mat); + +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "Crop"; } static bool Run(Mat* mat, int offset_w, int offset_h, int width, int height, diff --git a/fastdeploy/vision/common/processors/hwc2chw.cc b/fastdeploy/vision/common/processors/hwc2chw.cc index aeb073a7474..a7f3c01d341 100644 --- a/fastdeploy/vision/common/processors/hwc2chw.cc +++ b/fastdeploy/vision/common/processors/hwc2chw.cc @@ -13,6 +13,7 @@ // limitations under the License. #include "fastdeploy/vision/common/processors/hwc2chw.h" +#include "fastdeploy/function/transpose.h" namespace fastdeploy { namespace vision { @@ -28,11 +29,7 @@ bool HWC2CHW::ImplByOpenCV(Mat* mat) { int rw = im->cols; int rc = im->channels(); - // float* data = reinterpret_cast(im->data); for (int i = 0; i < rc; ++i) { - // cv::extractChannel(im_clone, cv::Mat(rh, rw, im->type() % 8, data + i - // * rh * rw), - // i); cv::extractChannel( im_clone, cv::Mat(rh, rw, im->type() % 8, @@ -43,6 +40,25 @@ bool HWC2CHW::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool HWC2CHW::ImplByFalconCV(Mat* mat) { + if (mat->layout != Layout::HWC) { + FDERROR << "HWC2CHW: The input data is not Layout::HWC format!" << std::endl; + return false; + } + if (mat->Type() != FDDataType::FP32) { + FDERROR << "HWC2CHW: Only support float data while use FalconCV, but now it's " << mat->Type() << "." << std::endl; + return false; + } + fcv::Mat* im = mat->GetFalconCVMat(); + fcv::Mat new_im; + fcv::normalize_to_submean_to_reorder(*im, {0.0, 0.0, 0.0}, {1.0, 1.0, 1.0}, std::vector(), new_im, false); + mat->SetMat(new_im); + mat->layout = Layout::CHW; + return true; +} +#endif + bool HWC2CHW::Run(Mat* mat, ProcLib lib) { auto h = HWC2CHW(); return h(mat, lib); diff --git a/fastdeploy/vision/common/processors/hwc2chw.h b/fastdeploy/vision/common/processors/hwc2chw.h index 13b4dcb623d..806d68a51f0 100644 --- a/fastdeploy/vision/common/processors/hwc2chw.h +++ b/fastdeploy/vision/common/processors/hwc2chw.h @@ -19,9 +19,12 @@ namespace fastdeploy { namespace vision { -class HWC2CHW : public Processor { +class FASTDEPLOY_DECL HWC2CHW : public Processor { public: bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "HWC2CHW"; } static bool Run(Mat* mat, ProcLib lib = ProcLib::OPENCV); diff --git a/fastdeploy/vision/common/processors/limit_by_stride.cc b/fastdeploy/vision/common/processors/limit_by_stride.cc index 3f9db27bc43..e80b1e1a335 100644 --- a/fastdeploy/vision/common/processors/limit_by_stride.cc +++ b/fastdeploy/vision/common/processors/limit_by_stride.cc @@ -23,6 +23,12 @@ bool LimitByStride::ImplByOpenCV(Mat* mat) { int origin_h = im->rows; int rw = origin_w - origin_w % stride_; int rh = origin_h - origin_h % stride_; + if (rw == 0) { + rw = stride_; + } + if (rh == 0) { + rh = stride_; + } if (rw != origin_w || rh != origin_w) { cv::resize(*im, *im, cv::Size(rw, rh), 0, 0, interp_); mat->SetWidth(im->cols); @@ -31,6 +37,48 @@ bool LimitByStride::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool LimitByStride::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + int origin_w = im->width(); + int origin_h = im->height(); + int rw = origin_w - origin_w % stride_; + int rh = origin_h - origin_h % stride_; + if (rw == 0) { + rw = stride_; + } + if (rh == 0) { + rh = stride_; + } + if (rw != origin_w || rh != origin_w) { + auto interp_method = fcv::InterpolationType::INTER_LINEAR; + if (interp_ == 0) { + interp_method = fcv::InterpolationType::INTER_NEAREST; + } else if (interp_ == 1) { + interp_method = fcv::InterpolationType::INTER_LINEAR; + } else if (interp_ == 2) { + interp_method = fcv::InterpolationType::INTER_CUBIC; + } else { + FDERROR << "LimitByStride: Only support interp_ be 0/1/2 with FalconCV, but " + "now it's " + << interp_ << "." << std::endl; + return false; + } + + fcv::Mat new_im; + std::cout << "??? " << rw << " " << rh << std::endl; + float* data = static_cast(im->data()); + FDERROR << im->width() << " " << im->height() << " " << data[0] << " " << data[1224] << std::endl; + fcv::resize(*im, new_im, fcv::Size(rw, rh), 0, 0, interp_method); + std::cout << "1111 " << new_im.width() << " " << new_im.height() << std::endl; + mat->SetMat(new_im); + mat->SetWidth(new_im.width()); + mat->SetHeight(new_im.height()); + } + return true; +} +#endif + bool LimitByStride::Run(Mat* mat, int stride, int interp, ProcLib lib) { auto r = LimitByStride(stride, interp); return r(mat, lib); diff --git a/fastdeploy/vision/common/processors/limit_by_stride.h b/fastdeploy/vision/common/processors/limit_by_stride.h index 92e4595ea71..4937d797a7c 100644 --- a/fastdeploy/vision/common/processors/limit_by_stride.h +++ b/fastdeploy/vision/common/processors/limit_by_stride.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class LimitByStride : public Processor { +class FASTDEPLOY_DECL LimitByStride : public Processor { public: explicit LimitByStride(int stride = 32, int interp = 1) { stride_ = stride; @@ -27,8 +27,10 @@ class LimitByStride : public Processor { } // Resize Mat* mat to make the size divisible by stride_. - bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "LimitByStride"; } static bool Run(Mat* mat, int stride = 32, int interp = 1, diff --git a/fastdeploy/vision/common/processors/limit_long.cc b/fastdeploy/vision/common/processors/limit_long.cc index 7109636cc57..1a78e15962d 100644 --- a/fastdeploy/vision/common/processors/limit_long.cc +++ b/fastdeploy/vision/common/processors/limit_long.cc @@ -38,6 +38,48 @@ bool LimitLong::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool LimitLong::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + int origin_w = im->width(); + int origin_h = im->height(); + int im_size_max = std::max(origin_w, origin_h); + int target = im_size_max; + if (max_long_ > 0 && im_size_max > max_long_) { + target = max_long_; + } else if (min_long_ > 0 && im_size_max < min_long_) { + target = min_long_; + } + if (target != im_size_max) { + double scale = + static_cast(target) / static_cast(im_size_max); + if (fabs(scale - 1.0) < 1e-06) { + return true; + } + + auto interp_method = fcv::InterpolationType::INTER_LINEAR; + if (interp_ == 0) { + interp_method = fcv::InterpolationType::INTER_NEAREST; + } else if (interp_ == 1) { + interp_method = fcv::InterpolationType::INTER_LINEAR; + } else if (interp_ == 2) { + interp_method = fcv::InterpolationType::INTER_CUBIC; + } else { + FDERROR << "LimitLong: Only support interp_ be 0/1/2 with FalconCV, but " + "now it's " + << interp_ << "." << std::endl; + return false; + } + fcv::Mat new_im; + fcv::resize(*im, new_im, fcv::Size(), scale, scale, interp_method); + mat->SetMat(new_im); + mat->SetWidth(new_im.width()); + mat->SetHeight(new_im.height()); + } + return true; +} +#endif + bool LimitLong::Run(Mat* mat, int max_long, int min_long, ProcLib lib) { auto l = LimitLong(max_long, min_long); return l(mat, lib); diff --git a/fastdeploy/vision/common/processors/limit_long.h b/fastdeploy/vision/common/processors/limit_long.h index e059652bc0d..e18ff13d205 100644 --- a/fastdeploy/vision/common/processors/limit_long.h +++ b/fastdeploy/vision/common/processors/limit_long.h @@ -33,6 +33,9 @@ class LimitLong : public Processor { // If the long edge is smaller than min_long_, resize the long edge // to min_long_, while scale the short edge proportionally. bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "LimitLong"; } static bool Run(Mat* mat, int max_long = -1, int min_long = -1, diff --git a/fastdeploy/vision/common/processors/limit_short.cc b/fastdeploy/vision/common/processors/limit_short.cc index 348291ff0b0..827ee477b0c 100644 --- a/fastdeploy/vision/common/processors/limit_short.cc +++ b/fastdeploy/vision/common/processors/limit_short.cc @@ -32,7 +32,7 @@ bool LimitShort::ImplByOpenCV(Mat* mat) { if (target != im_size_min) { scale = static_cast(target) / static_cast(im_size_min); } - if (scale > 0) { + if (fabs(scale - 1.0) > 1e-06) { cv::resize(*im, *im, cv::Size(), scale, scale, interp_); mat->SetWidth(im->cols); mat->SetHeight(im->rows); @@ -40,6 +40,47 @@ bool LimitShort::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool LimitShort::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + int origin_w = im->width(); + int origin_h = im->height(); + int im_size_min = std::min(origin_w, origin_h); + int target = im_size_min; + if (max_short_ > 0 && im_size_min > max_short_) { + target = max_short_; + } else if (min_short_ > 0 && im_size_min < min_short_) { + target = min_short_; + } + double scale = -1.f; + if (target != im_size_min) { + scale = static_cast(target) / static_cast(im_size_min); + } + if (fabs(scale - 1.0) > 1e-06) { + auto interp_method = fcv::InterpolationType::INTER_LINEAR; + if (interp_ == 0) { + interp_method = fcv::InterpolationType::INTER_NEAREST; + } else if (interp_ == 1) { + interp_method = fcv::InterpolationType::INTER_LINEAR; + } else if (interp_ == 2) { + interp_method = fcv::InterpolationType::INTER_CUBIC; + } else { + FDERROR << "LimitLong: Only support interp_ be 0/1/2 with FalconCV, but " + "now it's " + << interp_ << "." << std::endl; + return false; + } + + fcv::Mat new_im; + fcv::resize(*im, new_im, fcv::Size(), scale, scale, interp_method); + mat->SetMat(new_im); + mat->SetWidth(new_im.width()); + mat->SetHeight(new_im.height()); + } + return true; +} +#endif + bool LimitShort::Run(Mat* mat, int max_short, int min_short, ProcLib lib) { auto l = LimitShort(max_short, min_short); return l(mat, lib); diff --git a/fastdeploy/vision/common/processors/limit_short.h b/fastdeploy/vision/common/processors/limit_short.h index 75a0b1bbe48..59dbd6c51d2 100644 --- a/fastdeploy/vision/common/processors/limit_short.h +++ b/fastdeploy/vision/common/processors/limit_short.h @@ -33,6 +33,9 @@ class LimitShort : public Processor { // If the short edge is smaller than min_short_, resize the short edge // to min_short_, while scale the long edge proportionally. bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "LimitShort"; } static bool Run(Mat* mat, int max_short = -1, int min_short = -1, diff --git a/fastdeploy/vision/common/processors/mat.h b/fastdeploy/vision/common/processors/mat.h index 3ae710d07e1..637019a01bf 100644 --- a/fastdeploy/vision/common/processors/mat.h +++ b/fastdeploy/vision/common/processors/mat.h @@ -16,13 +16,6 @@ #include "opencv2/core/core.hpp" #include "fastdeploy/vision/common/processors/utils.h" -#ifdef ENABLE_OPENCV_CUDA -#include "opencv2/core/cuda.hpp" -#include "opencv2/cudaarithm.hpp" -#include "opencv2/cudaimgproc.hpp" -#include "opencv2/cudawarping.hpp" -#endif - namespace fastdeploy { namespace vision { diff --git a/fastdeploy/vision/common/processors/normalize.cc b/fastdeploy/vision/common/processors/normalize.cc index e3f3d894a00..3199b0e47cc 100644 --- a/fastdeploy/vision/common/processors/normalize.cc +++ b/fastdeploy/vision/common/processors/normalize.cc @@ -54,6 +54,7 @@ Normalize::Normalize(const std::vector& mean, bool Normalize::ImplByOpenCV(Mat* mat) { cv::Mat* im = mat->GetOpenCVMat(); + std::vector split_im; cv::split(*im, split_im); for (int c = 0; c < im->channels(); c++) { @@ -63,6 +64,28 @@ bool Normalize::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool Normalize::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + if (im->channels() != 3) { + FDERROR << "Only supports 3-channels image in FalconCV, but now it's " << im->channels() << "." << std::endl; + return false; + } + + std::vector mean(3, 0); + std::vector std(3, 0); + for (size_t i = 0; i < 3; ++i) { + std[i] = 1.0 / alpha_[i]; + mean[i] = -1 * beta_[i] * std[i]; + } + fcv::Mat new_im(im->width(), im->height(), fcv::FCVImageType::PACKAGE_BGR_F32); + fcv::normalize_to_submean_to_reorder(*im, mean, std, std::vector(), new_im, true); + mat->SetMat(new_im); + return true; +} +#endif + + bool Normalize::Run(Mat* mat, const std::vector& mean, const std::vector& std, bool is_scale, const std::vector& min, diff --git a/fastdeploy/vision/common/processors/normalize.h b/fastdeploy/vision/common/processors/normalize.h index ffb53f48bfa..c0e272d7c84 100644 --- a/fastdeploy/vision/common/processors/normalize.h +++ b/fastdeploy/vision/common/processors/normalize.h @@ -18,13 +18,16 @@ namespace fastdeploy { namespace vision { -class Normalize : public Processor { +class FASTDEPLOY_DECL Normalize : public Processor { public: Normalize(const std::vector& mean, const std::vector& std, bool is_scale = true, const std::vector& min = std::vector(), const std::vector& max = std::vector()); bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "Normalize"; } // While use normalize, it is more recommend not use this function diff --git a/fastdeploy/vision/common/processors/normalize_and_permute.cc b/fastdeploy/vision/common/processors/normalize_and_permute.cc new file mode 100644 index 00000000000..76df4c26394 --- /dev/null +++ b/fastdeploy/vision/common/processors/normalize_and_permute.cc @@ -0,0 +1,111 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "fastdeploy/vision/common/processors/normalize_and_permute.h" + +namespace fastdeploy { +namespace vision { + + +NormalizeAndPermute::NormalizeAndPermute(const std::vector& mean, + const std::vector& std, bool is_scale, + const std::vector& min, + const std::vector& max) { + FDASSERT(mean.size() == std.size(), + "Normalize: requires the size of mean equal to the size of std."); + std::vector mean_(mean.begin(), mean.end()); + std::vector std_(std.begin(), std.end()); + std::vector min_(mean.size(), 0.0); + std::vector max_(mean.size(), 255.0); + if (min.size() != 0) { + FDASSERT( + min.size() == mean.size(), + "Normalize: while min is defined, requires the size of min equal to " + "the size of mean."); + min_.assign(min.begin(), min.end()); + } + if (max.size() != 0) { + FDASSERT( + min.size() == mean.size(), + "Normalize: while max is defined, requires the size of max equal to " + "the size of mean."); + max_.assign(max.begin(), max.end()); + } + for (auto c = 0; c < mean_.size(); ++c) { + double alpha = 1.0; + if (is_scale) { + alpha /= (max_[c] - min_[c]); + } + double beta = -1.0 * (mean_[c] + min_[c] * alpha) / std_[c]; + alpha /= std_[c]; + alpha_.push_back(alpha); + beta_.push_back(beta); + } +} + +bool NormalizeAndPermute::ImplByOpenCV(Mat* mat) { + cv::Mat* im = mat->GetOpenCVMat(); + int origin_w = im->cols; + int origin_h = im->rows; + std::vector split_im; + cv::split(*im, split_im); + for (int c = 0; c < im->channels(); c++) { + split_im[c].convertTo(split_im[c], CV_32FC1, alpha_[c], beta_[c]); + } + cv::Mat res(origin_h, origin_w, CV_32FC(im->channels())); + for (int i = 0; i < im->channels(); ++i) { + cv::extractChannel(split_im[i], cv::Mat(origin_h, origin_w, CV_32FC1, res.ptr() + i * origin_h * origin_w * 4), 0); + } + + mat->SetMat(res); + mat->layout = Layout::CHW; + return true; +} + +#ifdef ENABLE_FALCONCV +bool NormalizeAndPermute::ImplByFalconCV(Mat* mat) { + if (mat->layout != Layout::HWC) { + FDERROR << "Only supports input with HWC layout." << std::endl; + return false; + } + fcv::Mat* im = mat->GetFalconCVMat(); + if (im->channels() != 3) { + FDERROR << "Only supports 3-channels image in FalconCV, but now it's " << im->channels() << "." << std::endl; + return false; + } + std::vector mean(3, 0); + std::vector std(3, 0); + for (size_t i = 0; i < 3; ++i) { + std[i] = 1.0 / alpha_[i]; + mean[i] = -1 * beta_[i] * std[i]; + } + fcv::Mat new_im; + fcv::normalize_to_submean_to_reorder(*im, mean, std, std::vector(), new_im, false); + mat->SetMat(new_im); + mat->layout = Layout::CHW; + return true; +} +#endif + + +bool NormalizeAndPermute::Run(Mat* mat, const std::vector& mean, + const std::vector& std, bool is_scale, + const std::vector& min, + const std::vector& max, ProcLib lib) { + auto n = NormalizeAndPermute(mean, std, is_scale, min, max); + return n(mat, lib); +} + +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/normalize_and_permute.h b/fastdeploy/vision/common/processors/normalize_and_permute.h new file mode 100644 index 00000000000..153ad99e883 --- /dev/null +++ b/fastdeploy/vision/common/processors/normalize_and_permute.h @@ -0,0 +1,53 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include "fastdeploy/vision/common/processors/base.h" + +namespace fastdeploy { +namespace vision { +class FASTDEPLOY_DECL NormalizeAndPermute : public Processor { + public: + NormalizeAndPermute(const std::vector& mean, const std::vector& std, + bool is_scale = true, + const std::vector& min = std::vector(), + const std::vector& max = std::vector()); + bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif + std::string Name() { return "NormalizeAndPermute"; } + + // While use normalize, it is more recommend not use this function + // this function will need to compute result = ((mat / 255) - mean) / std + // if we use the following method + // ``` + // auto norm = Normalize(...) + // norm(mat) + // ``` + // There will be some precomputation in contruct function + // and the `norm(mat)` only need to compute result = mat * alpha + beta + // which will reduce lots of time + static bool Run(Mat* mat, const std::vector& mean, + const std::vector& std, bool is_scale = true, + const std::vector& min = std::vector(), + const std::vector& max = std::vector(), + ProcLib lib = ProcLib::OPENCV); + private: + std::vector alpha_; + std::vector beta_; +}; +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/pad.cc b/fastdeploy/vision/common/processors/pad.cc index ab6e6df1ee4..383880d1a2c 100644 --- a/fastdeploy/vision/common/processors/pad.cc +++ b/fastdeploy/vision/common/processors/pad.cc @@ -52,6 +52,45 @@ bool Pad::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool Pad::ImplByFalconCV(Mat* mat) { + if (mat->layout != Layout::HWC) { + FDERROR << "Pad: The input data must be Layout::HWC format!" << std::endl; + return false; + } + if (mat->Channels() > 4) { + FDERROR << "Pad: Only support channels <= 4." << std::endl; + return false; + } + if (mat->Channels() != value_.size()) { + FDERROR << "Pad: Require input channels equals to size of padding value, " + "but now channels = " + << mat->Channels() + << ", the size of padding values = " << value_.size() << "." + << std::endl; + return false; + } + fcv::Mat* im = mat->GetFalconCVMat(); + fcv::Scalar value; + if (value_.size() == 1) { + value = fcv::Scalar(value_[0]); + } else if (value_.size() == 2) { + value = fcv::Scalar(value_[0], value_[1]); + } else if (value_.size() == 3) { + value = fcv::Scalar(value_[0], value_[1], value_[2]); + } else { + value = fcv::Scalar(value_[0], value_[1], value_[2], value_[3]); + } + fcv::Mat new_im; + fcv::copy_make_border(*im, new_im, top_, bottom_, left_, right_, + fcv::FcvBorderTypes::BORDER_CONSTANT, value); + mat->SetMat(new_im); + mat->SetHeight(new_im.height()); + mat->SetWidth(new_im.width()); + return true; +} +#endif + bool Pad::Run(Mat* mat, const int& top, const int& bottom, const int& left, const int& right, const std::vector& value, ProcLib lib) { diff --git a/fastdeploy/vision/common/processors/pad.h b/fastdeploy/vision/common/processors/pad.h index 4d92a11d10c..4177ac80245 100644 --- a/fastdeploy/vision/common/processors/pad.h +++ b/fastdeploy/vision/common/processors/pad.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class Pad : public Processor { +class FASTDEPLOY_DECL Pad : public Processor { public: Pad(int top, int bottom, int left, int right, const std::vector& value) { @@ -30,6 +30,9 @@ class Pad : public Processor { value_ = value; } bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "Pad"; } static bool Run(Mat* mat, const int& top, const int& bottom, const int& left, diff --git a/fastdeploy/vision/common/processors/pad_to_size.cc b/fastdeploy/vision/common/processors/pad_to_size.cc index 290505df1a7..eadf063ed32 100644 --- a/fastdeploy/vision/common/processors/pad_to_size.cc +++ b/fastdeploy/vision/common/processors/pad_to_size.cc @@ -75,6 +75,67 @@ bool PadToSize::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool PadToSize::ImplByFalconCV(Mat* mat) { + if (width_ == -1 || height_ == -1) { + return true; + } + if (mat->layout != Layout::HWC) { + FDERROR << "PadToSize: The input data must be Layout::HWC format!" + << std::endl; + return false; + } + if (mat->Channels() > 4) { + FDERROR << "PadToSize: Only support channels <= 4." << std::endl; + return false; + } + if (mat->Channels() != value_.size()) { + FDERROR + << "PadToSize: Require input channels equals to size of padding value, " + "but now channels = " + << mat->Channels() << ", the size of padding values = " << value_.size() + << "." << std::endl; + return false; + } + int origin_w = mat->Width(); + int origin_h = mat->Height(); + if (origin_w > width_) { + FDERROR << "PadToSize: the input width:" << origin_w + << " is greater than the target width: " << width_ << "." + << std::endl; + return false; + } + if (origin_h > height_) { + FDERROR << "PadToSize: the input height:" << origin_h + << " is greater than the target height: " << height_ << "." + << std::endl; + return false; + } + if (origin_w == width_ && origin_h == height_) { + return true; + } + + fcv::Mat* im = mat->GetFalconCVMat(); + fcv::Scalar value; + if (value_.size() == 1) { + value = fcv::Scalar(value_[0]); + } else if (value_.size() == 2) { + value = fcv::Scalar(value_[0], value_[1]); + } else if (value_.size() == 3) { + value = fcv::Scalar(value_[0], value_[1], value_[2]); + } else { + value = fcv::Scalar(value_[0], value_[1], value_[2], value_[3]); + } + fcv::Mat new_im; + // top, bottom, left, right + fcv::copy_make_border(*im, new_im, 0, height_ - origin_h, 0, width_ - origin_w, + fcv::FcvBorderTypes::BORDER_CONSTANT, value); + mat->SetHeight(height_); + mat->SetWidth(width_); + return true; +} +#endif + bool PadToSize::Run(Mat* mat, int width, int height, const std::vector& value, ProcLib lib) { auto p = PadToSize(width, height, value); diff --git a/fastdeploy/vision/common/processors/pad_to_size.h b/fastdeploy/vision/common/processors/pad_to_size.h index 83933ddccf2..c2008fd92c4 100644 --- a/fastdeploy/vision/common/processors/pad_to_size.h +++ b/fastdeploy/vision/common/processors/pad_to_size.h @@ -28,6 +28,9 @@ class PadToSize : public Processor { value_ = value; } bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "PadToSize"; } static bool Run(Mat* mat, int width, int height, diff --git a/fastdeploy/vision/common/processors/resize.cc b/fastdeploy/vision/common/processors/resize.cc index 44e27a22a63..4cad5ee00ab 100644 --- a/fastdeploy/vision/common/processors/resize.cc +++ b/fastdeploy/vision/common/processors/resize.cc @@ -25,6 +25,14 @@ bool Resize::ImplByOpenCV(Mat* mat) { cv::Mat* im = mat->GetOpenCVMat(); int origin_w = im->cols; int origin_h = im->rows; + + if (width_ == origin_w && height_ == origin_h) { + return true; + } + if (fabs(scale_w_ - 1.0) < 1e-06 && fabs(scale_h_ - 1.0) < 1e-06) { + return true; + } + if (width_ > 0 && height_ > 0) { if (use_scale_) { float scale_w = width_ * 1.0 / origin_w; @@ -46,6 +54,66 @@ bool Resize::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool Resize::ImplByFalconCV(Mat* mat) { + if (mat->layout != Layout::HWC) { + FDERROR << "Resize: The format of input is not HWC." << std::endl; + return false; + } + fcv::Mat* im = mat->GetFalconCVMat(); + int origin_w = im->width(); + int origin_h = im->height(); + + if (width_ == origin_w && height_ == origin_h) { + return true; + } + if (fabs(scale_w_ - 1.0) < 1e-06 && fabs(scale_h_ - 1.0) < 1e-06) { + return true; + } + + auto interp_method = fcv::InterpolationType::INTER_LINEAR; + if (interp_ == 0) { + interp_method = fcv::InterpolationType::INTER_NEAREST; + } else if (interp_ == 1) { + interp_method = fcv::InterpolationType::INTER_LINEAR; + } else if (interp_ == 2) { + interp_method = fcv::InterpolationType::INTER_CUBIC; + } else { + FDERROR << "LimitLong: Only support interp_ be 0/1/2 with FalconCV, but " + "now it's " + << interp_ << "." << std::endl; + return false; + } + + if (width_ > 0 && height_ > 0) { + fcv::Mat new_im; + if (use_scale_) { + float scale_w = width_ * 1.0 / origin_w; + float scale_h = height_ * 1.0 / origin_h; + fcv::resize(*im, new_im, fcv::Size(), scale_w, scale_h, interp_method); + } else { + fcv::Mat new_im; + fcv::resize(*im, new_im, fcv::Size(width_, height_), 0, 0, interp_method); + } + mat->SetMat(new_im); + mat->SetWidth(new_im.width()); + mat->SetHeight(new_im.height()); + } else if (scale_w_ > 0 && scale_h_ > 0) { + fcv::Mat new_im; + fcv::resize(*im, new_im, fcv::Size(0, 0), scale_w_, scale_h_, interp_method); + mat->SetMat(new_im); + mat->SetWidth(new_im.width()); + mat->SetHeight(new_im.height()); + } else { + FDERROR << "Resize: the parameters must satisfy (width > 0 && height > 0) " + "or (scale_w > 0 && scale_h > 0)." + << std::endl; + return false; + } + return true; +} +#endif + bool Resize::Run(Mat* mat, int width, int height, float scale_w, float scale_h, int interp, bool use_scale, ProcLib lib) { if (mat->Height() == height && mat->Width() == width) { diff --git a/fastdeploy/vision/common/processors/resize.h b/fastdeploy/vision/common/processors/resize.h index c62bcef9354..affd8193eaa 100644 --- a/fastdeploy/vision/common/processors/resize.h +++ b/fastdeploy/vision/common/processors/resize.h @@ -32,6 +32,9 @@ class Resize : public Processor { } bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "Resize"; } static bool Run(Mat* mat, int width, int height, float scale_w = -1.0, diff --git a/fastdeploy/vision/common/processors/resize_by_short.cc b/fastdeploy/vision/common/processors/resize_by_short.cc index 0c48a7e180c..339b1338c66 100644 --- a/fastdeploy/vision/common/processors/resize_by_short.cc +++ b/fastdeploy/vision/common/processors/resize_by_short.cc @@ -36,6 +36,48 @@ bool ResizeByShort::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool ResizeByShort::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + int origin_w = im->width(); + int origin_h = im->height(); + double scale = GenerateScale(origin_w, origin_h); + + auto interp_method = fcv::InterpolationType::INTER_LINEAR; + if (interp_ == 0) { + interp_method = fcv::InterpolationType::INTER_NEAREST; + } else if (interp_ == 1) { + interp_method = fcv::InterpolationType::INTER_LINEAR; + } else if (interp_ == 2) { + interp_method = fcv::InterpolationType::INTER_CUBIC; + } else { + FDERROR << "LimitLong: Only support interp_ be 0/1/2 with FalconCV, but " + "now it's " + << interp_ << "." << std::endl; + return false; + } + + if (use_scale_ && fabs(scale - 1.0) >= 1e-06) { + fcv::Mat new_im; + fcv::resize(*im, new_im, fcv::Size(), scale, scale, interp_method); + mat->SetMat(new_im); + mat->SetHeight(new_im.height()); + mat->SetWidth(new_im.width()); + } else { + int width = static_cast(round(scale * im->width())); + int height = static_cast(round(scale * im->height())); + if (width != origin_w || height != origin_h) { + fcv::Mat new_im; + fcv::resize(*im, new_im, fcv::Size(width, height), 0, 0, interp_method); + mat->SetMat(new_im); + mat->SetHeight(new_im.height()); + mat->SetWidth(new_im.width()); + } + } + return true; +} +#endif + double ResizeByShort::GenerateScale(const int origin_w, const int origin_h) { int im_size_max = std::max(origin_w, origin_h); int im_size_min = std::min(origin_w, origin_h); diff --git a/fastdeploy/vision/common/processors/resize_by_short.h b/fastdeploy/vision/common/processors/resize_by_short.h index 8a43fdc8bf8..a745bdaec62 100644 --- a/fastdeploy/vision/common/processors/resize_by_short.h +++ b/fastdeploy/vision/common/processors/resize_by_short.h @@ -29,6 +29,9 @@ class ResizeByShort : public Processor { use_scale_ = use_scale; } bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "ResizeByShort"; } static bool Run(Mat* mat, int target_size, int interp = 1, diff --git a/fastdeploy/vision/common/processors/stride_pad.cc b/fastdeploy/vision/common/processors/stride_pad.cc index 50e3fd66096..73f7cb5480a 100644 --- a/fastdeploy/vision/common/processors/stride_pad.cc +++ b/fastdeploy/vision/common/processors/stride_pad.cc @@ -63,6 +63,56 @@ bool StridePad::ImplByOpenCV(Mat* mat) { return true; } +#ifdef ENABLE_FALCONCV +bool StridePad::ImplByFalconCV(Mat* mat) { + if (mat->layout != Layout::HWC) { + FDERROR << "StridePad: The input data must be Layout::HWC format!" + << std::endl; + return false; + } + if (mat->Channels() > 4) { + FDERROR << "StridePad: Only support channels <= 4." << std::endl; + return false; + } + if (mat->Channels() != value_.size()) { + FDERROR + << "StridePad: Require input channels equals to size of padding value, " + "but now channels = " + << mat->Channels() << ", the size of padding values = " << value_.size() + << "." << std::endl; + return false; + } + int origin_w = mat->Width(); + int origin_h = mat->Height(); + + int pad_h = (mat->Height() / stride_) * stride_ + + (mat->Height() % stride_ != 0) * stride_ - mat->Height(); + int pad_w = (mat->Width() / stride_) * stride_ + + (mat->Width() % stride_ != 0) * stride_ - mat->Width(); + if (pad_h == 0 && pad_w == 0) { + return true; + } + fcv::Mat* im = mat->GetFalconCVMat(); + fcv::Scalar value; + if (value_.size() == 1) { + value = fcv::Scalar(value_[0]); + } else if (value_.size() == 2) { + value = fcv::Scalar(value_[0], value_[1]); + } else if (value_.size() == 3) { + value = fcv::Scalar(value_[0], value_[1], value_[2]); + } else { + value = fcv::Scalar(value_[0], value_[1], value_[2], value_[3]); + } + fcv::Mat new_im; + // top, bottom, left, right + fcv::copy_make_border(*im, new_im, 0, pad_h, 0, pad_w, fcv::FcvBorderTypes::BORDER_CONSTANT, value); + mat->SetMat(new_im); + mat->SetHeight(new_im.height()); + mat->SetWidth(new_im.width()); + return true; +} +#endif + bool StridePad::Run(Mat* mat, int stride, const std::vector& value, ProcLib lib) { auto p = StridePad(stride, value); diff --git a/fastdeploy/vision/common/processors/stride_pad.h b/fastdeploy/vision/common/processors/stride_pad.h index c6d2f5871bf..2b22beffec0 100644 --- a/fastdeploy/vision/common/processors/stride_pad.h +++ b/fastdeploy/vision/common/processors/stride_pad.h @@ -27,6 +27,9 @@ class StridePad : public Processor { value_ = value; } bool ImplByOpenCV(Mat* mat); +#ifdef ENABLE_FALCONCV + bool ImplByFalconCV(Mat* mat); +#endif std::string Name() { return "StridePad"; } static bool Run(Mat* mat, int stride, diff --git a/fastdeploy/vision/common/processors/transform.h b/fastdeploy/vision/common/processors/transform.h index 5522c138c91..eb692cef6a7 100644 --- a/fastdeploy/vision/common/processors/transform.h +++ b/fastdeploy/vision/common/processors/transform.h @@ -30,3 +30,4 @@ #include "fastdeploy/vision/common/processors/resize_by_long.h" #include "fastdeploy/vision/common/processors/resize_by_short.h" #include "fastdeploy/vision/common/processors/stride_pad.h" +#include "fastdeploy/vision/common/processors/normalize_and_permute.h" diff --git a/fastdeploy/vision/common/processors/utils.cc b/fastdeploy/vision/common/processors/utils.cc index 1d26c79075c..ce0097bfc8a 100644 --- a/fastdeploy/vision/common/processors/utils.cc +++ b/fastdeploy/vision/common/processors/utils.cc @@ -108,7 +108,7 @@ FDDataType FalconCVDataTypeToFD(fcv::FCVImageType type) { return FDDataType::UNKNOWN1; } -fcv::FCVImageType CreateFalconDataCVType(FDDataType type, int channel) { +fcv::FCVImageType CreateFalconCVDataType(FDDataType type, int channel) { FDASSERT(channel == 1 || channel == 3 || channel == 4, "Only support channel be 1/3/4 in Falcon."); if (type == FDDataType::UINT8) { @@ -131,6 +131,16 @@ fcv::FCVImageType CreateFalconDataCVType(FDDataType type, int channel) { FDASSERT(false, "Data type of %s is not supported.", Str(type).c_str()); return fcv::FCVImageType::PACKAGE_BGR_F32; } + +fcv::Mat ConvertOpenCVMatToFalconCV(cv::Mat& im) { + int type = im.type() % 8; + // 0: uint8; 5: float32; 6: float64 + if (type != 0 && type != 5 && type != 6) { + FDASSERT(false, "Only support type of uint8/float/double, but now it's %d.", im.type()); + } + auto fcv_type = CreateFalconCVDataType(OpenCVDataTypeToFD(im.type()), im.channels()); + return fcv::Mat(im.cols, im.rows, fcv_type, im.ptr()); +} #endif diff --git a/fastdeploy/vision/common/processors/utils.h b/fastdeploy/vision/common/processors/utils.h index 03b80ce024d..191f358ae68 100644 --- a/fastdeploy/vision/common/processors/utils.h +++ b/fastdeploy/vision/common/processors/utils.h @@ -15,6 +15,7 @@ #pragma once #include "fastdeploy/utils/utils.h" +#include "opencv2/core/core.hpp" #include "fastdeploy/core/fd_tensor.h" #ifdef ENABLE_FALCONCV @@ -32,6 +33,8 @@ FDDataType OpenCVDataTypeToFD(int type); FDDataType FalconCVDataTypeToFD(fcv::FCVImageType type); // Create data type of falconcv by FDDataType fcv::FCVImageType CreateFalconCVDataType(FDDataType type, int channel = 1); +// Convert cv::Mat to fcv::Mat +fcv::Mat ConvertOpenCVMatToFalconCV(cv::Mat& im); #endif } // namespace vision diff --git a/tests/gtest_utils.h b/tests/gtest_utils.h index 04d3b5847c2..05f3b2ad874 100644 --- a/tests/gtest_utils.h +++ b/tests/gtest_utils.h @@ -14,6 +14,7 @@ #pragma once #include +#include #include "gtest/gtest.h" namespace fastdeploy { @@ -35,11 +36,18 @@ struct CheckData { ASSERT_EQ(lhs_ptr[i], rhs_ptr[i]); } } - void operator()(const float* lhs_ptr, const float* rhs_ptr, int num) { + void operator()(const float* lhs_ptr, const float* rhs_ptr, int num, float atol = 1e-06, float rtol = 1e-06) { for (int i = 0; i < num; ++i) { - ASSERT_FLOAT_EQ(lhs_ptr[i], rhs_ptr[i]); + float abs_diff = fabs(lhs_ptr[i] - rhs_ptr[i]); + float rel_diff = abs_diff / (std::max(fabs(lhs_ptr[i]), fabs(rhs_ptr[i])) + 1e-06); + if (abs_diff > atol && rel_diff > rtol) { + std::cout << "lhs_ptr: " << lhs_ptr[i] << " rhs_ptr: " << rhs_ptr[i] << " abs_diff: " << abs_diff << " rel_diff: " << rel_diff << std::endl; + ASSERT_EQ(1, 0); + } + ASSERT_EQ(1, 1); } } + void operator()(const double* lhs_ptr, const double* rhs_ptr, int num) { for (int i = 0; i < num; ++i) { ASSERT_DOUBLE_EQ(lhs_ptr[i], rhs_ptr[i]); @@ -47,4 +55,10 @@ struct CheckData { } }; +struct CheckType { + void operator()(FDDataType type1, FDDataType type2) { + ASSERT_EQ(type1, type2); + } +}; + } // namespace fastdeploy diff --git a/tests/vision_preprocess/CMakeCache.txt b/tests/vision_preprocess/CMakeCache.txt new file mode 100644 index 00000000000..d3c9d29f6a9 --- /dev/null +++ b/tests/vision_preprocess/CMakeCache.txt @@ -0,0 +1,355 @@ +# This is the CMakeCache file. +# For build in directory: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess +# It was generated by CMake: /usr/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_AR:FILEPATH=/usr/bin/ar + +//For backwards compatibility, what version of CMake commands and +// syntax should this version of CMake try to support. +CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4 + +//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or +// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. +CMAKE_BUILD_TYPE:STRING= + +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + +//CXX compiler +CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ + +//A wrapper around 'ar' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 + +//A wrapper around 'ranlib' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 + +//Flags used by the compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the compiler during debug builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the compiler during release builds for minimum +// size. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the compiler during release builds. +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the compiler during release builds with debug info. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//C compiler +CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc + +//A wrapper around 'ar' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 + +//A wrapper around 'ranlib' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 + +//Flags used by the compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the compiler during debug builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the compiler during release builds for minimum +// size. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the compiler during release builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the compiler during release builds with debug info. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Flags used by the linker. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_LINKER:FILEPATH=/usr/bin/ld + +//Path to a program. +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make + +//Flags used by the linker during the creation of modules. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=Project + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib + +//Flags used by the linker during the creation of dll's. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//No help, variable specified on the command line. +ENABLE_FALCONCV:UNINITIALIZED=ON + +//No help, variable specified on the command line. +ENABLE_ORT_BACKEND:UNINITIALIZED=ON + +//No help, variable specified on the command line. +ENABLE_VISION:UNINITIALIZED=ON + +//Single output directory for building all executables. +EXECUTABLE_OUTPUT_PATH:PATH= + +//Single output directory for building all libraries. +LIBRARY_OUTPUT_PATH:PATH= + +//Value Computed by CMake +Project_BINARY_DIR:STATIC=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess + +//Value Computed by CMake +Project_SOURCE_DIR:STATIC=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests + +//No help, variable specified on the command line. +WITH_TESTING:UNINITIALIZED=ON + +//Dependencies for the target +fastdeploy_gtest_main_LIB_DEPENDS:STATIC=general;gtest;general;gflags; + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=10 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=2 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/usr/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_COMPILER +CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER +CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_AR +CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB +CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Unix Makefiles +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.10 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 + diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake new file mode 100644 index 00000000000..a5a1b03bc04 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake @@ -0,0 +1,73 @@ +set(CMAKE_C_COMPILER "/usr/bin/cc") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "GNU") +set(CMAKE_C_COMPILER_VERSION "7.5.0") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Linux") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-7") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCC 1) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake new file mode 100644 index 00000000000..ca54dfaa773 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake @@ -0,0 +1,75 @@ +set(CMAKE_CXX_COMPILER "/usr/bin/c++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "GNU") +set(CMAKE_CXX_COMPILER_VERSION "7.5.0") +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") +set(CMAKE_CXX_COMPILER_WRAPPER "") +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17") +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") +set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") + +set(CMAKE_CXX_PLATFORM_ID "Linux") +set(CMAKE_CXX_SIMULATE_ID "") +set(CMAKE_CXX_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-7") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCXX 1) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "8") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") +endif() + +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin new file mode 100755 index 0000000000000000000000000000000000000000..d9ba66edeffa7ff456ffddbe57bcd01faa24e44f GIT binary patch literal 9064 zcmeHNeQZ$g3FqK1}UTJ)|VICAr_8J{lUV= z*0g0(s&-RSvVuB|ruz~gq*W^uux>4@HVKt=>WWGko7$AGu|Y*x8N(XjopbLw_Vcqt zC!zf@skgm3_x{euJ@4N8?z`uh$D5j$Ivoy>;)4A^y}=5Nc$u+lDmRdLVF6U&-@D*W z7=`^Zg=xN56Xfc0h)oM+v*1ED>48(r+38&j3l$HEmNTyu`Tgx06$Fr>>9jqsGm>m-;&qvQjbt>Dl(G`_Z51}%j_0dRseKa&H8i}R5XPIUq*g0>GCmHw5*8Y=yk_{|>NR346cAIKx z{zPmOM*Q)M&#Z2E?2BXSdP9pAWD>!e6Ho3u@z$xG_qG4|qpF45D_=kH zRoP}@vVgjv67G?OwQyYIUA4@lX84e}Ei%%q#Ktt~Sm>SDmglv=@B{3)tpK;bfV7nS zX~f+uVaxB6c|10qaD)4DuDf`H z4f1~O@`v)wzob%++_06yEzV3qlnE(UVH~(hWA(wHC z@L|O9UF;kGhd`#f{Y(9BXYH|Cx9eT0iuVrkp42?mKZgAuTKXrj|AwXiKK4)Q{%4`* zox8D~alxJsUEa*e>Ck@`{pi6l;c6iB6w=`3KxQk_t)~N-bJ^_ni&zzZIFRuI?E7mr zJ6Zfi{AKV${}V{-kS+!|KM2r@{l2<$flMRHyP@_N$$?`n_^|C|-RqlQQ}gw4C1keYSZzM<{ay#mMSFd4A&^13PuVW>X7;1MC$PGq zXJwlY?*F*bo4LOE4K>F@=zI1l_~XzxIQXFpGTB-<2x!C6GqZnaT+cywXWIhAXAaeR z5qDG$34ds0KFOlZetO31n}4PJy!@VH_W;`c9@YWhy#8NIo7aEk1Ly7m=cFT7Yaw$5 z$M~1av1j0hf7?};bI%s^cfbMrUcu*^fa~+4P06b#T~lz4Chr+?-7zyc3i{h%@v#@3 z6VBIVv#qb-GhKeKarc!Ee7mpK()0aRJ)ibL?=9=Ta;TF4VA=AeD;8SLu16Xcd>x-( z<7Rv05xl=DfWS}7r!(+>Is@{3lJAj&pF=3!kEzH#l*5tS{Y~z~^4*gQt$ZWso=HW% ze-h3K|DQLqapJc*>2E&9>gJDzd?PCO*%9%3nC190o*Vye#zpSmS^a$Iu7YlG{{Y*|=J`ra$gzIAzm=Kr`YA>o)Yl;7rO6xs68D^rR$sVPMV0j=X>UQ8fM*> zR^aS!&0gSXnDcp!+RYU7U3ib_xo1+s4o z@!LSwvkqn8UKZ zvRkyB;(aw;$rs~aMx5-+cTenVJH`8UwX#!;Yx&~5L>lEwt-F>V2ZOeGep=Zd2L~9Z zToe_(F8O?jMls$W!M?~#oG9`mt)up*`2F3f{3*uCUa9BWi}I9Nk?%Y8sQg;lDPG?< z6@Dpef8UR?9s9X)mhIT{C;wnOhxog$N0oUiKKCl{d@q%6nS!`mlr8ing%_VQa}Y0; zkMbc-`6XFjxreMme453sG&isvd)_Ig@Zx+?4dSKpX6X^^JfY-ev^;&0?c2}Ky@ zV!767dO^MEbE|7mRT zpJCX94VqKYm$*)-@bdU;*a6Ce(mN{t l$oorSulR1&-@yX4Hl~a#vh?p5Y$A%apFbQIM3AXn|3CR43KIYT literal 0 HcmV?d00001 diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin new file mode 100755 index 0000000000000000000000000000000000000000..3b264f277c80d82b22425e84ffbcb312ae667181 GIT binary patch literal 9248 zcmeHNeQ;FO6+fE|2ogw8K5S955uH}2yabCFt<}wj5K;rQ7!_;l%ggSDtZsI3KWqS} zriwE-txi&+Fm}db{Rf!Nlo@H2>L@zxv{P)yYK;tZG~!2Tg)xklW?Nu;&b{}ydHZ%( z+i^P6KfL&I?){yQd+x_O@7}ZC)7H7X%I6~#KRrd#8l0w)pkV|qFcl_2YNqM@_k3DF zQ@LHOFwGBY!dzV@jA>9~mi){Xz2+({=cNlY%suD=4~0%KSUEC&wnjlojYj_!U$@NE z{4F!J#R4^c3>gYNX^P%<~{o|i6To)l1#mGbp>GZCrpG~@8n zIZBEM6nfuaJ@NBDEpPFjog zxW&H6wy(NT^(5COX7Z|;6(Y~Cf;es!ksrt>4+i{5bE z;0kJ3^1!s}>Xloj1cSnpC7H_){cOq6P}^(AZlB&d`pnxuyu0S=Z8M%bbn}9rUjO#~ zL%)CfvCDf7A3u2K+VgL}=h3_OJ$PbP&732T-PLu?$lqT5VAd@kY}+6vKCbv_1`!t4 zCFrMlM0J=E%?L3GxMWae3v>}0F8X<{pW|wy`U9>6&~VW&alM@UtBeO+a;RpwQb+UY zJddAoh0mip4}Ooqz2o|21v}qkJWysH(iP-?#Q1Egr2(_Qv43|neh#nbm@F)pLG_pD zex`yW9vPT^!xb5q*Z(gV`OU`8w~WGGg_o}5i z=9&0C3Cnx2lx#aZ;Ml#fgcFZ#jB-<0b~@vvGIqZcOOVr(Ol5$F(^-*?k=@a?(vCz^ z(RHzOCYtJ6*&0tKqFqi;Tx|5D)5e5Nb~NH-90NuZ5t|`fAT7a-b^Xc2qjVDR@F?CZ%)3|fRC|=$KXJ7W zar;GA`wea%(d`Rp@RbYsdDl<7-|`1@M;6lXd+g63_em4&x%-%gKWfiyX1e*E_T15Y ze%lB9DE@eRE=aWZFZuj@_|5np3eqsgr9BNyuOoVY2Y-gSJ=ActJ=enW0jeJrc^QLO zzJcgK!>QJ-4X0YZ&(GG!S^i$u4V`Mwg}5Fxx~Dfir{?X$8I;?~eRYR|R|S1^1=|~< zW9>PndzJ0#VD2gQ_Ygk;8eG#IqN_ff5zL+5^rD*UG4?%wAN_HxmiE2nr(C|C_7U6g z(PhJ9wS)TtecjEBUp7`BWZXAn4E*lOe350F!!pLxo1RsEe)PI;*9hBvn4gi*(&3+9 zv~>97n^n6;s^%V;sHfaX?&BYR-|mq!ty?GjRl7H`zau`{`y`L=Twb3iHl`qdWEb?*BO`Fz)tJf@FcZ`pP7&CsridKurZ)cCXydXKsHmrun6 zqK;L|S6`jxc$n<9BkMD%Tbr7{&Ewa&(-XUu&!+gmmJ7jp>hRVAw1>dImx=A|>0DO;e1mhYva^`bi=>I~4L+)RBJwBdK z1#xIl;~g^g@{@d}Id0l(4L@hvmCeT@xZ6D#D-#QDD1@J_IIMr z9d>Wx)7ndjy;LTh$@cbIVVcYk+L?YkEIGoor2mrkx_Gk3iQAD(GL^QS>;Q$6{p;h= zOf+IOU(wW5UP$F0Z6}p-HgF0sliEPNDW^YbN3#9>8(78FQt84X(bkpD9nsdcYg@Ua zSUj3)33XWE_3O$0X6NFiu|#jucHQ^|ZB`&(_bD3hT_ov8D|rL=vV2X;$~L=g)iRaJ z6ui)n!ERe&%&l0qh9SQGCk zy?Xib8``?;u9i?|n`BN4>Cpc+4O^7w4F+9V(Xts@Pa3#b;bZc*DqUPG{RtV}GRa(( zcvdOqvKd{n(i{3SP7l*eO4B~nVhK)1uO};!%tS3-;zb!}ooVr#W%XoZ{QFQWLYB1p zoOB;qkqrs9r)egoId?@<=~yyR)UcVCipCvLFtzpZ3|T5MZDpbZTvw}NrIIS=ZAJUc zmh6kLE?Qbc?-{LuIvaNSV`1(!$+ol&PH~gPFGoLb_(H(^loh#$bExDqjV`zkf#RNS z*h&_4p$qwuyD#){ZvqW4&t34n1I9nc73t%C1$r?A4fX0TWBerFebGPi1EBIdl9VZ$ zkSFZZD#ke~7yQS44RozBEca>-;RSu%2yQYs`p3Nv6!`}hQ$^<5U2fxs-0h){`yZ(M z{v!qcLk{!~=1HyqZQK(<1ES1D{FlDH2*O}+YZZxO!=c?$>_ihGPPqkKhO=mY$?^#eu^v|EH+1^HOe5$3t|2aP`HJHm7o zxCiJ_uDJE_yBjF_fxLJB?lAh8fBfzUYC+LZZ~r?z`jviUL!Fd|L*L&sB27QTjYWaaa&h=!3q;9JhYqoNGEjKQI72w2yH`F!YaeW}Q*=%A4Up zolbB~u%-f{E714i(05bpJ-3OV>3@fDK=QN8`GG%p|K(Z^-`)CSM&LRR6a7MVb_M-< NlK}oF1P%4-{~JIDA)NpK literal 0 HcmV?d00001 diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake new file mode 100644 index 00000000000..c1e6338b906 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-4.9.253-tegra") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "4.9.253-tegra") +set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64") + + + +set(CMAKE_SYSTEM "Linux-4.9.253-tegra") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "4.9.253-tegra") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 00000000000..722faa803f6 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,598 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 +# define COMPILER_ID "XL" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__ARMCC_VERSION) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if defined(_MSC_VER) && !defined(__clang__) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out new file mode 100755 index 0000000000000000000000000000000000000000..9f5f394993853f4108d2a4d2f0f877f9ec47ee44 GIT binary patch literal 9248 zcmeHNYiv}<6+ZR?At4SX;6U^8@~A|kvbNLkRGX}AjOzqL3nog6+Pl}gYkS2$$nM?N zfYiExRH{gkEu1E8f7DH@3Q$y`LX;pysYCmtYWheMl~B|shL)CyNO2UP-WJ%NnK|G3 z-n;97g!+#$chAgs9&_e-XU^qYZR^)nS5*;GfLI0lOLskW)-Ua{w=Yni7KsFGFb%V(XKbiDzt@mnkW zO{}MEOx3=A@dFh7*^o?hHzZ@rl8JP_f0=D(qkStL3gt4PCgZ=duVmXdY|%BTal1w5 z41XTy6{h%S{_?k>6;JJZ@zbaGyjlDDqn&%7nZHEo;t{p$CIOm7qZI}_Ky^g5Xn`^J z1t!4?mS-`xr~-aBV|P}-pJXgp0skyxmE`-TkSFffsOrZRWLeRE+v-WA?POwSoQsNO zO?B|BQ$J4Ev9+WcHLqH~ESO$Ag<~{HUnWVp&ZN>rk zh%A6}K0GM+xDQ_|_Gij?!Vb!{K73T{Eb!sAvhIUEe5v3|efTQD-xPnUxV>r~Bb{{N zSeuGB=EB|Ubi##;i`vwP;MHuzZRdascTe%dF5GSZ6&H^6rz*Iz>z4J@LYSLndO62e?rNtHu&Wi61}nT za_jzumz$sFXaA2`emCp3Ty8J4a6T-$S9ZOo`|aadRM^jTMUID8hpT8g+Z&`0+6zpN zYTMJog_qgiQ~U&JU{mBct^RmcxNv3HaoyKr?0az!{b_7A9XlPMLb0BXX}vHFRZ+Mw zHhbV$kmzZCYp!Pg17r2!W4t5I8iQQqI^_ngEl2EoRb=syuCp()s$zX3*S4d4&`XO}3|)G!`rvSN-5V42RJg=#`*)z~(D2pP{S$%e zLto+k8m^+FN4S6I^8EP8&fLVAzyh8l^AC*$?s_0MgN7pX$cZ0S&pp4eSnN8&eR|=Y z=7X2sYdJVkulo1bx_^xiW{$h(ca}N*e#5;9XAyPYRSD;~ zdrgt=aVA~7TFj_iL=K8LlRP1ZBAi7Agnygp@w-(gbHuFu9BH{?}S~*0)?=MLQ$#Je!|NWv5x&IbT`&e8+CLS=J#+*Oox-D_@NwSui{ZRIDsnhaCa(ip*n&8qc-TAbWZ{XLX zoy`PShWI_Y>~nbyHhr^cRjBcy&luESji($?HxZdnZbpDX+?Tz0fIeSQep+eXdgZ4R z=BpQ@bsz0N-@6PfVifel(ZkAeH3j5!SU=o_7JccX{!q!@DuBuMZc4EFVzz4yf_nxq3?d8of;bS`Tsu4EC2oYdBI10@}}SF2>XMnmFTL- z<9!8u9uHU*O^z>Si?LHauNG_ha{N)om7jPo!oIOnK5rk_cFJ)hKj{zbN6sUiQqx^D{mkjH)uJ5!CLskeOn^4*I2xg1yaDz)ncmM32C{&jss z+xe*IU)QgSynlcAqsWiSdt6yn$+W9{A3MwPck(!n$h<`iUh9Pm}u?`tv1?*Ae1k(%tkcZKsAX-v*@OpL2UvfBO69DUnC~AAY_q z_A&oq|1{&3?7T0yf1kf7_OV|6Di!=k>?2MG`wRH|rTWKjX9?p$IOn3j*Y?Zz;fIwS z?zfX-81c@>G+sxD8=_un$mg;;INlqLHb`7tqU62le8b9yP)PojGdD-GPE#mDOJcO7 z|As8Fp#&R>+R3E#jkvwd>Pg?Iy|l8Ib#hL=rzaGp$uP6!q^zh4H0L&so3reEKdCTFGVa7n(6N-mVy%-ZWVHFvgIZ5!5F9QpR@$H-dyN7>fZx7mr1l>%%Ds)B^ z%I!!wb~jTeYiJ*Gi8O!d*iNBz#)*fTTRN6GcCVCpy@k5-3I0lzh*3zD`s`dEg zY|l_9YdEM>i%G#^UN)Yzm4f89CmjmuUI{tze$K0D%e;&pyHLE(OjILd=BSZDo=w@Q zM3gJdu(r|Sj-(KGaEd3sYfHMJth&eZR?TN2NyrGrJs)f(>rRWgpzh94!@UYL=oaQY z-Y0T5ESayU(5IA)UlPf za)LhM5RVHEecby%cZ)uVzyH3*3>6!IKJJI0I0L|c$boKSeHCj!8TUxgpj52q8mzHP)HU5A<>VACv$hHq-iqH z1FY^<3Pb%kM>dMSUtXF6b^1H!6y~o7`hFbxZi=~6GRm2V)Q@?j;w3HWaDF;OoB=Wxa+qFE`~ct3!kP{02F0BB$X?EnA( literal 0 HcmV?d00001 diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp new file mode 100644 index 00000000000..2d662985889 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp @@ -0,0 +1,576 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 +# define COMPILER_ID "XL" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) || defined(__GNUG__) +# define COMPILER_ID "GNU" +# if defined(__GNUC__) +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# else +# define COMPILER_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__ARMCC_VERSION) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if defined(_MSC_VER) && defined(_MSVC_LANG) +#define CXX_STD _MSVC_LANG +#else +#define CXX_STD __cplusplus +#endif + +const char* info_language_dialect_default = "INFO" ":" "dialect_default[" +#if CXX_STD > 201402L + "17" +#elif CXX_STD >= 201402L + "14" +#elif CXX_STD >= 201103L + "11" +#else + "98" +#endif +"]"; + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out new file mode 100755 index 0000000000000000000000000000000000000000..01b304a7ac79f197536c0ce1cedb409902827b59 GIT binary patch literal 9424 zcmeHNZ*W{y6+fFTP$+4V0&S(xY$+cqLpKSQHlWBRX_`ip7TdspRbO6qH_6(~Zrpu~ zX*;78I%6FiO{NhlI$HEg+wlW4t z_jW@a89&Kw-=2Ga=g&R&@4NTBe7&=0OHC+5NMU-0q%?Y^i^P=i!p)jt5~EhSntyMi zRU~4I4CeAz(uwuyRHiVt-nMh`;f))j`E0bs zZMWDL*{*H(o0??2uQEB8Fa8TA{8w9V+;A*@qI1`GJ2#xa{hr=$K9he^bn&R#e@w!( zgl4Nuk}xeNsz(c4bN4WbRI$8-v0JL(H!`-Y3jPpdkt+D@j8&5#UO=9>U*pn`8_BZb zW41Mz%Gl}D-Xs@=W#t_^=U5|lDns@_Hs?@RPj`EVbw{*i6ItDTy;dTbOAe*-PBPcm z+mX&@l703-TGWR|vKdvkT+yn6XhaRk(ChH?Sja!_K4m{K@i0N$+lx&R(i z`~~$V#O;-NjP!~J$J!L$vmo^6bT|AfczUSi%OF3*(D za``8o@~d1v<0-$!^QXMV%uZ<9D0i7A7S10i(SQb&c{@DZr`s>f4#qiiifza{xh+= zVj;Sd?TypBT}7rRjqOFT;xp{;tNcW0|Bn7Mbl3Y!V#T?AXG|YYv+t!x>BZ?fI{ikN zils(6ZS-O^5u#Xex^DmJ2+?Ewmc5Jlw@o+3PV-Kgt0Z;-&)nq zk;~hWy4lwW>ASgozclSX|8nTqB-{TUKa=enCw_j*#)%8B*BqOyx#9WQMk-!lpZ^gK z9iP0^acDMNb9|8dVKPJ~PjJ6o$K(Ffz4_TU!z+30R~(-XFTX8+B~A3xy=Q-1bKN^@ zN~OLN+*jvcZaa42_4Z@4jnZ$=ntpSAaObRdzJ_#%>fW|x``z*E$Y?5^%tZJ^_XxerLv$>I7J@S?_EMrgJcDr0jQ%?XHJ;Q#$nDJ#%nJ@DadF|LOjoGDHz{~Fcjccn>kUX~>Ln4}wAQvSsm=^)M{%IQ~% z`wY$~D-=JhjsV}PhavcVpLUQQ%gXhyR(;6*tK_zi#SO&Uv1#u*wO5+w8_gLlFH?R| z%V@Wn|DTh3?f8W#?x8q8FXRx;(Kt5;<#28;pOdviaSq10x2vP$?#R0P2MQUd(8RAr zJC}`Yit_t&{U-_rZ24MCYqWX8$6Yj7jjtT$+1;x1$;$}yJ016BKOQEhs{Eqzy!Fdp zL71<8{7S;S_TyI(#@mlCCd?B*el=k}`tfTB^VW|qbT7S@Fus2I+HxGmk1s8+dp}-B zQ<(4`Mwm|>h$DDlzPB{cC>D-~5#}2!_7M-v^4FF34?liA$49VJ&2z%M3t+v^qjF!W zyoU=vOe?5a?^}L(>?-r9)V7G;E6pQruG5gp`LosFmHp|;SN7XyS-zTm*g1*~(XE!g z!?cEK2{`sMSH5!GUA%G}fAE3zE}=z%dSU0}Vs%8xYaeK*mZk!B{>t*=e-M91@tJ_U z+i%MW`-WCamsB3_G2qwpfQ3Bci`nAZshn49jeI5k8OFs=yf0zjwNp87A24<*aaX=_ zz7<%$+PJ&&b%g!VU+;24yaD*PO}%wAt>c0?i924k6x@eh`wes;upWQ3fIqNV&|J==Zy=Q(xWh>*ipx~jqRlYT_ zU&Rf+ykZ|)$@ns=T<>3Az|O-)-czAwC)Iv1j`cgckKz(Ch?cLU3=EK^{ zh`pSXcM5}p(KyYAoh@g?ic8=*&q3!z)*4D@2kf+!aI(3)Wf#Us!ZhimlT1Wg?`&?a zE+ld9lx62~_8u#ladLZTFlUb>twdpDWDl!&N)}5xKGBX|dv~(q!3R4u9@L$P#z#lV z`g~8z9jVM<7I7d-rU%!Hb~L+_ZEo4o*4t@yZrf~eeB5s}LDuGnwzc(kclbFb8qW|1 zoUG2RYGLc<9b|R&Y;SMtv9@p7va_?#>T7H7=@hFbh9A!tO#3bquph|h=i~Lhj{&im zH|n2E*pAJ%MLwBH81Dn$3j7L|D7dCs&Hr7%O60TFu$@WpHv{v5!LQoAo%Ir_j8(`d z6J$CQQ8I7qq*GlkVsgxdZ{>E8`HW$Vr0vX5!5-oP_Q%p#jXz^xP~`hY)sGg&hJ@va zqWL`|jy=HC$+>hGxm1R~ii}b;lXa5Ow)XDzjyM&AhA`u4r;tC-HECby0FP+}Z4E zAkT*FkyM;(&9W`m2KOXIxrax1iFkLZ|2{8q1Kzs%jO8ZW&p;7ZP_~gpUg%nWw6x zKwnWgd42Jg?*`Q zZv~C0zW6V72iw1wG3it2<9-W@cnj)>KH7gk_1l?B!aW$Y-=OX{e2EbS_2nKVe&Kj9 zs}+IbUZrM?ugDAi7C&Bn+^a$RMaYv7j|ZJ(o>w2|6wpthW7G!xhsh@c`iRegq8`Wx z=kF2KM>SJg0qFOks5Dsr(SSbg{h*iYzh4CO5g!0;zD)g7%$H9WvNj~)+>gI62>OdM z=w$g{hrX9$?v;&l yreEtPy+2AkS@v4^gY_?L_|DmK>em4ER{~7b3&94?1Vjw$Mcugn2|=Yn{eJ_3Xcl<@ literal 0 HcmV?d00001 diff --git a/tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake b/tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 00000000000..71059bf6a3e --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/tests/vision_preprocess/CMakeFiles/CMakeOutput.log b/tests/vision_preprocess/CMakeFiles/CMakeOutput.log new file mode 100644 index 00000000000..356aca831b5 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/CMakeOutput.log @@ -0,0 +1,629 @@ +The system is: Linux - 4.9.253-tegra - aarch64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /usr/bin/cc +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" + +The C compiler identification is GNU, found in "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out" + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /usr/bin/c++ +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" + +The CXX compiler identification is GNU, found in "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out" + +Determining if the C compiler works passed with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_e36c0/fast" +/usr/bin/make -f CMakeFiles/cmTC_e36c0.dir/build.make CMakeFiles/cmTC_e36c0.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_e36c0.dir/testCCompiler.c.o +/usr/bin/cc -o CMakeFiles/cmTC_e36c0.dir/testCCompiler.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTC_e36c0 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e36c0.dir/link.txt --verbose=1 +/usr/bin/cc -rdynamic CMakeFiles/cmTC_e36c0.dir/testCCompiler.c.o -o cmTC_e36c0 +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_121c2/fast" +/usr/bin/make -f CMakeFiles/cmTC_121c2.dir/build.make CMakeFiles/cmTC_121c2.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o +/usr/bin/cc -o CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c +Linking C executable cmTC_121c2 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_121c2.dir/link.txt --verbose=1 +/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -o cmTC_121c2 +Using built-in specs. +COLLECT_GCC=/usr/bin/cc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper +Target: aarch64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu +Thread model: posix +gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) +COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_121c2' '-mlittle-endian' '-mabi=lp64' + /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccQ0PYWs.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_121c2 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_121c2' '-mlittle-endian' '-mabi=lp64' +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_121c2/fast"] + ignore line: [/usr/bin/make -f CMakeFiles/cmTC_121c2.dir/build.make CMakeFiles/cmTC_121c2.dir/build] + ignore line: [make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp'] + ignore line: [Building C object CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o] + ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c] + ignore line: [Linking C executable cmTC_121c2] + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_121c2.dir/link.txt --verbose=1] + ignore line: [/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -o cmTC_121c2 ] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/cc] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] + ignore line: [Target: aarch64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_121c2' '-mlittle-endian' '-mabi=lp64'] + link line: [ /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccQ0PYWs.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_121c2 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/aarch64-linux-gnu/7/collect2] ==> ignore + arg [-plugin] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so] ==> ignore + arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] ==> ignore + arg [-plugin-opt=-fresolution=/tmp/ccQ0PYWs.res] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib/ld-linux-aarch64.so.1] ==> ignore + arg [-X] ==> ignore + arg [-EL] ==> ignore + arg [-maarch64linux] ==> ignore + arg [--fix-cortex-a53-843419] ==> ignore + arg [-pie] ==> ignore + arg [-znow] ==> ignore + arg [-zrelro] ==> ignore + arg [-o] ==> ignore + arg [cmTC_121c2] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o] ==> ignore + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7] + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] + arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] + arg [CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-lgcc] ==> lib [gcc] + arg [--push-state] ==> ignore + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--pop-state] ==> ignore + arg [-lc] ==> lib [c] + arg [-lgcc] ==> lib [gcc] + arg [--push-state] ==> ignore + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--pop-state] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] ==> ignore + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7] ==> [/usr/lib/gcc/aarch64-linux-gnu/7] + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> [/usr/lib] + implicit libs: [gcc;gcc_s;c;gcc;gcc_s] + implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib] + implicit fwks: [] + + + + +Detecting C [-std=c11] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_3fec1/fast" +/usr/bin/make -f CMakeFiles/cmTC_3fec1.dir/build.make CMakeFiles/cmTC_3fec1.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_3fec1.dir/feature_tests.c.o +/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_3fec1.dir/feature_tests.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.c +Linking C executable cmTC_3fec1 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3fec1.dir/link.txt --verbose=1 +/usr/bin/cc -rdynamic CMakeFiles/cmTC_3fec1.dir/feature_tests.c.o -o cmTC_3fec1 +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:1c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c99] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_b343a/fast" +/usr/bin/make -f CMakeFiles/cmTC_b343a.dir/build.make CMakeFiles/cmTC_b343a.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_b343a.dir/feature_tests.c.o +/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_b343a.dir/feature_tests.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.c +Linking C executable cmTC_b343a +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b343a.dir/link.txt --verbose=1 +/usr/bin/cc -rdynamic CMakeFiles/cmTC_b343a.dir/feature_tests.c.o -o cmTC_b343a +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c90] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_f0c4b/fast" +/usr/bin/make -f CMakeFiles/cmTC_f0c4b.dir/build.make CMakeFiles/cmTC_f0c4b.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_f0c4b.dir/feature_tests.c.o +/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_f0c4b.dir/feature_tests.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.c +Linking C executable cmTC_f0c4b +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f0c4b.dir/link.txt --verbose=1 +/usr/bin/cc -rdynamic CMakeFiles/cmTC_f0c4b.dir/feature_tests.c.o -o cmTC_f0c4b +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:0c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:0c_variadic_macros +Determining if the CXX compiler works passed with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_46597/fast" +/usr/bin/make -f CMakeFiles/cmTC_46597.dir/build.make CMakeFiles/cmTC_46597.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_46597.dir/testCXXCompiler.cxx.o +/usr/bin/c++ -o CMakeFiles/cmTC_46597.dir/testCXXCompiler.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX executable cmTC_46597 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_46597.dir/link.txt --verbose=1 +/usr/bin/c++ -rdynamic CMakeFiles/cmTC_46597.dir/testCXXCompiler.cxx.o -o cmTC_46597 +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_cfd17/fast" +/usr/bin/make -f CMakeFiles/cmTC_cfd17.dir/build.make CMakeFiles/cmTC_cfd17.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o +/usr/bin/c++ -o CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp +Linking CXX executable cmTC_cfd17 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cfd17.dir/link.txt --verbose=1 +/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_cfd17 +Using built-in specs. +COLLECT_GCC=/usr/bin/c++ +COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper +Target: aarch64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu +Thread model: posix +gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) +COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cfd17' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' + /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUkiEJD.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_cfd17 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cfd17' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_cfd17/fast"] + ignore line: [/usr/bin/make -f CMakeFiles/cmTC_cfd17.dir/build.make CMakeFiles/cmTC_cfd17.dir/build] + ignore line: [make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp'] + ignore line: [Building CXX object CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [/usr/bin/c++ -o CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp] + ignore line: [Linking CXX executable cmTC_cfd17] + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cfd17.dir/link.txt --verbose=1] + ignore line: [/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_cfd17 ] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/c++] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] + ignore line: [Target: aarch64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cfd17' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'] + link line: [ /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUkiEJD.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_cfd17 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/aarch64-linux-gnu/7/collect2] ==> ignore + arg [-plugin] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so] ==> ignore + arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] ==> ignore + arg [-plugin-opt=-fresolution=/tmp/ccUkiEJD.res] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib/ld-linux-aarch64.so.1] ==> ignore + arg [-X] ==> ignore + arg [-EL] ==> ignore + arg [-maarch64linux] ==> ignore + arg [--fix-cortex-a53-843419] ==> ignore + arg [-pie] ==> ignore + arg [-znow] ==> ignore + arg [-zrelro] ==> ignore + arg [-o] ==> ignore + arg [cmTC_cfd17] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o] ==> ignore + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7] + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] + arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] + arg [CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-lstdc++] ==> lib [stdc++] + arg [-lm] ==> lib [m] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [-lc] ==> lib [c] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o] ==> ignore + arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] ==> ignore + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7] ==> [/usr/lib/gcc/aarch64-linux-gnu/7] + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> [/usr/lib] + implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc] + implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib] + implicit fwks: [] + + + + +Detecting CXX [-std=c++1z] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_21bc0/fast" +/usr/bin/make -f CMakeFiles/cmTC_21bc0.dir/build.make CMakeFiles/cmTC_21bc0.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_21bc0.dir/feature_tests.cxx.o +/usr/bin/c++ -std=c++1z -o CMakeFiles/cmTC_21bc0.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_21bc0 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_21bc0.dir/link.txt --verbose=1 +/usr/bin/c++ -rdynamic CMakeFiles/cmTC_21bc0.dir/feature_tests.cxx.o -o cmTC_21bc0 +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:1cxx_alias_templates + Feature record: CXX_FEATURE:1cxx_alignas + Feature record: CXX_FEATURE:1cxx_alignof + Feature record: CXX_FEATURE:1cxx_attributes + Feature record: CXX_FEATURE:1cxx_attribute_deprecated + Feature record: CXX_FEATURE:1cxx_auto_type + Feature record: CXX_FEATURE:1cxx_binary_literals + Feature record: CXX_FEATURE:1cxx_constexpr + Feature record: CXX_FEATURE:1cxx_contextual_conversions + Feature record: CXX_FEATURE:1cxx_decltype + Feature record: CXX_FEATURE:1cxx_decltype_auto + Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:1cxx_default_function_template_args + Feature record: CXX_FEATURE:1cxx_defaulted_functions + Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:1cxx_delegating_constructors + Feature record: CXX_FEATURE:1cxx_deleted_functions + Feature record: CXX_FEATURE:1cxx_digit_separators + Feature record: CXX_FEATURE:1cxx_enum_forward_declarations + Feature record: CXX_FEATURE:1cxx_explicit_conversions + Feature record: CXX_FEATURE:1cxx_extended_friend_declarations + Feature record: CXX_FEATURE:1cxx_extern_templates + Feature record: CXX_FEATURE:1cxx_final + Feature record: CXX_FEATURE:1cxx_func_identifier + Feature record: CXX_FEATURE:1cxx_generalized_initializers + Feature record: CXX_FEATURE:1cxx_generic_lambdas + Feature record: CXX_FEATURE:1cxx_inheriting_constructors + Feature record: CXX_FEATURE:1cxx_inline_namespaces + Feature record: CXX_FEATURE:1cxx_lambdas + Feature record: CXX_FEATURE:1cxx_lambda_init_captures + Feature record: CXX_FEATURE:1cxx_local_type_template_args + Feature record: CXX_FEATURE:1cxx_long_long_type + Feature record: CXX_FEATURE:1cxx_noexcept + Feature record: CXX_FEATURE:1cxx_nonstatic_member_init + Feature record: CXX_FEATURE:1cxx_nullptr + Feature record: CXX_FEATURE:1cxx_override + Feature record: CXX_FEATURE:1cxx_range_for + Feature record: CXX_FEATURE:1cxx_raw_string_literals + Feature record: CXX_FEATURE:1cxx_reference_qualified_functions + Feature record: CXX_FEATURE:1cxx_relaxed_constexpr + Feature record: CXX_FEATURE:1cxx_return_type_deduction + Feature record: CXX_FEATURE:1cxx_right_angle_brackets + Feature record: CXX_FEATURE:1cxx_rvalue_references + Feature record: CXX_FEATURE:1cxx_sizeof_member + Feature record: CXX_FEATURE:1cxx_static_assert + Feature record: CXX_FEATURE:1cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:1cxx_thread_local + Feature record: CXX_FEATURE:1cxx_trailing_return_types + Feature record: CXX_FEATURE:1cxx_unicode_literals + Feature record: CXX_FEATURE:1cxx_uniform_initialization + Feature record: CXX_FEATURE:1cxx_unrestricted_unions + Feature record: CXX_FEATURE:1cxx_user_literals + Feature record: CXX_FEATURE:1cxx_variable_templates + Feature record: CXX_FEATURE:1cxx_variadic_macros + Feature record: CXX_FEATURE:1cxx_variadic_templates + + +Detecting CXX [-std=c++14] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_4345c/fast" +/usr/bin/make -f CMakeFiles/cmTC_4345c.dir/build.make CMakeFiles/cmTC_4345c.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_4345c.dir/feature_tests.cxx.o +/usr/bin/c++ -std=c++14 -o CMakeFiles/cmTC_4345c.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_4345c +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4345c.dir/link.txt --verbose=1 +/usr/bin/c++ -rdynamic CMakeFiles/cmTC_4345c.dir/feature_tests.cxx.o -o cmTC_4345c +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:1cxx_alias_templates + Feature record: CXX_FEATURE:1cxx_alignas + Feature record: CXX_FEATURE:1cxx_alignof + Feature record: CXX_FEATURE:1cxx_attributes + Feature record: CXX_FEATURE:1cxx_attribute_deprecated + Feature record: CXX_FEATURE:1cxx_auto_type + Feature record: CXX_FEATURE:1cxx_binary_literals + Feature record: CXX_FEATURE:1cxx_constexpr + Feature record: CXX_FEATURE:1cxx_contextual_conversions + Feature record: CXX_FEATURE:1cxx_decltype + Feature record: CXX_FEATURE:1cxx_decltype_auto + Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:1cxx_default_function_template_args + Feature record: CXX_FEATURE:1cxx_defaulted_functions + Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:1cxx_delegating_constructors + Feature record: CXX_FEATURE:1cxx_deleted_functions + Feature record: CXX_FEATURE:1cxx_digit_separators + Feature record: CXX_FEATURE:1cxx_enum_forward_declarations + Feature record: CXX_FEATURE:1cxx_explicit_conversions + Feature record: CXX_FEATURE:1cxx_extended_friend_declarations + Feature record: CXX_FEATURE:1cxx_extern_templates + Feature record: CXX_FEATURE:1cxx_final + Feature record: CXX_FEATURE:1cxx_func_identifier + Feature record: CXX_FEATURE:1cxx_generalized_initializers + Feature record: CXX_FEATURE:1cxx_generic_lambdas + Feature record: CXX_FEATURE:1cxx_inheriting_constructors + Feature record: CXX_FEATURE:1cxx_inline_namespaces + Feature record: CXX_FEATURE:1cxx_lambdas + Feature record: CXX_FEATURE:1cxx_lambda_init_captures + Feature record: CXX_FEATURE:1cxx_local_type_template_args + Feature record: CXX_FEATURE:1cxx_long_long_type + Feature record: CXX_FEATURE:1cxx_noexcept + Feature record: CXX_FEATURE:1cxx_nonstatic_member_init + Feature record: CXX_FEATURE:1cxx_nullptr + Feature record: CXX_FEATURE:1cxx_override + Feature record: CXX_FEATURE:1cxx_range_for + Feature record: CXX_FEATURE:1cxx_raw_string_literals + Feature record: CXX_FEATURE:1cxx_reference_qualified_functions + Feature record: CXX_FEATURE:1cxx_relaxed_constexpr + Feature record: CXX_FEATURE:1cxx_return_type_deduction + Feature record: CXX_FEATURE:1cxx_right_angle_brackets + Feature record: CXX_FEATURE:1cxx_rvalue_references + Feature record: CXX_FEATURE:1cxx_sizeof_member + Feature record: CXX_FEATURE:1cxx_static_assert + Feature record: CXX_FEATURE:1cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:1cxx_thread_local + Feature record: CXX_FEATURE:1cxx_trailing_return_types + Feature record: CXX_FEATURE:1cxx_unicode_literals + Feature record: CXX_FEATURE:1cxx_uniform_initialization + Feature record: CXX_FEATURE:1cxx_unrestricted_unions + Feature record: CXX_FEATURE:1cxx_user_literals + Feature record: CXX_FEATURE:1cxx_variable_templates + Feature record: CXX_FEATURE:1cxx_variadic_macros + Feature record: CXX_FEATURE:1cxx_variadic_templates + + +Detecting CXX [-std=c++11] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_57480/fast" +/usr/bin/make -f CMakeFiles/cmTC_57480.dir/build.make CMakeFiles/cmTC_57480.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_57480.dir/feature_tests.cxx.o +/usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_57480.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_57480 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_57480.dir/link.txt --verbose=1 +/usr/bin/c++ -rdynamic CMakeFiles/cmTC_57480.dir/feature_tests.cxx.o -o cmTC_57480 +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:1cxx_alias_templates + Feature record: CXX_FEATURE:1cxx_alignas + Feature record: CXX_FEATURE:1cxx_alignof + Feature record: CXX_FEATURE:1cxx_attributes + Feature record: CXX_FEATURE:0cxx_attribute_deprecated + Feature record: CXX_FEATURE:1cxx_auto_type + Feature record: CXX_FEATURE:0cxx_binary_literals + Feature record: CXX_FEATURE:1cxx_constexpr + Feature record: CXX_FEATURE:0cxx_contextual_conversions + Feature record: CXX_FEATURE:1cxx_decltype + Feature record: CXX_FEATURE:0cxx_decltype_auto + Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:1cxx_default_function_template_args + Feature record: CXX_FEATURE:1cxx_defaulted_functions + Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:1cxx_delegating_constructors + Feature record: CXX_FEATURE:1cxx_deleted_functions + Feature record: CXX_FEATURE:0cxx_digit_separators + Feature record: CXX_FEATURE:1cxx_enum_forward_declarations + Feature record: CXX_FEATURE:1cxx_explicit_conversions + Feature record: CXX_FEATURE:1cxx_extended_friend_declarations + Feature record: CXX_FEATURE:1cxx_extern_templates + Feature record: CXX_FEATURE:1cxx_final + Feature record: CXX_FEATURE:1cxx_func_identifier + Feature record: CXX_FEATURE:1cxx_generalized_initializers + Feature record: CXX_FEATURE:0cxx_generic_lambdas + Feature record: CXX_FEATURE:1cxx_inheriting_constructors + Feature record: CXX_FEATURE:1cxx_inline_namespaces + Feature record: CXX_FEATURE:1cxx_lambdas + Feature record: CXX_FEATURE:0cxx_lambda_init_captures + Feature record: CXX_FEATURE:1cxx_local_type_template_args + Feature record: CXX_FEATURE:1cxx_long_long_type + Feature record: CXX_FEATURE:1cxx_noexcept + Feature record: CXX_FEATURE:1cxx_nonstatic_member_init + Feature record: CXX_FEATURE:1cxx_nullptr + Feature record: CXX_FEATURE:1cxx_override + Feature record: CXX_FEATURE:1cxx_range_for + Feature record: CXX_FEATURE:1cxx_raw_string_literals + Feature record: CXX_FEATURE:1cxx_reference_qualified_functions + Feature record: CXX_FEATURE:0cxx_relaxed_constexpr + Feature record: CXX_FEATURE:0cxx_return_type_deduction + Feature record: CXX_FEATURE:1cxx_right_angle_brackets + Feature record: CXX_FEATURE:1cxx_rvalue_references + Feature record: CXX_FEATURE:1cxx_sizeof_member + Feature record: CXX_FEATURE:1cxx_static_assert + Feature record: CXX_FEATURE:1cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:1cxx_thread_local + Feature record: CXX_FEATURE:1cxx_trailing_return_types + Feature record: CXX_FEATURE:1cxx_unicode_literals + Feature record: CXX_FEATURE:1cxx_uniform_initialization + Feature record: CXX_FEATURE:1cxx_unrestricted_unions + Feature record: CXX_FEATURE:1cxx_user_literals + Feature record: CXX_FEATURE:0cxx_variable_templates + Feature record: CXX_FEATURE:1cxx_variadic_macros + Feature record: CXX_FEATURE:1cxx_variadic_templates + + +Detecting CXX [-std=c++98] compiler features compiled with the following output: +Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/make" "cmTC_0b7ff/fast" +/usr/bin/make -f CMakeFiles/cmTC_0b7ff.dir/build.make CMakeFiles/cmTC_0b7ff.dir/build +make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_0b7ff.dir/feature_tests.cxx.o +/usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_0b7ff.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_0b7ff +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0b7ff.dir/link.txt --verbose=1 +/usr/bin/c++ -rdynamic CMakeFiles/cmTC_0b7ff.dir/feature_tests.cxx.o -o cmTC_0b7ff +make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:0cxx_alias_templates + Feature record: CXX_FEATURE:0cxx_alignas + Feature record: CXX_FEATURE:0cxx_alignof + Feature record: CXX_FEATURE:0cxx_attributes + Feature record: CXX_FEATURE:0cxx_attribute_deprecated + Feature record: CXX_FEATURE:0cxx_auto_type + Feature record: CXX_FEATURE:0cxx_binary_literals + Feature record: CXX_FEATURE:0cxx_constexpr + Feature record: CXX_FEATURE:0cxx_contextual_conversions + Feature record: CXX_FEATURE:0cxx_decltype + Feature record: CXX_FEATURE:0cxx_decltype_auto + Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:0cxx_default_function_template_args + Feature record: CXX_FEATURE:0cxx_defaulted_functions + Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:0cxx_delegating_constructors + Feature record: CXX_FEATURE:0cxx_deleted_functions + Feature record: CXX_FEATURE:0cxx_digit_separators + Feature record: CXX_FEATURE:0cxx_enum_forward_declarations + Feature record: CXX_FEATURE:0cxx_explicit_conversions + Feature record: CXX_FEATURE:0cxx_extended_friend_declarations + Feature record: CXX_FEATURE:0cxx_extern_templates + Feature record: CXX_FEATURE:0cxx_final + Feature record: CXX_FEATURE:0cxx_func_identifier + Feature record: CXX_FEATURE:0cxx_generalized_initializers + Feature record: CXX_FEATURE:0cxx_generic_lambdas + Feature record: CXX_FEATURE:0cxx_inheriting_constructors + Feature record: CXX_FEATURE:0cxx_inline_namespaces + Feature record: CXX_FEATURE:0cxx_lambdas + Feature record: CXX_FEATURE:0cxx_lambda_init_captures + Feature record: CXX_FEATURE:0cxx_local_type_template_args + Feature record: CXX_FEATURE:0cxx_long_long_type + Feature record: CXX_FEATURE:0cxx_noexcept + Feature record: CXX_FEATURE:0cxx_nonstatic_member_init + Feature record: CXX_FEATURE:0cxx_nullptr + Feature record: CXX_FEATURE:0cxx_override + Feature record: CXX_FEATURE:0cxx_range_for + Feature record: CXX_FEATURE:0cxx_raw_string_literals + Feature record: CXX_FEATURE:0cxx_reference_qualified_functions + Feature record: CXX_FEATURE:0cxx_relaxed_constexpr + Feature record: CXX_FEATURE:0cxx_return_type_deduction + Feature record: CXX_FEATURE:0cxx_right_angle_brackets + Feature record: CXX_FEATURE:0cxx_rvalue_references + Feature record: CXX_FEATURE:0cxx_sizeof_member + Feature record: CXX_FEATURE:0cxx_static_assert + Feature record: CXX_FEATURE:0cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:0cxx_thread_local + Feature record: CXX_FEATURE:0cxx_trailing_return_types + Feature record: CXX_FEATURE:0cxx_unicode_literals + Feature record: CXX_FEATURE:0cxx_uniform_initialization + Feature record: CXX_FEATURE:0cxx_unrestricted_unions + Feature record: CXX_FEATURE:0cxx_user_literals + Feature record: CXX_FEATURE:0cxx_variable_templates + Feature record: CXX_FEATURE:0cxx_variadic_macros + Feature record: CXX_FEATURE:0cxx_variadic_templates diff --git a/tests/vision_preprocess/CMakeFiles/Makefile.cmake b/tests/vision_preprocess/CMakeFiles/Makefile.cmake new file mode 100644 index 00000000000..093285365d7 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/Makefile.cmake @@ -0,0 +1,118 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +# The generator used is: +set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") + +# The top level Makefile was generated from the following files: +set(CMAKE_MAKEFILE_DEPENDS + "CMakeCache.txt" + "../CMakeLists.txt" + "CMakeFiles/3.10.2/CMakeCCompiler.cmake" + "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" + "CMakeFiles/3.10.2/CMakeSystem.cmake" + "CMakeFiles/feature_tests.c" + "CMakeFiles/feature_tests.cxx" + "/usr/share/cmake-3.10/Modules/CMakeCCompiler.cmake.in" + "/usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c" + "/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake" + "/usr/share/cmake-3.10/Modules/CMakeCXXCompiler.cmake.in" + "/usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp" + "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake" + "/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake" + "/usr/share/cmake-3.10/Modules/CMakeCompilerIdDetection.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineCCompiler.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineCXXCompiler.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineCompileFeatures.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerABI.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerId.cmake" + "/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake" + "/usr/share/cmake-3.10/Modules/CMakeFindBinUtils.cmake" + "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake" + "/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake" + "/usr/share/cmake-3.10/Modules/CMakeParseImplicitLinkInfo.cmake" + "/usr/share/cmake-3.10/Modules/CMakeSystem.cmake.in" + "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake" + "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake" + "/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake" + "/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake" + "/usr/share/cmake-3.10/Modules/CMakeTestCompilerCommon.cmake" + "/usr/share/cmake-3.10/Modules/CMakeUnixFindMake.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/ADSP-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/ARMCC-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/AppleClang-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Borland-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Cray-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GHS-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-C-FeatureTests.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-FeatureTests.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU-FindBinUtils.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/HP-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/IAR-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Intel-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/MIPSpro-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/MSVC-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/PGI-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/PathScale-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/SCO-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/TI-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/Watcom-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/XL-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/zOS-C-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" + "/usr/share/cmake-3.10/Modules/Internal/FeatureTesting.cmake" + "/usr/share/cmake-3.10/Modules/Platform/Linux-Determine-CXX.cmake" + "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" + "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" + "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" + "/usr/share/cmake-3.10/Modules/Platform/Linux.cmake" + "/usr/share/cmake-3.10/Modules/Platform/UnixPaths.cmake" + ) + +# The corresponding makefile is: +set(CMAKE_MAKEFILE_OUTPUTS + "Makefile" + "CMakeFiles/cmake.check_cache" + ) + +# Byproducts of CMake generate step: +set(CMAKE_MAKEFILE_PRODUCTS + "CMakeFiles/3.10.2/CMakeSystem.cmake" + "CMakeFiles/3.10.2/CMakeCCompiler.cmake" + "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" + "CMakeFiles/3.10.2/CMakeCCompiler.cmake" + "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" + "CMakeFiles/CMakeDirectoryInformation.cmake" + ) + +# Dependency information for all targets: +set(CMAKE_DEPEND_INFO_FILES + "CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake" + ) diff --git a/tests/vision_preprocess/CMakeFiles/Makefile2 b/tests/vision_preprocess/CMakeFiles/Makefile2 new file mode 100644 index 00000000000..553f941c5d3 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/Makefile2 @@ -0,0 +1,108 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# The main recursive all target +all: + +.PHONY : all + +# The main recursive preinstall target +preinstall: + +.PHONY : preinstall + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess + +#============================================================================= +# Target rules for target CMakeFiles/fastdeploy_gtest_main.dir + +# All Build rule for target. +CMakeFiles/fastdeploy_gtest_main.dir/all: + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/depend + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles --progress-num=1,2 "Built target fastdeploy_gtest_main" +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/all + +# Include target in all. +all: CMakeFiles/fastdeploy_gtest_main.dir/all + +.PHONY : all + +# Build rule for subdir invocation for target. +CMakeFiles/fastdeploy_gtest_main.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles 2 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/fastdeploy_gtest_main.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles 0 +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/rule + +# Convenience name for target. +fastdeploy_gtest_main: CMakeFiles/fastdeploy_gtest_main.dir/rule + +.PHONY : fastdeploy_gtest_main + +# clean rule for target. +CMakeFiles/fastdeploy_gtest_main.dir/clean: + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/clean +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/clean + +# clean rule for target. +clean: CMakeFiles/fastdeploy_gtest_main.dir/clean + +.PHONY : clean + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/tests/vision_preprocess/CMakeFiles/Progress/1 b/tests/vision_preprocess/CMakeFiles/Progress/1 new file mode 100644 index 00000000000..7b4d68d70fc --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/Progress/1 @@ -0,0 +1 @@ +empty \ No newline at end of file diff --git a/tests/vision_preprocess/CMakeFiles/Progress/count.txt b/tests/vision_preprocess/CMakeFiles/Progress/count.txt new file mode 100644 index 00000000000..0cfbf08886f --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/Progress/count.txt @@ -0,0 +1 @@ +2 diff --git a/tests/vision_preprocess/CMakeFiles/TargetDirectories.txt b/tests/vision_preprocess/CMakeFiles/TargetDirectories.txt new file mode 100644 index 00000000000..0a00aa9d923 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,3 @@ +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/rebuild_cache.dir +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/edit_cache.dir diff --git a/tests/vision_preprocess/CMakeFiles/cmake.check_cache b/tests/vision_preprocess/CMakeFiles/cmake.check_cache new file mode 100644 index 00000000000..3dccd731726 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache new file mode 100644 index 00000000000..404030be5a6 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache @@ -0,0 +1,16 @@ +#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc +gtest/gtest.h +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest/gtest.h +gflags/gflags.h +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gflags/gflags.h +glog/logging.h +/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/glog/logging.h + diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake new file mode 100644 index 00000000000..caac07bf2ff --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake @@ -0,0 +1,21 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc" "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "../" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make new file mode 100644 index 00000000000..84e2adfba02 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make @@ -0,0 +1,114 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess + +# Include any dependencies generated for this target. +include CMakeFiles/fastdeploy_gtest_main.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/fastdeploy_gtest_main.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/fastdeploy_gtest_main.dir/flags.make + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o: CMakeFiles/fastdeploy_gtest_main.dir/flags.make +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o: ../gtest_main.cc + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" + /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i" + /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc > CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s" + /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc -o CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires: + +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides.build +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides.build: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o + + +# Object files for target fastdeploy_gtest_main +fastdeploy_gtest_main_OBJECTS = \ +"CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" + +# External object files for target fastdeploy_gtest_main +fastdeploy_gtest_main_EXTERNAL_OBJECTS = + +libfastdeploy_gtest_main.a: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o +libfastdeploy_gtest_main.a: CMakeFiles/fastdeploy_gtest_main.dir/build.make +libfastdeploy_gtest_main.a: CMakeFiles/fastdeploy_gtest_main.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX static library libfastdeploy_gtest_main.a" + $(CMAKE_COMMAND) -P CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/fastdeploy_gtest_main.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/fastdeploy_gtest_main.dir/build: libfastdeploy_gtest_main.a + +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/build + +CMakeFiles/fastdeploy_gtest_main.dir/requires: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires + +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/requires + +CMakeFiles/fastdeploy_gtest_main.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/clean + +CMakeFiles/fastdeploy_gtest_main.dir/depend: + cd /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/depend + diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake new file mode 100644 index 00000000000..44f9e7fdbd1 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" + "libfastdeploy_gtest_main.pdb" + "libfastdeploy_gtest_main.a" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake new file mode 100644 index 00000000000..9059ecd1134 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libfastdeploy_gtest_main.a" +) diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal new file mode 100644 index 00000000000..97e13575857 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal @@ -0,0 +1,5 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o + /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make new file mode 100644 index 00000000000..3b17bea846b --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make @@ -0,0 +1,5 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o: ../gtest_main.cc + diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make new file mode 100644 index 00000000000..865074d6280 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +# compile CXX with /usr/bin/c++ +CXX_FLAGS = + +CXX_DEFINES = + +CXX_INCLUDES = -I/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests + diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt new file mode 100644 index 00000000000..a7d5204f29d --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/ar qc libfastdeploy_gtest_main.a CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o +/usr/bin/ranlib libfastdeploy_gtest_main.a diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make new file mode 100644 index 00000000000..abadeb0c3ab --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 1 +CMAKE_PROGRESS_2 = 2 + diff --git a/tests/vision_preprocess/CMakeFiles/feature_tests.bin b/tests/vision_preprocess/CMakeFiles/feature_tests.bin new file mode 100755 index 0000000000000000000000000000000000000000..258a67ca57c7d365608b2ba311caefb7cd6cfcb2 GIT binary patch literal 13288 zcmeGjZHyJw^}KzHf*>r4V2ikKg~X4_rc=V*RKQYMRtU+n`1?G*!fEsc3{~abFd-=iGbG+j%py zyEdl(_QJe#@AMw>Ypqz8AUjDrK%vvKqE}S--}=_ zoQ3ULfs^!%1W1)-NU3J1)It);B-dCY`ND9nL}L%Ku!RICDO?=rK2Ks9g18&`OSW#A zC+S<}NsSe#?AWRx%Tbf$b||?WN{-m$+fj>woJ-oh;}Ys7vKfITXw9u_4N<$oYHdW5AXi$-f7ovpZfga+vYxg z!@CC#|K;6BmS+F<(VKU#zv#~U9=`XPpPZaNZPw98HgsG!_`z!*Prv=+?R}(TtdfMO z06ee(#w5(ffntwHLNkI?fQPH70WRT20Dc|oYN!KPfFENkRfUlaT844_uOU7qS*m`0 zY}LUWxG-dAUf^d#T?l`l!iVqc*-`ZT0P(39KX{|?{}S;tVFqN*!3q|hzk9HL9**cP z8dxm-;uqjY2no;eNTK1+SfTq0+kdIz->md3Py+h|K01y|75`-+d+tDdoc`+s|8%%g z@nchz{rDT_XTWu0(7IR-nr8IsT9@tUd3&RUO(JQYue-ih&}|3wY|-@@Z+Io*wLx3m zu|_j3*UH(RZ@C?7TJlB5>d>=!(vkH%r9uPEGId{9NXs!bL}`SQ9N5Seip~i8>Kn0c z+KyK8EEB219_kmnMLSRfB3VzRBWX~qIc@E$n_IM{=_OYyuh9CX6--xRoPSb8a*;1( z**@?K3~M#;k!o|iPO6F1uf}<+ipz{|RQMO`6GD>lJkG~Lc%FABLU^7>lhrz5J={L1 z_!DRk#Vjsw2Jp&MK{^t^2jlfn03QrBI~BeLl?3(d3gCm!!@U7~Q2)~bJjY=&==7%j zyH6)!0OQKw=}mv!bs(u7;(H)?0_j@;_RjokTe&X#?SWKH{h|6)@^!uh?Ny}RFKMEE z2;092v=3wZg+Ti)Y#){FdC>pr#dy7!ggx&hGv%Z6Vc>nVryu)-p|#x`!}-1HelSU$ks%_@e0{yte%s`R_;B<}cdH%~;PU+0&bz7k>L>DwMZjU!BdF zYcdJA3ia)U58KKJ_X*v#netO;?_s=B(7&#;8Ls(cYNmX8(+k4aN6_}+7I@{z40z_9 zB$NSQYa(^|z>yjK&!oCL8<93Zww~Vfoapb?^#p zV4xGOKlH1b^N%+S4|hC)wtf0W)9zDmH}4**Cp-Tn?36ahxe}Zw39+^T&S_b{UR&AP z)N#wY)@v6Vy}g>A%VChveG7wEmtM;IBCOaV__-iY7jG}`9ySK-U$|4CV zeo4=3SlwW`o{h{=KGQPt@x3!e)6v4w1<~h55j|?*Fu0aqavgCuv0ceQ>MA*gkJeO1 zLet&c==_$cvBa26h2jQloC#oBd73Y_lOv~izFRWe^x{B^Sx@+PTF!ID1KMFX8dD}pJV~!P$Cq665EZ3%o=6E`B+Kf0k#&_aHAv&_; zZOt|<$G5v|D`sxxEQcl}zG9f;I9zbrhL+b0Su<{7*-p3R+FxQsYzOxNmgeXM%j?mN zxYavqCz2pc)eOA{=V+{W(ZIz*Yhk>JiEl?aP5i{K9H(gY8di@Vb*)3Q4kv-36|6$m za)nJXY^8j@$B*$mPI1@8p^1vPx|6eLw#AX|!M8A%X8q`)#I?Hc1<)}p?QV=2H1K22 ze%H$Dy~rY#QG5gn1OuF@CN4Fc`!Uwpxo%%W>+_bDb#>z|%a56=?gl+yq5z|;jA8L` zJ{G%_W25~jzw4f7xiKSy4x&+|HCwHF2|a1}nK4qKWnaJ;5f?rDZr9RHoFO=&qK5dc zZsT0ejT0?Pj%^f8Ym6a74jk{o$PyIMCE8)h!TFBkZ%{--q1fjDzM#8f^tC~EZQ2i1 z98m2f@i-PdCe3Z#aEoIxusc24;w0uKzeRiX1YYK6!^5=yq*5mVBsQ*t+TM#3bEnmd zZxRdJga;-(FyVm-4@`Jq!UGi#@ONzfZcXpo zR2WW^&B{3xoqbW^bBM3WCZ2Cf2|hRFZ^?AdM1{YTUnHBAW37Lm87>lPM~x)#H|0)M z;cv;4)kkhV{uokv=zNO`z5i1Y=W?f7STf%Dk+`PXeBg)%df3=WR9qY~b;%#!m*G z2i5o~!1Jvde@H>{7cy%#vfOBk!+!K6OewJ4ICGkbOtNr2Yya5eijZ`A~3!@ zTcn=oyqYigqxkP2p7itcko8MF(Rq8T&=bW={%C$c3HjsvFZpM{s*s-_5c)^(htz{e zj?1|aj;B)3OlS|SJ3NDn?U(g%eCGQdZG2h38PdN~*f|rzc+wYlzrRI(%Bis}k10ekqji2+7pYlTZ zxyNVY3lX1U;Q)M0;G=PAHR9v)JZ?k$B>{P^ZdCl?d>U8aqxm$KBK|yx#(}<3^!!Nh zb8jQ?QKdhem$Mh~sS&nHZT~2GUO{|Z{>>4=AI-mc7RM_tuVuI5?+?Y96Nr!FA5!@6 zxYy!~A&n!iBk|oB?_vt#JN(Qh=~!lIJrilnrhVJuSlXev7`=ad#*y(pbl|D(j4 z4cA|iF2Vv67W954O{mC5MR>H3*Y2_OyRWG0<=;<0cq@X4>4ZoF#o;&>*JV}wV%uHJ{oE56$YU37G!nWaLZ4@Ckk zc|=#mYUy-bhsO?{@1^l52DI1xz0GmjZLKJ2UYOSl3x>YOIAqsP%SaDnXjm=H%+Knq$ z-rU-ubu=}%w^9~VCAH~)O{uEN*~(-B8BVd;R-u%xYJo9wu|(=uHTO8#Suu%OB8g0- zi^XPVLE7sp_<9zh?@HLsH5>C0+#X0fMc+y{HLqUi>p9iJ)sxPaY|QnvO-NI#Tlcyl zZT2~+PeR|76qU(P)zFYe2a+V9YCU-$(jv($O=%F27Ne4Oiz0t5ZFQ?@*KMLKx1@xe zGg5-t%zV1xGPEYJHmhD#MQ+s}Lq z??O85`MJ&eJ%%YIPxe#aY`;RoMy!xeS)TWW4EZ|*_s{Zt|C^P3vr@?4H5hg(Jjv6y zldwGPKgh1i_XlQBkoP0VB1(AtA4F_WKBeRsc1p3zFQ4x+91O|#D|v>GhX#zzV}%cg zwAI7tM5c1rUJ<8uqO2RG50Q%0_iWl3%>z}?)vh7kr{=Rsbg!4m0 Y?w5IIVkN{PNXNe+IsU_p3WnwX3o4Y!=l}o! literal 0 HcmV?d00001 diff --git a/tests/vision_preprocess/CMakeFiles/feature_tests.c b/tests/vision_preprocess/CMakeFiles/feature_tests.c new file mode 100644 index 00000000000..83e86dd8cd8 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/feature_tests.c @@ -0,0 +1,34 @@ + + const char features[] = {"\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 +"1" +#else +"0" +#endif +"c_function_prototypes\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_restrict\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L +"1" +#else +"0" +#endif +"c_static_assert\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_variadic_macros\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/tests/vision_preprocess/CMakeFiles/feature_tests.cxx b/tests/vision_preprocess/CMakeFiles/feature_tests.cxx new file mode 100644 index 00000000000..b93418c6ed6 --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/feature_tests.cxx @@ -0,0 +1,405 @@ + + const char features[] = {"\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L +"1" +#else +"0" +#endif +"cxx_aggregate_default_initializers\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_alias_templates\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_alignas\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_alignof\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_attributes\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_attribute_deprecated\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_auto_type\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_binary_literals\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_constexpr\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_contextual_conversions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_decltype\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_decltype_auto\n" +"CXX_FEATURE:" +#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_decltype_incomplete_return_types\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_default_function_template_args\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_defaulted_functions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_defaulted_move_initializers\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_delegating_constructors\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_deleted_functions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_digit_separators\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_enum_forward_declarations\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_explicit_conversions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_extended_friend_declarations\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_extern_templates\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_final\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_func_identifier\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_generalized_initializers\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_generic_lambdas\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_inheriting_constructors\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_inline_namespaces\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_lambdas\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_lambda_init_captures\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_local_type_template_args\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_long_long_type\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_noexcept\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_nonstatic_member_init\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_nullptr\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_override\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_range_for\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_raw_string_literals\n" +"CXX_FEATURE:" +#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_reference_qualified_functions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L +"1" +#else +"0" +#endif +"cxx_relaxed_constexpr\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_return_type_deduction\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_right_angle_brackets\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_rvalue_references\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_sizeof_member\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_static_assert\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_strong_enums\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus +"1" +#else +"0" +#endif +"cxx_template_template_parameters\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_thread_local\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_trailing_return_types\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_unicode_literals\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_uniform_initialization\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_unrestricted_unions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_user_literals\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L +"1" +#else +"0" +#endif +"cxx_variable_templates\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_variadic_macros\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_variadic_templates\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/tests/vision_preprocess/CMakeFiles/progress.marks b/tests/vision_preprocess/CMakeFiles/progress.marks new file mode 100644 index 00000000000..0cfbf08886f --- /dev/null +++ b/tests/vision_preprocess/CMakeFiles/progress.marks @@ -0,0 +1 @@ +2 diff --git a/tests/vision_preprocess/Makefile b/tests/vision_preprocess/Makefile new file mode 100644 index 00000000000..092ef4f4b47 --- /dev/null +++ b/tests/vision_preprocess/Makefile @@ -0,0 +1,166 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.10 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named fastdeploy_gtest_main + +# Build rule for target. +fastdeploy_gtest_main: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 fastdeploy_gtest_main +.PHONY : fastdeploy_gtest_main + +# fast build rule for target. +fastdeploy_gtest_main/fast: + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/build +.PHONY : fastdeploy_gtest_main/fast + +# target to build an object file +gtest_main.o: + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o +.PHONY : gtest_main.o + +# target to preprocess a source file +gtest_main.i: + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i +.PHONY : gtest_main.i + +# target to generate assembly for a file +gtest_main.s: + $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s +.PHONY : gtest_main.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... fastdeploy_gtest_main" + @echo "... edit_cache" + @echo "... gtest_main.o" + @echo "... gtest_main.i" + @echo "... gtest_main.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/tests/vision_preprocess/cmake_install.cmake b/tests/vision_preprocess/cmake_install.cmake new file mode 100644 index 00000000000..f23fcedc4cd --- /dev/null +++ b/tests/vision_preprocess/cmake_install.cmake @@ -0,0 +1,49 @@ +# Install script for directory: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/tests/vision_preprocess/test_vision_cast.cc b/tests/vision_preprocess/test_vision_cast.cc new file mode 100644 index 00000000000..6f20c468de5 --- /dev/null +++ b/tests/vision_preprocess/test_vision_cast.cc @@ -0,0 +1,51 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_cast) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_center_crop.cc b/tests/vision_preprocess/test_vision_center_crop.cc new file mode 100644 index 00000000000..852f7607f9c --- /dev/null +++ b/tests/vision_preprocess/test_vision_center_crop.cc @@ -0,0 +1,79 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_center_crop1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::CenterCrop::Run(&mat_opencv, 20, 20, vision::ProcLib::OPENCV); + vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_center_crop2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::CenterCrop::Run(&mat_opencv, 20, 20, vision::ProcLib::OPENCV); + vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_colorspace_convert.cc b/tests/vision_preprocess/test_vision_colorspace_convert.cc new file mode 100644 index 00000000000..0261940be07 --- /dev/null +++ b/tests/vision_preprocess/test_vision_colorspace_convert.cc @@ -0,0 +1,76 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_bgr2rgb) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::BGR2RGB::Run(&mat_opencv, vision::ProcLib::OPENCV); + vision::BGR2RGB::Run(&mat_falconcv, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_rgb2bgr) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::RGB2BGR::Run(&mat_opencv, vision::ProcLib::OPENCV); + vision::RGB2BGR::Run(&mat_falconcv, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_convert.cc b/tests/vision_preprocess/test_vision_convert.cc new file mode 100644 index 00000000000..afb1d00d486 --- /dev/null +++ b/tests/vision_preprocess/test_vision_convert.cc @@ -0,0 +1,85 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_convert1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + + std::vector alpha({0.1, 0.2, 0.3}); + std::vector beta({0.24, 0.77, 0.32}); + vision::Convert::Run(&mat_opencv, alpha, beta, vision::ProcLib::OPENCV); + vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_convert2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + + std::vector alpha({0.1, 0.2, 0.3}); + std::vector beta({0.24, 0.77, 0.32}); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Convert::Run(&mat_opencv, alpha, beta, vision::ProcLib::OPENCV); + vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_crop.cc b/tests/vision_preprocess/test_vision_crop.cc new file mode 100644 index 00000000000..02d8f329d06 --- /dev/null +++ b/tests/vision_preprocess/test_vision_crop.cc @@ -0,0 +1,79 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_crop1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Crop::Run(&mat_opencv, 4, 8, 20, 20, vision::ProcLib::OPENCV); + vision::Crop::Run(&mat_falconcv, 4, 8, 20, 20, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_center_crop2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Crop::Run(&mat_opencv, 10, 11, 20, 20, vision::ProcLib::OPENCV); + vision::Crop::Run(&mat_falconcv, 10, 11, 20, 20, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_hwc2chw.cc b/tests/vision_preprocess/test_vision_hwc2chw.cc new file mode 100644 index 00000000000..7e589c479d5 --- /dev/null +++ b/tests/vision_preprocess/test_vision_hwc2chw.cc @@ -0,0 +1,78 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_hwc2chw1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); + vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +//TEST(fastdeploy, falconcv_hwc2chw2) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; +// +// cv::Mat mat(64, 64, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); +// +// vision::Mat mat_opencv(mat); +// vision::Mat mat_falconcv(mat1); +// vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); +// vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FALCONCV); +// +// FDTensor opencv; +// FDTensor falconcv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_falconcv.ShareWithTensor(&falconcv); +// +// check_shape(opencv.shape, falconcv.shape); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); +// check_type(opencv.dtype, falconcv.dtype); +//} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_limit_stride.cc b/tests/vision_preprocess/test_vision_limit_stride.cc new file mode 100644 index 00000000000..727d360fbc5 --- /dev/null +++ b/tests/vision_preprocess/test_vision_limit_stride.cc @@ -0,0 +1,53 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_limit_stride1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 35, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::LimitByStride::Run(&mat_opencv, 32, 2, vision::ProcLib::OPENCV); + vision::LimitByStride::Run(&mat_falconcv, 32, 2, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_normalize.cc b/tests/vision_preprocess/test_vision_normalize.cc new file mode 100644 index 00000000000..ff1e94ce7e9 --- /dev/null +++ b/tests/vision_preprocess/test_vision_normalize.cc @@ -0,0 +1,116 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_norm1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + + std::vector mean({0.25, 0.35, 0.45}); + std::vector std({0.33, 0.22, 0.54}); + std::vector min; + std::vector max; + vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); + vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_norm2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + + std::vector mean({0.25, 0.35, 0.45}); + std::vector std({0.33, 0.22, 0.54}); + std::vector min({1, 2, 3}); + std::vector max({300, 400, 500}); + vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); + vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_norm3) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + + std::vector mean({0.25, 0.35, 0.45}); + std::vector std({0.33, 0.22, 0.54}); + std::vector min({1, 2, 3}); + std::vector max({300, 400, 500}); + vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); + vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_normalize_and_permute.cc b/tests/vision_preprocess/test_vision_normalize_and_permute.cc new file mode 100644 index 00000000000..30a7be9fce7 --- /dev/null +++ b/tests/vision_preprocess/test_vision_normalize_and_permute.cc @@ -0,0 +1,65 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_norm_and_perm0) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + cv::Mat mat2 = mat.clone(); + + std::vector mean({0.25, 0.35, 0.45}); + std::vector std({0.33, 0.22, 0.54}); + std::vector min; + std::vector max; + + vision::Mat mat_opencv(mat); + vision::Mat mat_opencv1(mat); + vision::Mat mat_falconcv(mat1); + + vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); + vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); + vision::NormalizeAndPermute::Run(&mat_opencv1, mean, std, true, min, max, vision::ProcLib::OPENCV); + + vision::NormalizeAndPermute::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor opencv1; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_opencv1.ShareWithTensor(&opencv1); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_data(reinterpret_cast(opencv1.Data()), reinterpret_cast(falconcv.Data()), opencv1.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_pad.cc b/tests/vision_preprocess/test_vision_pad.cc new file mode 100644 index 00000000000..85d5bf890ec --- /dev/null +++ b/tests/vision_preprocess/test_vision_pad.cc @@ -0,0 +1,78 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FALCONCV +TEST(fastdeploy, falconcv_pad1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Pad::Run(&mat_opencv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::OPENCV); + vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} + +TEST(fastdeploy, falconcv_pad2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 64, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_falconcv(mat1); + vision::Pad::Run(&mat_opencv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::OPENCV); + vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FALCONCV); + + FDTensor opencv; + FDTensor falconcv; + + mat_opencv.ShareWithTensor(&opencv); + mat_falconcv.ShareWithTensor(&falconcv); + + check_shape(opencv.shape, falconcv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); + check_type(opencv.dtype, falconcv.dtype); +} +#endif + +} // namespace fastdeploy From 159204d674885dad50a49bd45278f2df5ef69249 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Thu, 20 Oct 2022 10:27:46 +0800 Subject: [PATCH 04/16] Add more implementation --- tests/vision_preprocess/CMakeCache.txt | 355 ---------- .../CMakeFiles/3.10.2/CMakeCCompiler.cmake | 73 -- .../CMakeFiles/3.10.2/CMakeCXXCompiler.cmake | 75 --- .../3.10.2/CMakeDetermineCompilerABI_C.bin | Bin 9064 -> 0 bytes .../3.10.2/CMakeDetermineCompilerABI_CXX.bin | Bin 9248 -> 0 bytes .../CMakeFiles/3.10.2/CMakeSystem.cmake | 15 - .../3.10.2/CompilerIdC/CMakeCCompilerId.c | 598 ----------------- .../CMakeFiles/3.10.2/CompilerIdC/a.out | Bin 9248 -> 0 bytes .../CompilerIdCXX/CMakeCXXCompilerId.cpp | 576 ---------------- .../CMakeFiles/3.10.2/CompilerIdCXX/a.out | Bin 9424 -> 0 bytes .../CMakeDirectoryInformation.cmake | 16 - .../CMakeFiles/CMakeOutput.log | 629 ------------------ .../CMakeFiles/Makefile.cmake | 118 ---- tests/vision_preprocess/CMakeFiles/Makefile2 | 108 --- tests/vision_preprocess/CMakeFiles/Progress/1 | 1 - .../CMakeFiles/Progress/count.txt | 1 - .../CMakeFiles/TargetDirectories.txt | 3 - .../CMakeFiles/cmake.check_cache | 1 - .../CXX.includecache | 16 - .../DependInfo.cmake | 21 - .../fastdeploy_gtest_main.dir/build.make | 114 ---- .../cmake_clean.cmake | 10 - .../cmake_clean_target.cmake | 3 - .../fastdeploy_gtest_main.dir/depend.internal | 5 - .../fastdeploy_gtest_main.dir/depend.make | 5 - .../fastdeploy_gtest_main.dir/flags.make | 10 - .../fastdeploy_gtest_main.dir/link.txt | 2 - .../fastdeploy_gtest_main.dir/progress.make | 3 - .../CMakeFiles/feature_tests.bin | Bin 13288 -> 0 bytes .../CMakeFiles/feature_tests.c | 34 - .../CMakeFiles/feature_tests.cxx | 405 ----------- .../CMakeFiles/progress.marks | 1 - tests/vision_preprocess/Makefile | 166 ----- tests/vision_preprocess/cmake_install.cmake | 49 -- 34 files changed, 3413 deletions(-) delete mode 100644 tests/vision_preprocess/CMakeCache.txt delete mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake delete mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin delete mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin delete mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c delete mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out delete mode 100644 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp delete mode 100755 tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out delete mode 100644 tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/CMakeOutput.log delete mode 100644 tests/vision_preprocess/CMakeFiles/Makefile.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/Makefile2 delete mode 100644 tests/vision_preprocess/CMakeFiles/Progress/1 delete mode 100644 tests/vision_preprocess/CMakeFiles/Progress/count.txt delete mode 100644 tests/vision_preprocess/CMakeFiles/TargetDirectories.txt delete mode 100644 tests/vision_preprocess/CMakeFiles/cmake.check_cache delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt delete mode 100644 tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make delete mode 100755 tests/vision_preprocess/CMakeFiles/feature_tests.bin delete mode 100644 tests/vision_preprocess/CMakeFiles/feature_tests.c delete mode 100644 tests/vision_preprocess/CMakeFiles/feature_tests.cxx delete mode 100644 tests/vision_preprocess/CMakeFiles/progress.marks delete mode 100644 tests/vision_preprocess/Makefile delete mode 100644 tests/vision_preprocess/cmake_install.cmake diff --git a/tests/vision_preprocess/CMakeCache.txt b/tests/vision_preprocess/CMakeCache.txt deleted file mode 100644 index d3c9d29f6a9..00000000000 --- a/tests/vision_preprocess/CMakeCache.txt +++ /dev/null @@ -1,355 +0,0 @@ -# This is the CMakeCache file. -# For build in directory: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess -# It was generated by CMake: /usr/bin/cmake -# You can edit this file to change values found and used by cmake. -# If you do not want to change any of the values, simply exit the editor. -# If you do want to change a value, simply edit, save, and exit the editor. -# The syntax for the file is as follows: -# KEY:TYPE=VALUE -# KEY is the name of a variable in the cache. -# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. -# VALUE is the current value for the KEY. - -######################## -# EXTERNAL cache entries -######################## - -//Path to a program. -CMAKE_AR:FILEPATH=/usr/bin/ar - -//For backwards compatibility, what version of CMake commands and -// syntax should this version of CMake try to support. -CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4 - -//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or -// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. -CMAKE_BUILD_TYPE:STRING= - -//Enable/Disable color output during build. -CMAKE_COLOR_MAKEFILE:BOOL=ON - -//CXX compiler -CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ - -//A wrapper around 'ar' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 - -//A wrapper around 'ranlib' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 - -//Flags used by the compiler during all build types. -CMAKE_CXX_FLAGS:STRING= - -//Flags used by the compiler during debug builds. -CMAKE_CXX_FLAGS_DEBUG:STRING=-g - -//Flags used by the compiler during release builds for minimum -// size. -CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG - -//Flags used by the compiler during release builds. -CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG - -//Flags used by the compiler during release builds with debug info. -CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG - -//C compiler -CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc - -//A wrapper around 'ar' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 - -//A wrapper around 'ranlib' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 - -//Flags used by the compiler during all build types. -CMAKE_C_FLAGS:STRING= - -//Flags used by the compiler during debug builds. -CMAKE_C_FLAGS_DEBUG:STRING=-g - -//Flags used by the compiler during release builds for minimum -// size. -CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG - -//Flags used by the compiler during release builds. -CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG - -//Flags used by the compiler during release builds with debug info. -CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG - -//Flags used by the linker. -CMAKE_EXE_LINKER_FLAGS:STRING= - -//Flags used by the linker during debug builds. -CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during release minsize builds. -CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during release builds. -CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during Release with Debug Info builds. -CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//Enable/Disable output of compile commands during generation. -CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF - -//Install path prefix, prepended onto install directories. -CMAKE_INSTALL_PREFIX:PATH=/usr/local - -//Path to a program. -CMAKE_LINKER:FILEPATH=/usr/bin/ld - -//Path to a program. -CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make - -//Flags used by the linker during the creation of modules. -CMAKE_MODULE_LINKER_FLAGS:STRING= - -//Flags used by the linker during debug builds. -CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during release minsize builds. -CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during release builds. -CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during Release with Debug Info builds. -CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//Path to a program. -CMAKE_NM:FILEPATH=/usr/bin/nm - -//Path to a program. -CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy - -//Path to a program. -CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump - -//Value Computed by CMake -CMAKE_PROJECT_NAME:STATIC=Project - -//Path to a program. -CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib - -//Flags used by the linker during the creation of dll's. -CMAKE_SHARED_LINKER_FLAGS:STRING= - -//Flags used by the linker during debug builds. -CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during release minsize builds. -CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during release builds. -CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during Release with Debug Info builds. -CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//If set, runtime paths are not added when installing shared libraries, -// but are added when building. -CMAKE_SKIP_INSTALL_RPATH:BOOL=NO - -//If set, runtime paths are not added when using shared libraries. -CMAKE_SKIP_RPATH:BOOL=NO - -//Flags used by the linker during the creation of static libraries. -CMAKE_STATIC_LINKER_FLAGS:STRING= - -//Flags used by the linker during debug builds. -CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during release minsize builds. -CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during release builds. -CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during Release with Debug Info builds. -CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//Path to a program. -CMAKE_STRIP:FILEPATH=/usr/bin/strip - -//If this value is on, makefiles will be generated without the -// .SILENT directive, and all commands will be echoed to the console -// during the make. This is useful for debugging only. With Visual -// Studio IDE projects all commands are done without /nologo. -CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE - -//No help, variable specified on the command line. -ENABLE_FALCONCV:UNINITIALIZED=ON - -//No help, variable specified on the command line. -ENABLE_ORT_BACKEND:UNINITIALIZED=ON - -//No help, variable specified on the command line. -ENABLE_VISION:UNINITIALIZED=ON - -//Single output directory for building all executables. -EXECUTABLE_OUTPUT_PATH:PATH= - -//Single output directory for building all libraries. -LIBRARY_OUTPUT_PATH:PATH= - -//Value Computed by CMake -Project_BINARY_DIR:STATIC=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess - -//Value Computed by CMake -Project_SOURCE_DIR:STATIC=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests - -//No help, variable specified on the command line. -WITH_TESTING:UNINITIALIZED=ON - -//Dependencies for the target -fastdeploy_gtest_main_LIB_DEPENDS:STATIC=general;gtest;general;gflags; - - -######################## -# INTERNAL cache entries -######################## - -//ADVANCED property for variable: CMAKE_AR -CMAKE_AR-ADVANCED:INTERNAL=1 -//This is the directory where this CMakeCache.txt was created -CMAKE_CACHEFILE_DIR:INTERNAL=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess -//Major version of cmake used to create the current loaded cache -CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 -//Minor version of cmake used to create the current loaded cache -CMAKE_CACHE_MINOR_VERSION:INTERNAL=10 -//Patch version of cmake used to create the current loaded cache -CMAKE_CACHE_PATCH_VERSION:INTERNAL=2 -//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE -CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 -//Path to CMake executable. -CMAKE_COMMAND:INTERNAL=/usr/bin/cmake -//Path to cpack program executable. -CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack -//Path to ctest program executable. -CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest -//ADVANCED property for variable: CMAKE_CXX_COMPILER -CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR -CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB -CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS -CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG -CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL -CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE -CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO -CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_COMPILER -CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_COMPILER_AR -CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB -CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS -CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG -CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL -CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE -CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO -CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//Executable file format -CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS -CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG -CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL -CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE -CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS -CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 -//Name of external makefile project generator. -CMAKE_EXTRA_GENERATOR:INTERNAL= -//Name of generator. -CMAKE_GENERATOR:INTERNAL=Unix Makefiles -//Name of generator platform. -CMAKE_GENERATOR_PLATFORM:INTERNAL= -//Name of generator toolset. -CMAKE_GENERATOR_TOOLSET:INTERNAL= -//Source directory with the top level CMakeLists.txt file for this -// project -CMAKE_HOME_DIRECTORY:INTERNAL=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests -//Install .so files without execute permission. -CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 -//ADVANCED property for variable: CMAKE_LINKER -CMAKE_LINKER-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MAKE_PROGRAM -CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS -CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG -CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL -CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE -CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_NM -CMAKE_NM-ADVANCED:INTERNAL=1 -//number of local generators -CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 -//ADVANCED property for variable: CMAKE_OBJCOPY -CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_OBJDUMP -CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 -//Platform information initialized -CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_RANLIB -CMAKE_RANLIB-ADVANCED:INTERNAL=1 -//Path to CMake installation. -CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.10 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS -CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG -CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL -CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE -CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH -CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SKIP_RPATH -CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS -CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG -CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL -CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE -CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STRIP -CMAKE_STRIP-ADVANCED:INTERNAL=1 -//uname command -CMAKE_UNAME:INTERNAL=/bin/uname -//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE -CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 - diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake deleted file mode 100644 index a5a1b03bc04..00000000000 --- a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCCompiler.cmake +++ /dev/null @@ -1,73 +0,0 @@ -set(CMAKE_C_COMPILER "/usr/bin/cc") -set(CMAKE_C_COMPILER_ARG1 "") -set(CMAKE_C_COMPILER_ID "GNU") -set(CMAKE_C_COMPILER_VERSION "7.5.0") -set(CMAKE_C_COMPILER_VERSION_INTERNAL "") -set(CMAKE_C_COMPILER_WRAPPER "") -set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") -set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") -set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") -set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") -set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") - -set(CMAKE_C_PLATFORM_ID "Linux") -set(CMAKE_C_SIMULATE_ID "") -set(CMAKE_C_SIMULATE_VERSION "") - - - -set(CMAKE_AR "/usr/bin/ar") -set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-7") -set(CMAKE_RANLIB "/usr/bin/ranlib") -set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") -set(CMAKE_LINKER "/usr/bin/ld") -set(CMAKE_COMPILER_IS_GNUCC 1) -set(CMAKE_C_COMPILER_LOADED 1) -set(CMAKE_C_COMPILER_WORKS TRUE) -set(CMAKE_C_ABI_COMPILED TRUE) -set(CMAKE_COMPILER_IS_MINGW ) -set(CMAKE_COMPILER_IS_CYGWIN ) -if(CMAKE_COMPILER_IS_CYGWIN) - set(CYGWIN 1) - set(UNIX 1) -endif() - -set(CMAKE_C_COMPILER_ENV_VAR "CC") - -if(CMAKE_COMPILER_IS_MINGW) - set(MINGW 1) -endif() -set(CMAKE_C_COMPILER_ID_RUN 1) -set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) -set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) -set(CMAKE_C_LINKER_PREFERENCE 10) - -# Save compiler ABI information. -set(CMAKE_C_SIZEOF_DATA_PTR "8") -set(CMAKE_C_COMPILER_ABI "ELF") -set(CMAKE_C_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") - -if(CMAKE_C_SIZEOF_DATA_PTR) - set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") -endif() - -if(CMAKE_C_COMPILER_ABI) - set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") -endif() - -if(CMAKE_C_LIBRARY_ARCHITECTURE) - set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") -endif() - -set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") -if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) - set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") -endif() - - - - - -set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") -set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib") -set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake deleted file mode 100644 index ca54dfaa773..00000000000 --- a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake +++ /dev/null @@ -1,75 +0,0 @@ -set(CMAKE_CXX_COMPILER "/usr/bin/c++") -set(CMAKE_CXX_COMPILER_ARG1 "") -set(CMAKE_CXX_COMPILER_ID "GNU") -set(CMAKE_CXX_COMPILER_VERSION "7.5.0") -set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") -set(CMAKE_CXX_COMPILER_WRAPPER "") -set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") -set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17") -set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") -set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") -set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") -set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") - -set(CMAKE_CXX_PLATFORM_ID "Linux") -set(CMAKE_CXX_SIMULATE_ID "") -set(CMAKE_CXX_SIMULATE_VERSION "") - - - -set(CMAKE_AR "/usr/bin/ar") -set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-7") -set(CMAKE_RANLIB "/usr/bin/ranlib") -set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") -set(CMAKE_LINKER "/usr/bin/ld") -set(CMAKE_COMPILER_IS_GNUCXX 1) -set(CMAKE_CXX_COMPILER_LOADED 1) -set(CMAKE_CXX_COMPILER_WORKS TRUE) -set(CMAKE_CXX_ABI_COMPILED TRUE) -set(CMAKE_COMPILER_IS_MINGW ) -set(CMAKE_COMPILER_IS_CYGWIN ) -if(CMAKE_COMPILER_IS_CYGWIN) - set(CYGWIN 1) - set(UNIX 1) -endif() - -set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") - -if(CMAKE_COMPILER_IS_MINGW) - set(MINGW 1) -endif() -set(CMAKE_CXX_COMPILER_ID_RUN 1) -set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) -set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) -set(CMAKE_CXX_LINKER_PREFERENCE 30) -set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) - -# Save compiler ABI information. -set(CMAKE_CXX_SIZEOF_DATA_PTR "8") -set(CMAKE_CXX_COMPILER_ABI "ELF") -set(CMAKE_CXX_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") - -if(CMAKE_CXX_SIZEOF_DATA_PTR) - set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") -endif() - -if(CMAKE_CXX_COMPILER_ABI) - set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") -endif() - -if(CMAKE_CXX_LIBRARY_ARCHITECTURE) - set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") -endif() - -set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") -if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) - set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") -endif() - - - - - -set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") -set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib") -set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin deleted file mode 100755 index d9ba66edeffa7ff456ffddbe57bcd01faa24e44f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9064 zcmeHNeQZ$g3FqK1}UTJ)|VICAr_8J{lUV= z*0g0(s&-RSvVuB|ruz~gq*W^uux>4@HVKt=>WWGko7$AGu|Y*x8N(XjopbLw_Vcqt zC!zf@skgm3_x{euJ@4N8?z`uh$D5j$Ivoy>;)4A^y}=5Nc$u+lDmRdLVF6U&-@D*W z7=`^Zg=xN56Xfc0h)oM+v*1ED>48(r+38&j3l$HEmNTyu`Tgx06$Fr>>9jqsGm>m-;&qvQjbt>Dl(G`_Z51}%j_0dRseKa&H8i}R5XPIUq*g0>GCmHw5*8Y=yk_{|>NR346cAIKx z{zPmOM*Q)M&#Z2E?2BXSdP9pAWD>!e6Ho3u@z$xG_qG4|qpF45D_=kH zRoP}@vVgjv67G?OwQyYIUA4@lX84e}Ei%%q#Ktt~Sm>SDmglv=@B{3)tpK;bfV7nS zX~f+uVaxB6c|10qaD)4DuDf`H z4f1~O@`v)wzob%++_06yEzV3qlnE(UVH~(hWA(wHC z@L|O9UF;kGhd`#f{Y(9BXYH|Cx9eT0iuVrkp42?mKZgAuTKXrj|AwXiKK4)Q{%4`* zox8D~alxJsUEa*e>Ck@`{pi6l;c6iB6w=`3KxQk_t)~N-bJ^_ni&zzZIFRuI?E7mr zJ6Zfi{AKV${}V{-kS+!|KM2r@{l2<$flMRHyP@_N$$?`n_^|C|-RqlQQ}gw4C1keYSZzM<{ay#mMSFd4A&^13PuVW>X7;1MC$PGq zXJwlY?*F*bo4LOE4K>F@=zI1l_~XzxIQXFpGTB-<2x!C6GqZnaT+cywXWIhAXAaeR z5qDG$34ds0KFOlZetO31n}4PJy!@VH_W;`c9@YWhy#8NIo7aEk1Ly7m=cFT7Yaw$5 z$M~1av1j0hf7?};bI%s^cfbMrUcu*^fa~+4P06b#T~lz4Chr+?-7zyc3i{h%@v#@3 z6VBIVv#qb-GhKeKarc!Ee7mpK()0aRJ)ibL?=9=Ta;TF4VA=AeD;8SLu16Xcd>x-( z<7Rv05xl=DfWS}7r!(+>Is@{3lJAj&pF=3!kEzH#l*5tS{Y~z~^4*gQt$ZWso=HW% ze-h3K|DQLqapJc*>2E&9>gJDzd?PCO*%9%3nC190o*Vye#zpSmS^a$Iu7YlG{{Y*|=J`ra$gzIAzm=Kr`YA>o)Yl;7rO6xs68D^rR$sVPMV0j=X>UQ8fM*> zR^aS!&0gSXnDcp!+RYU7U3ib_xo1+s4o z@!LSwvkqn8UKZ zvRkyB;(aw;$rs~aMx5-+cTenVJH`8UwX#!;Yx&~5L>lEwt-F>V2ZOeGep=Zd2L~9Z zToe_(F8O?jMls$W!M?~#oG9`mt)up*`2F3f{3*uCUa9BWi}I9Nk?%Y8sQg;lDPG?< z6@Dpef8UR?9s9X)mhIT{C;wnOhxog$N0oUiKKCl{d@q%6nS!`mlr8ing%_VQa}Y0; zkMbc-`6XFjxreMme453sG&isvd)_Ig@Zx+?4dSKpX6X^^JfY-ev^;&0?c2}Ky@ zV!767dO^MEbE|7mRT zpJCX94VqKYm$*)-@bdU;*a6Ce(mN{t l$oorSulR1&-@yX4Hl~a#vh?p5Y$A%apFbQIM3AXn|3CR43KIYT diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin deleted file mode 100755 index 3b264f277c80d82b22425e84ffbcb312ae667181..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9248 zcmeHNeQ;FO6+fE|2ogw8K5S955uH}2yabCFt<}wj5K;rQ7!_;l%ggSDtZsI3KWqS} zriwE-txi&+Fm}db{Rf!Nlo@H2>L@zxv{P)yYK;tZG~!2Tg)xklW?Nu;&b{}ydHZ%( z+i^P6KfL&I?){yQd+x_O@7}ZC)7H7X%I6~#KRrd#8l0w)pkV|qFcl_2YNqM@_k3DF zQ@LHOFwGBY!dzV@jA>9~mi){Xz2+({=cNlY%suD=4~0%KSUEC&wnjlojYj_!U$@NE z{4F!J#R4^c3>gYNX^P%<~{o|i6To)l1#mGbp>GZCrpG~@8n zIZBEM6nfuaJ@NBDEpPFjog zxW&H6wy(NT^(5COX7Z|;6(Y~Cf;es!ksrt>4+i{5bE z;0kJ3^1!s}>Xloj1cSnpC7H_){cOq6P}^(AZlB&d`pnxuyu0S=Z8M%bbn}9rUjO#~ zL%)CfvCDf7A3u2K+VgL}=h3_OJ$PbP&732T-PLu?$lqT5VAd@kY}+6vKCbv_1`!t4 zCFrMlM0J=E%?L3GxMWae3v>}0F8X<{pW|wy`U9>6&~VW&alM@UtBeO+a;RpwQb+UY zJddAoh0mip4}Ooqz2o|21v}qkJWysH(iP-?#Q1Egr2(_Qv43|neh#nbm@F)pLG_pD zex`yW9vPT^!xb5q*Z(gV`OU`8w~WGGg_o}5i z=9&0C3Cnx2lx#aZ;Ml#fgcFZ#jB-<0b~@vvGIqZcOOVr(Ol5$F(^-*?k=@a?(vCz^ z(RHzOCYtJ6*&0tKqFqi;Tx|5D)5e5Nb~NH-90NuZ5t|`fAT7a-b^Xc2qjVDR@F?CZ%)3|fRC|=$KXJ7W zar;GA`wea%(d`Rp@RbYsdDl<7-|`1@M;6lXd+g63_em4&x%-%gKWfiyX1e*E_T15Y ze%lB9DE@eRE=aWZFZuj@_|5np3eqsgr9BNyuOoVY2Y-gSJ=ActJ=enW0jeJrc^QLO zzJcgK!>QJ-4X0YZ&(GG!S^i$u4V`Mwg}5Fxx~Dfir{?X$8I;?~eRYR|R|S1^1=|~< zW9>PndzJ0#VD2gQ_Ygk;8eG#IqN_ff5zL+5^rD*UG4?%wAN_HxmiE2nr(C|C_7U6g z(PhJ9wS)TtecjEBUp7`BWZXAn4E*lOe350F!!pLxo1RsEe)PI;*9hBvn4gi*(&3+9 zv~>97n^n6;s^%V;sHfaX?&BYR-|mq!ty?GjRl7H`zau`{`y`L=Twb3iHl`qdWEb?*BO`Fz)tJf@FcZ`pP7&CsridKurZ)cCXydXKsHmrun6 zqK;L|S6`jxc$n<9BkMD%Tbr7{&Ewa&(-XUu&!+gmmJ7jp>hRVAw1>dImx=A|>0DO;e1mhYva^`bi=>I~4L+)RBJwBdK z1#xIl;~g^g@{@d}Id0l(4L@hvmCeT@xZ6D#D-#QDD1@J_IIMr z9d>Wx)7ndjy;LTh$@cbIVVcYk+L?YkEIGoor2mrkx_Gk3iQAD(GL^QS>;Q$6{p;h= zOf+IOU(wW5UP$F0Z6}p-HgF0sliEPNDW^YbN3#9>8(78FQt84X(bkpD9nsdcYg@Ua zSUj3)33XWE_3O$0X6NFiu|#jucHQ^|ZB`&(_bD3hT_ov8D|rL=vV2X;$~L=g)iRaJ z6ui)n!ERe&%&l0qh9SQGCk zy?Xib8``?;u9i?|n`BN4>Cpc+4O^7w4F+9V(Xts@Pa3#b;bZc*DqUPG{RtV}GRa(( zcvdOqvKd{n(i{3SP7l*eO4B~nVhK)1uO};!%tS3-;zb!}ooVr#W%XoZ{QFQWLYB1p zoOB;qkqrs9r)egoId?@<=~yyR)UcVCipCvLFtzpZ3|T5MZDpbZTvw}NrIIS=ZAJUc zmh6kLE?Qbc?-{LuIvaNSV`1(!$+ol&PH~gPFGoLb_(H(^loh#$bExDqjV`zkf#RNS z*h&_4p$qwuyD#){ZvqW4&t34n1I9nc73t%C1$r?A4fX0TWBerFebGPi1EBIdl9VZ$ zkSFZZD#ke~7yQS44RozBEca>-;RSu%2yQYs`p3Nv6!`}hQ$^<5U2fxs-0h){`yZ(M z{v!qcLk{!~=1HyqZQK(<1ES1D{FlDH2*O}+YZZxO!=c?$>_ihGPPqkKhO=mY$?^#eu^v|EH+1^HOe5$3t|2aP`HJHm7o zxCiJ_uDJE_yBjF_fxLJB?lAh8fBfzUYC+LZZ~r?z`jviUL!Fd|L*L&sB27QTjYWaaa&h=!3q;9JhYqoNGEjKQI72w2yH`F!YaeW}Q*=%A4Up zolbB~u%-f{E714i(05bpJ-3OV>3@fDK=QN8`GG%p|K(Z^-`)CSM&LRR6a7MVb_M-< NlK}oF1P%4-{~JIDA)NpK diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake b/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake deleted file mode 100644 index c1e6338b906..00000000000 --- a/tests/vision_preprocess/CMakeFiles/3.10.2/CMakeSystem.cmake +++ /dev/null @@ -1,15 +0,0 @@ -set(CMAKE_HOST_SYSTEM "Linux-4.9.253-tegra") -set(CMAKE_HOST_SYSTEM_NAME "Linux") -set(CMAKE_HOST_SYSTEM_VERSION "4.9.253-tegra") -set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64") - - - -set(CMAKE_SYSTEM "Linux-4.9.253-tegra") -set(CMAKE_SYSTEM_NAME "Linux") -set(CMAKE_SYSTEM_VERSION "4.9.253-tegra") -set(CMAKE_SYSTEM_PROCESSOR "aarch64") - -set(CMAKE_CROSSCOMPILING "FALSE") - -set(CMAKE_SYSTEM_LOADED 1) diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c deleted file mode 100644 index 722faa803f6..00000000000 --- a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c +++ /dev/null @@ -1,598 +0,0 @@ -#ifdef __cplusplus -# error "A C++ compiler has been selected for C." -#endif - -#if defined(__18CXX) -# define ID_VOID_MAIN -#endif -#if defined(__CLASSIC_C__) -/* cv-qualifiers did not exist in K&R C */ -# define const -# define volatile -#endif - - -/* Version number components: V=Version, R=Revision, P=Patch - Version date components: YYYY=Year, MM=Month, DD=Day */ - -#if defined(__INTEL_COMPILER) || defined(__ICC) -# define COMPILER_ID "Intel" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif - /* __INTEL_COMPILER = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) -# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) -# if defined(__INTEL_COMPILER_UPDATE) -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) -# else -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) -# endif -# if defined(__INTEL_COMPILER_BUILD_DATE) - /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ -# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) -# endif -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif - -#elif defined(__PATHCC__) -# define COMPILER_ID "PathScale" -# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) -# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) -# if defined(__PATHCC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) -# endif - -#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) -# define COMPILER_ID "Embarcadero" -# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) -# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) -# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) - -#elif defined(__BORLANDC__) -# define COMPILER_ID "Borland" - /* __BORLANDC__ = 0xVRR */ -# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) -# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) - -#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 -# define COMPILER_ID "Watcom" - /* __WATCOMC__ = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__WATCOMC__) -# define COMPILER_ID "OpenWatcom" - /* __WATCOMC__ = VVRP + 1100 */ -# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__SUNPRO_C) -# define COMPILER_ID "SunPro" -# if __SUNPRO_C >= 0x5100 - /* __SUNPRO_C = 0xVRRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) -# else - /* __SUNPRO_CC = 0xVRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) -# endif - -#elif defined(__HP_cc) -# define COMPILER_ID "HP" - /* __HP_cc = VVRRPP */ -# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) -# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) -# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) - -#elif defined(__DECC) -# define COMPILER_ID "Compaq" - /* __DECC_VER = VVRRTPPPP */ -# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) -# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) -# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) - -#elif defined(__IBMC__) && defined(__COMPILER_VER__) -# define COMPILER_ID "zOS" - /* __IBMC__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) - -#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 -# define COMPILER_ID "XL" - /* __IBMC__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) - -#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 -# define COMPILER_ID "VisualAge" - /* __IBMC__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) - -#elif defined(__PGI) -# define COMPILER_ID "PGI" -# define COMPILER_VERSION_MAJOR DEC(__PGIC__) -# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) -# if defined(__PGIC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) -# endif - -#elif defined(_CRAYC) -# define COMPILER_ID "Cray" -# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) -# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) - -#elif defined(__TI_COMPILER_VERSION__) -# define COMPILER_ID "TI" - /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ -# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) -# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) -# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) - -#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) -# define COMPILER_ID "Fujitsu" - -#elif defined(__TINYC__) -# define COMPILER_ID "TinyCC" - -#elif defined(__BCC__) -# define COMPILER_ID "Bruce" - -#elif defined(__SCO_VERSION__) -# define COMPILER_ID "SCO" - -#elif defined(__clang__) && defined(__apple_build_version__) -# define COMPILER_ID "AppleClang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif -# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) - -#elif defined(__clang__) -# define COMPILER_ID "Clang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif - -#elif defined(__GNUC__) -# define COMPILER_ID "GNU" -# define COMPILER_VERSION_MAJOR DEC(__GNUC__) -# if defined(__GNUC_MINOR__) -# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) -# endif -# if defined(__GNUC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -# endif - -#elif defined(_MSC_VER) -# define COMPILER_ID "MSVC" - /* _MSC_VER = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) -# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) -# if defined(_MSC_FULL_VER) -# if _MSC_VER >= 1400 - /* _MSC_FULL_VER = VVRRPPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) -# else - /* _MSC_FULL_VER = VVRRPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) -# endif -# endif -# if defined(_MSC_BUILD) -# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) -# endif - -#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) -# define COMPILER_ID "ADSP" -#if defined(__VISUALDSPVERSION__) - /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ -# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) -# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) -#endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# define COMPILER_ID "IAR" -# if defined(__VER__) -# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) -# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) -# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) -# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) -# endif - -#elif defined(__ARMCC_VERSION) -# define COMPILER_ID "ARMCC" -#if __ARMCC_VERSION >= 1000000 - /* __ARMCC_VERSION = VRRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#else - /* __ARMCC_VERSION = VRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#endif - - -#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) -# define COMPILER_ID "SDCC" -# if defined(__SDCC_VERSION_MAJOR) -# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) -# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) -# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) -# else - /* SDCC = VRP */ -# define COMPILER_VERSION_MAJOR DEC(SDCC/100) -# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) -# define COMPILER_VERSION_PATCH DEC(SDCC % 10) -# endif - -#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) -# define COMPILER_ID "MIPSpro" -# if defined(_SGI_COMPILER_VERSION) - /* _SGI_COMPILER_VERSION = VRP */ -# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) -# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) -# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) -# else - /* _COMPILER_VERSION = VRP */ -# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) -# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) -# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) -# endif - - -/* These compilers are either not known or too old to define an - identification macro. Try to identify the platform and guess that - it is the native compiler. */ -#elif defined(__sgi) -# define COMPILER_ID "MIPSpro" - -#elif defined(__hpux) || defined(__hpua) -# define COMPILER_ID "HP" - -#else /* unknown compiler */ -# define COMPILER_ID "" -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; -#ifdef SIMULATE_ID -char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; -#endif - -#ifdef __QNXNTO__ -char const* qnxnto = "INFO" ":" "qnxnto[]"; -#endif - -#if defined(__CRAYXE) || defined(__CRAYXC) -char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; -#endif - -#define STRINGIFY_HELPER(X) #X -#define STRINGIFY(X) STRINGIFY_HELPER(X) - -/* Identify known platforms by name. */ -#if defined(__linux) || defined(__linux__) || defined(linux) -# define PLATFORM_ID "Linux" - -#elif defined(__CYGWIN__) -# define PLATFORM_ID "Cygwin" - -#elif defined(__MINGW32__) -# define PLATFORM_ID "MinGW" - -#elif defined(__APPLE__) -# define PLATFORM_ID "Darwin" - -#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -# define PLATFORM_ID "Windows" - -#elif defined(__FreeBSD__) || defined(__FreeBSD) -# define PLATFORM_ID "FreeBSD" - -#elif defined(__NetBSD__) || defined(__NetBSD) -# define PLATFORM_ID "NetBSD" - -#elif defined(__OpenBSD__) || defined(__OPENBSD) -# define PLATFORM_ID "OpenBSD" - -#elif defined(__sun) || defined(sun) -# define PLATFORM_ID "SunOS" - -#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) -# define PLATFORM_ID "AIX" - -#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) -# define PLATFORM_ID "IRIX" - -#elif defined(__hpux) || defined(__hpux__) -# define PLATFORM_ID "HP-UX" - -#elif defined(__HAIKU__) -# define PLATFORM_ID "Haiku" - -#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) -# define PLATFORM_ID "BeOS" - -#elif defined(__QNX__) || defined(__QNXNTO__) -# define PLATFORM_ID "QNX" - -#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) -# define PLATFORM_ID "Tru64" - -#elif defined(__riscos) || defined(__riscos__) -# define PLATFORM_ID "RISCos" - -#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) -# define PLATFORM_ID "SINIX" - -#elif defined(__UNIX_SV__) -# define PLATFORM_ID "UNIX_SV" - -#elif defined(__bsdos__) -# define PLATFORM_ID "BSDOS" - -#elif defined(_MPRAS) || defined(MPRAS) -# define PLATFORM_ID "MP-RAS" - -#elif defined(__osf) || defined(__osf__) -# define PLATFORM_ID "OSF1" - -#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) -# define PLATFORM_ID "SCO_SV" - -#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) -# define PLATFORM_ID "ULTRIX" - -#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) -# define PLATFORM_ID "Xenix" - -#elif defined(__WATCOMC__) -# if defined(__LINUX__) -# define PLATFORM_ID "Linux" - -# elif defined(__DOS__) -# define PLATFORM_ID "DOS" - -# elif defined(__OS2__) -# define PLATFORM_ID "OS2" - -# elif defined(__WINDOWS__) -# define PLATFORM_ID "Windows3x" - -# else /* unknown platform */ -# define PLATFORM_ID -# endif - -#else /* unknown platform */ -# define PLATFORM_ID - -#endif - -/* For windows compilers MSVC and Intel we can determine - the architecture of the compiler being used. This is because - the compilers do not have flags that can change the architecture, - but rather depend on which compiler is being used -*/ -#if defined(_WIN32) && defined(_MSC_VER) -# if defined(_M_IA64) -# define ARCHITECTURE_ID "IA64" - -# elif defined(_M_X64) || defined(_M_AMD64) -# define ARCHITECTURE_ID "x64" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# elif defined(_M_ARM64) -# define ARCHITECTURE_ID "ARM64" - -# elif defined(_M_ARM) -# if _M_ARM == 4 -# define ARCHITECTURE_ID "ARMV4I" -# elif _M_ARM == 5 -# define ARCHITECTURE_ID "ARMV5I" -# else -# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) -# endif - -# elif defined(_M_MIPS) -# define ARCHITECTURE_ID "MIPS" - -# elif defined(_M_SH) -# define ARCHITECTURE_ID "SHx" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__WATCOMC__) -# if defined(_M_I86) -# define ARCHITECTURE_ID "I86" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# if defined(__ICCARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__ICCAVR__) -# define ARCHITECTURE_ID "AVR" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif -#else -# define ARCHITECTURE_ID -#endif - -/* Convert integer to decimal digit literals. */ -#define DEC(n) \ - ('0' + (((n) / 10000000)%10)), \ - ('0' + (((n) / 1000000)%10)), \ - ('0' + (((n) / 100000)%10)), \ - ('0' + (((n) / 10000)%10)), \ - ('0' + (((n) / 1000)%10)), \ - ('0' + (((n) / 100)%10)), \ - ('0' + (((n) / 10)%10)), \ - ('0' + ((n) % 10)) - -/* Convert integer to hex digit literals. */ -#define HEX(n) \ - ('0' + ((n)>>28 & 0xF)), \ - ('0' + ((n)>>24 & 0xF)), \ - ('0' + ((n)>>20 & 0xF)), \ - ('0' + ((n)>>16 & 0xF)), \ - ('0' + ((n)>>12 & 0xF)), \ - ('0' + ((n)>>8 & 0xF)), \ - ('0' + ((n)>>4 & 0xF)), \ - ('0' + ((n) & 0xF)) - -/* Construct a string literal encoding the version number components. */ -#ifdef COMPILER_VERSION_MAJOR -char const info_version[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', - COMPILER_VERSION_MAJOR, -# ifdef COMPILER_VERSION_MINOR - '.', COMPILER_VERSION_MINOR, -# ifdef COMPILER_VERSION_PATCH - '.', COMPILER_VERSION_PATCH, -# ifdef COMPILER_VERSION_TWEAK - '.', COMPILER_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct a string literal encoding the internal version number. */ -#ifdef COMPILER_VERSION_INTERNAL -char const info_version_internal[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', - 'i','n','t','e','r','n','a','l','[', - COMPILER_VERSION_INTERNAL,']','\0'}; -#endif - -/* Construct a string literal encoding the version number components. */ -#ifdef SIMULATE_VERSION_MAJOR -char const info_simulate_version[] = { - 'I', 'N', 'F', 'O', ':', - 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', - SIMULATE_VERSION_MAJOR, -# ifdef SIMULATE_VERSION_MINOR - '.', SIMULATE_VERSION_MINOR, -# ifdef SIMULATE_VERSION_PATCH - '.', SIMULATE_VERSION_PATCH, -# ifdef SIMULATE_VERSION_TWEAK - '.', SIMULATE_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; -char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; - - - - -#if !defined(__STDC__) -# if defined(_MSC_VER) && !defined(__clang__) -# define C_DIALECT "90" -# else -# define C_DIALECT -# endif -#elif __STDC_VERSION__ >= 201000L -# define C_DIALECT "11" -#elif __STDC_VERSION__ >= 199901L -# define C_DIALECT "99" -#else -# define C_DIALECT "90" -#endif -const char* info_language_dialect_default = - "INFO" ":" "dialect_default[" C_DIALECT "]"; - -/*--------------------------------------------------------------------------*/ - -#ifdef ID_VOID_MAIN -void main() {} -#else -# if defined(__CLASSIC_C__) -int main(argc, argv) int argc; char *argv[]; -# else -int main(int argc, char* argv[]) -# endif -{ - int require = 0; - require += info_compiler[argc]; - require += info_platform[argc]; - require += info_arch[argc]; -#ifdef COMPILER_VERSION_MAJOR - require += info_version[argc]; -#endif -#ifdef COMPILER_VERSION_INTERNAL - require += info_version_internal[argc]; -#endif -#ifdef SIMULATE_ID - require += info_simulate[argc]; -#endif -#ifdef SIMULATE_VERSION_MAJOR - require += info_simulate_version[argc]; -#endif -#if defined(__CRAYXE) || defined(__CRAYXC) - require += info_cray[argc]; -#endif - require += info_language_dialect_default[argc]; - (void)argv; - return require; -} -#endif diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out deleted file mode 100755 index 9f5f394993853f4108d2a4d2f0f877f9ec47ee44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9248 zcmeHNYiv}<6+ZR?At4SX;6U^8@~A|kvbNLkRGX}AjOzqL3nog6+Pl}gYkS2$$nM?N zfYiExRH{gkEu1E8f7DH@3Q$y`LX;pysYCmtYWheMl~B|shL)CyNO2UP-WJ%NnK|G3 z-n;97g!+#$chAgs9&_e-XU^qYZR^)nS5*;GfLI0lOLskW)-Ua{w=Yni7KsFGFb%V(XKbiDzt@mnkW zO{}MEOx3=A@dFh7*^o?hHzZ@rl8JP_f0=D(qkStL3gt4PCgZ=duVmXdY|%BTal1w5 z41XTy6{h%S{_?k>6;JJZ@zbaGyjlDDqn&%7nZHEo;t{p$CIOm7qZI}_Ky^g5Xn`^J z1t!4?mS-`xr~-aBV|P}-pJXgp0skyxmE`-TkSFffsOrZRWLeRE+v-WA?POwSoQsNO zO?B|BQ$J4Ev9+WcHLqH~ESO$Ag<~{HUnWVp&ZN>rk zh%A6}K0GM+xDQ_|_Gij?!Vb!{K73T{Eb!sAvhIUEe5v3|efTQD-xPnUxV>r~Bb{{N zSeuGB=EB|Ubi##;i`vwP;MHuzZRdascTe%dF5GSZ6&H^6rz*Iz>z4J@LYSLndO62e?rNtHu&Wi61}nT za_jzumz$sFXaA2`emCp3Ty8J4a6T-$S9ZOo`|aadRM^jTMUID8hpT8g+Z&`0+6zpN zYTMJog_qgiQ~U&JU{mBct^RmcxNv3HaoyKr?0az!{b_7A9XlPMLb0BXX}vHFRZ+Mw zHhbV$kmzZCYp!Pg17r2!W4t5I8iQQqI^_ngEl2EoRb=syuCp()s$zX3*S4d4&`XO}3|)G!`rvSN-5V42RJg=#`*)z~(D2pP{S$%e zLto+k8m^+FN4S6I^8EP8&fLVAzyh8l^AC*$?s_0MgN7pX$cZ0S&pp4eSnN8&eR|=Y z=7X2sYdJVkulo1bx_^xiW{$h(ca}N*e#5;9XAyPYRSD;~ zdrgt=aVA~7TFj_iL=K8LlRP1ZBAi7Agnygp@w-(gbHuFu9BH{?}S~*0)?=MLQ$#Je!|NWv5x&IbT`&e8+CLS=J#+*Oox-D_@NwSui{ZRIDsnhaCa(ip*n&8qc-TAbWZ{XLX zoy`PShWI_Y>~nbyHhr^cRjBcy&luESji($?HxZdnZbpDX+?Tz0fIeSQep+eXdgZ4R z=BpQ@bsz0N-@6PfVifel(ZkAeH3j5!SU=o_7JccX{!q!@DuBuMZc4EFVzz4yf_nxq3?d8of;bS`Tsu4EC2oYdBI10@}}SF2>XMnmFTL- z<9!8u9uHU*O^z>Si?LHauNG_ha{N)om7jPo!oIOnK5rk_cFJ)hKj{zbN6sUiQqx^D{mkjH)uJ5!CLskeOn^4*I2xg1yaDz)ncmM32C{&jss z+xe*IU)QgSynlcAqsWiSdt6yn$+W9{A3MwPck(!n$h<`iUh9Pm}u?`tv1?*Ae1k(%tkcZKsAX-v*@OpL2UvfBO69DUnC~AAY_q z_A&oq|1{&3?7T0yf1kf7_OV|6Di!=k>?2MG`wRH|rTWKjX9?p$IOn3j*Y?Zz;fIwS z?zfX-81c@>G+sxD8=_un$mg;;INlqLHb`7tqU62le8b9yP)PojGdD-GPE#mDOJcO7 z|As8Fp#&R>+R3E#jkvwd>Pg?Iy|l8Ib#hL=rzaGp$uP6!q^zh4H0L&so3reEKdCTFGVa7n(6N-mVy%-ZWVHFvgIZ5!5F9QpR@$H-dyN7>fZx7mr1l>%%Ds)B^ z%I!!wb~jTeYiJ*Gi8O!d*iNBz#)*fTTRN6GcCVCpy@k5-3I0lzh*3zD`s`dEg zY|l_9YdEM>i%G#^UN)Yzm4f89CmjmuUI{tze$K0D%e;&pyHLE(OjILd=BSZDo=w@Q zM3gJdu(r|Sj-(KGaEd3sYfHMJth&eZR?TN2NyrGrJs)f(>rRWgpzh94!@UYL=oaQY z-Y0T5ESayU(5IA)UlPf za)LhM5RVHEecby%cZ)uVzyH3*3>6!IKJJI0I0L|c$boKSeHCj!8TUxgpj52q8mzHP)HU5A<>VACv$hHq-iqH z1FY^<3Pb%kM>dMSUtXF6b^1H!6y~o7`hFbxZi=~6GRm2V)Q@?j;w3HWaDF;OoB=Wxa+qFE`~ct3!kP{02F0BB$X?EnA( diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp deleted file mode 100644 index 2d662985889..00000000000 --- a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +++ /dev/null @@ -1,576 +0,0 @@ -/* This source file must have a .cpp extension so that all C++ compilers - recognize the extension without flags. Borland does not know .cxx for - example. */ -#ifndef __cplusplus -# error "A C compiler has been selected for C++." -#endif - - -/* Version number components: V=Version, R=Revision, P=Patch - Version date components: YYYY=Year, MM=Month, DD=Day */ - -#if defined(__COMO__) -# define COMPILER_ID "Comeau" - /* __COMO_VERSION__ = VRR */ -# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) -# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) - -#elif defined(__INTEL_COMPILER) || defined(__ICC) -# define COMPILER_ID "Intel" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif - /* __INTEL_COMPILER = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) -# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) -# if defined(__INTEL_COMPILER_UPDATE) -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) -# else -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) -# endif -# if defined(__INTEL_COMPILER_BUILD_DATE) - /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ -# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) -# endif -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif - -#elif defined(__PATHCC__) -# define COMPILER_ID "PathScale" -# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) -# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) -# if defined(__PATHCC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) -# endif - -#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) -# define COMPILER_ID "Embarcadero" -# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) -# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) -# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) - -#elif defined(__BORLANDC__) -# define COMPILER_ID "Borland" - /* __BORLANDC__ = 0xVRR */ -# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) -# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) - -#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 -# define COMPILER_ID "Watcom" - /* __WATCOMC__ = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__WATCOMC__) -# define COMPILER_ID "OpenWatcom" - /* __WATCOMC__ = VVRP + 1100 */ -# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__SUNPRO_CC) -# define COMPILER_ID "SunPro" -# if __SUNPRO_CC >= 0x5100 - /* __SUNPRO_CC = 0xVRRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) -# else - /* __SUNPRO_CC = 0xVRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) -# endif - -#elif defined(__HP_aCC) -# define COMPILER_ID "HP" - /* __HP_aCC = VVRRPP */ -# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) -# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) -# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) - -#elif defined(__DECCXX) -# define COMPILER_ID "Compaq" - /* __DECCXX_VER = VVRRTPPPP */ -# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) -# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) -# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) - -#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) -# define COMPILER_ID "zOS" - /* __IBMCPP__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) - -#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 -# define COMPILER_ID "XL" - /* __IBMCPP__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) - -#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 -# define COMPILER_ID "VisualAge" - /* __IBMCPP__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) - -#elif defined(__PGI) -# define COMPILER_ID "PGI" -# define COMPILER_VERSION_MAJOR DEC(__PGIC__) -# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) -# if defined(__PGIC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) -# endif - -#elif defined(_CRAYC) -# define COMPILER_ID "Cray" -# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) -# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) - -#elif defined(__TI_COMPILER_VERSION__) -# define COMPILER_ID "TI" - /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ -# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) -# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) -# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) - -#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) -# define COMPILER_ID "Fujitsu" - -#elif defined(__SCO_VERSION__) -# define COMPILER_ID "SCO" - -#elif defined(__clang__) && defined(__apple_build_version__) -# define COMPILER_ID "AppleClang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif -# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) - -#elif defined(__clang__) -# define COMPILER_ID "Clang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif - -#elif defined(__GNUC__) || defined(__GNUG__) -# define COMPILER_ID "GNU" -# if defined(__GNUC__) -# define COMPILER_VERSION_MAJOR DEC(__GNUC__) -# else -# define COMPILER_VERSION_MAJOR DEC(__GNUG__) -# endif -# if defined(__GNUC_MINOR__) -# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) -# endif -# if defined(__GNUC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -# endif - -#elif defined(_MSC_VER) -# define COMPILER_ID "MSVC" - /* _MSC_VER = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) -# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) -# if defined(_MSC_FULL_VER) -# if _MSC_VER >= 1400 - /* _MSC_FULL_VER = VVRRPPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) -# else - /* _MSC_FULL_VER = VVRRPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) -# endif -# endif -# if defined(_MSC_BUILD) -# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) -# endif - -#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) -# define COMPILER_ID "ADSP" -#if defined(__VISUALDSPVERSION__) - /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ -# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) -# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) -#endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# define COMPILER_ID "IAR" -# if defined(__VER__) -# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) -# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) -# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) -# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) -# endif - -#elif defined(__ARMCC_VERSION) -# define COMPILER_ID "ARMCC" -#if __ARMCC_VERSION >= 1000000 - /* __ARMCC_VERSION = VRRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#else - /* __ARMCC_VERSION = VRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#endif - - -#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) -# define COMPILER_ID "MIPSpro" -# if defined(_SGI_COMPILER_VERSION) - /* _SGI_COMPILER_VERSION = VRP */ -# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) -# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) -# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) -# else - /* _COMPILER_VERSION = VRP */ -# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) -# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) -# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) -# endif - - -/* These compilers are either not known or too old to define an - identification macro. Try to identify the platform and guess that - it is the native compiler. */ -#elif defined(__sgi) -# define COMPILER_ID "MIPSpro" - -#elif defined(__hpux) || defined(__hpua) -# define COMPILER_ID "HP" - -#else /* unknown compiler */ -# define COMPILER_ID "" -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; -#ifdef SIMULATE_ID -char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; -#endif - -#ifdef __QNXNTO__ -char const* qnxnto = "INFO" ":" "qnxnto[]"; -#endif - -#if defined(__CRAYXE) || defined(__CRAYXC) -char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; -#endif - -#define STRINGIFY_HELPER(X) #X -#define STRINGIFY(X) STRINGIFY_HELPER(X) - -/* Identify known platforms by name. */ -#if defined(__linux) || defined(__linux__) || defined(linux) -# define PLATFORM_ID "Linux" - -#elif defined(__CYGWIN__) -# define PLATFORM_ID "Cygwin" - -#elif defined(__MINGW32__) -# define PLATFORM_ID "MinGW" - -#elif defined(__APPLE__) -# define PLATFORM_ID "Darwin" - -#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -# define PLATFORM_ID "Windows" - -#elif defined(__FreeBSD__) || defined(__FreeBSD) -# define PLATFORM_ID "FreeBSD" - -#elif defined(__NetBSD__) || defined(__NetBSD) -# define PLATFORM_ID "NetBSD" - -#elif defined(__OpenBSD__) || defined(__OPENBSD) -# define PLATFORM_ID "OpenBSD" - -#elif defined(__sun) || defined(sun) -# define PLATFORM_ID "SunOS" - -#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) -# define PLATFORM_ID "AIX" - -#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) -# define PLATFORM_ID "IRIX" - -#elif defined(__hpux) || defined(__hpux__) -# define PLATFORM_ID "HP-UX" - -#elif defined(__HAIKU__) -# define PLATFORM_ID "Haiku" - -#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) -# define PLATFORM_ID "BeOS" - -#elif defined(__QNX__) || defined(__QNXNTO__) -# define PLATFORM_ID "QNX" - -#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) -# define PLATFORM_ID "Tru64" - -#elif defined(__riscos) || defined(__riscos__) -# define PLATFORM_ID "RISCos" - -#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) -# define PLATFORM_ID "SINIX" - -#elif defined(__UNIX_SV__) -# define PLATFORM_ID "UNIX_SV" - -#elif defined(__bsdos__) -# define PLATFORM_ID "BSDOS" - -#elif defined(_MPRAS) || defined(MPRAS) -# define PLATFORM_ID "MP-RAS" - -#elif defined(__osf) || defined(__osf__) -# define PLATFORM_ID "OSF1" - -#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) -# define PLATFORM_ID "SCO_SV" - -#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) -# define PLATFORM_ID "ULTRIX" - -#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) -# define PLATFORM_ID "Xenix" - -#elif defined(__WATCOMC__) -# if defined(__LINUX__) -# define PLATFORM_ID "Linux" - -# elif defined(__DOS__) -# define PLATFORM_ID "DOS" - -# elif defined(__OS2__) -# define PLATFORM_ID "OS2" - -# elif defined(__WINDOWS__) -# define PLATFORM_ID "Windows3x" - -# else /* unknown platform */ -# define PLATFORM_ID -# endif - -#else /* unknown platform */ -# define PLATFORM_ID - -#endif - -/* For windows compilers MSVC and Intel we can determine - the architecture of the compiler being used. This is because - the compilers do not have flags that can change the architecture, - but rather depend on which compiler is being used -*/ -#if defined(_WIN32) && defined(_MSC_VER) -# if defined(_M_IA64) -# define ARCHITECTURE_ID "IA64" - -# elif defined(_M_X64) || defined(_M_AMD64) -# define ARCHITECTURE_ID "x64" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# elif defined(_M_ARM64) -# define ARCHITECTURE_ID "ARM64" - -# elif defined(_M_ARM) -# if _M_ARM == 4 -# define ARCHITECTURE_ID "ARMV4I" -# elif _M_ARM == 5 -# define ARCHITECTURE_ID "ARMV5I" -# else -# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) -# endif - -# elif defined(_M_MIPS) -# define ARCHITECTURE_ID "MIPS" - -# elif defined(_M_SH) -# define ARCHITECTURE_ID "SHx" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__WATCOMC__) -# if defined(_M_I86) -# define ARCHITECTURE_ID "I86" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# if defined(__ICCARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__ICCAVR__) -# define ARCHITECTURE_ID "AVR" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif -#else -# define ARCHITECTURE_ID -#endif - -/* Convert integer to decimal digit literals. */ -#define DEC(n) \ - ('0' + (((n) / 10000000)%10)), \ - ('0' + (((n) / 1000000)%10)), \ - ('0' + (((n) / 100000)%10)), \ - ('0' + (((n) / 10000)%10)), \ - ('0' + (((n) / 1000)%10)), \ - ('0' + (((n) / 100)%10)), \ - ('0' + (((n) / 10)%10)), \ - ('0' + ((n) % 10)) - -/* Convert integer to hex digit literals. */ -#define HEX(n) \ - ('0' + ((n)>>28 & 0xF)), \ - ('0' + ((n)>>24 & 0xF)), \ - ('0' + ((n)>>20 & 0xF)), \ - ('0' + ((n)>>16 & 0xF)), \ - ('0' + ((n)>>12 & 0xF)), \ - ('0' + ((n)>>8 & 0xF)), \ - ('0' + ((n)>>4 & 0xF)), \ - ('0' + ((n) & 0xF)) - -/* Construct a string literal encoding the version number components. */ -#ifdef COMPILER_VERSION_MAJOR -char const info_version[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', - COMPILER_VERSION_MAJOR, -# ifdef COMPILER_VERSION_MINOR - '.', COMPILER_VERSION_MINOR, -# ifdef COMPILER_VERSION_PATCH - '.', COMPILER_VERSION_PATCH, -# ifdef COMPILER_VERSION_TWEAK - '.', COMPILER_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct a string literal encoding the internal version number. */ -#ifdef COMPILER_VERSION_INTERNAL -char const info_version_internal[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', - 'i','n','t','e','r','n','a','l','[', - COMPILER_VERSION_INTERNAL,']','\0'}; -#endif - -/* Construct a string literal encoding the version number components. */ -#ifdef SIMULATE_VERSION_MAJOR -char const info_simulate_version[] = { - 'I', 'N', 'F', 'O', ':', - 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', - SIMULATE_VERSION_MAJOR, -# ifdef SIMULATE_VERSION_MINOR - '.', SIMULATE_VERSION_MINOR, -# ifdef SIMULATE_VERSION_PATCH - '.', SIMULATE_VERSION_PATCH, -# ifdef SIMULATE_VERSION_TWEAK - '.', SIMULATE_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; -char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; - - - - -#if defined(_MSC_VER) && defined(_MSVC_LANG) -#define CXX_STD _MSVC_LANG -#else -#define CXX_STD __cplusplus -#endif - -const char* info_language_dialect_default = "INFO" ":" "dialect_default[" -#if CXX_STD > 201402L - "17" -#elif CXX_STD >= 201402L - "14" -#elif CXX_STD >= 201103L - "11" -#else - "98" -#endif -"]"; - -/*--------------------------------------------------------------------------*/ - -int main(int argc, char* argv[]) -{ - int require = 0; - require += info_compiler[argc]; - require += info_platform[argc]; -#ifdef COMPILER_VERSION_MAJOR - require += info_version[argc]; -#endif -#ifdef COMPILER_VERSION_INTERNAL - require += info_version_internal[argc]; -#endif -#ifdef SIMULATE_ID - require += info_simulate[argc]; -#endif -#ifdef SIMULATE_VERSION_MAJOR - require += info_simulate_version[argc]; -#endif -#if defined(__CRAYXE) || defined(__CRAYXC) - require += info_cray[argc]; -#endif - require += info_language_dialect_default[argc]; - (void)argv; - return require; -} diff --git a/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out b/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out deleted file mode 100755 index 01b304a7ac79f197536c0ce1cedb409902827b59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9424 zcmeHNZ*W{y6+fFTP$+4V0&S(xY$+cqLpKSQHlWBRX_`ip7TdspRbO6qH_6(~Zrpu~ zX*;78I%6FiO{NhlI$HEg+wlW4t z_jW@a89&Kw-=2Ga=g&R&@4NTBe7&=0OHC+5NMU-0q%?Y^i^P=i!p)jt5~EhSntyMi zRU~4I4CeAz(uwuyRHiVt-nMh`;f))j`E0bs zZMWDL*{*H(o0??2uQEB8Fa8TA{8w9V+;A*@qI1`GJ2#xa{hr=$K9he^bn&R#e@w!( zgl4Nuk}xeNsz(c4bN4WbRI$8-v0JL(H!`-Y3jPpdkt+D@j8&5#UO=9>U*pn`8_BZb zW41Mz%Gl}D-Xs@=W#t_^=U5|lDns@_Hs?@RPj`EVbw{*i6ItDTy;dTbOAe*-PBPcm z+mX&@l703-TGWR|vKdvkT+yn6XhaRk(ChH?Sja!_K4m{K@i0N$+lx&R(i z`~~$V#O;-NjP!~J$J!L$vmo^6bT|AfczUSi%OF3*(D za``8o@~d1v<0-$!^QXMV%uZ<9D0i7A7S10i(SQb&c{@DZr`s>f4#qiiifza{xh+= zVj;Sd?TypBT}7rRjqOFT;xp{;tNcW0|Bn7Mbl3Y!V#T?AXG|YYv+t!x>BZ?fI{ikN zils(6ZS-O^5u#Xex^DmJ2+?Ewmc5Jlw@o+3PV-Kgt0Z;-&)nq zk;~hWy4lwW>ASgozclSX|8nTqB-{TUKa=enCw_j*#)%8B*BqOyx#9WQMk-!lpZ^gK z9iP0^acDMNb9|8dVKPJ~PjJ6o$K(Ffz4_TU!z+30R~(-XFTX8+B~A3xy=Q-1bKN^@ zN~OLN+*jvcZaa42_4Z@4jnZ$=ntpSAaObRdzJ_#%>fW|x``z*E$Y?5^%tZJ^_XxerLv$>I7J@S?_EMrgJcDr0jQ%?XHJ;Q#$nDJ#%nJ@DadF|LOjoGDHz{~Fcjccn>kUX~>Ln4}wAQvSsm=^)M{%IQ~% z`wY$~D-=JhjsV}PhavcVpLUQQ%gXhyR(;6*tK_zi#SO&Uv1#u*wO5+w8_gLlFH?R| z%V@Wn|DTh3?f8W#?x8q8FXRx;(Kt5;<#28;pOdviaSq10x2vP$?#R0P2MQUd(8RAr zJC}`Yit_t&{U-_rZ24MCYqWX8$6Yj7jjtT$+1;x1$;$}yJ016BKOQEhs{Eqzy!Fdp zL71<8{7S;S_TyI(#@mlCCd?B*el=k}`tfTB^VW|qbT7S@Fus2I+HxGmk1s8+dp}-B zQ<(4`Mwm|>h$DDlzPB{cC>D-~5#}2!_7M-v^4FF34?liA$49VJ&2z%M3t+v^qjF!W zyoU=vOe?5a?^}L(>?-r9)V7G;E6pQruG5gp`LosFmHp|;SN7XyS-zTm*g1*~(XE!g z!?cEK2{`sMSH5!GUA%G}fAE3zE}=z%dSU0}Vs%8xYaeK*mZk!B{>t*=e-M91@tJ_U z+i%MW`-WCamsB3_G2qwpfQ3Bci`nAZshn49jeI5k8OFs=yf0zjwNp87A24<*aaX=_ zz7<%$+PJ&&b%g!VU+;24yaD*PO}%wAt>c0?i924k6x@eh`wes;upWQ3fIqNV&|J==Zy=Q(xWh>*ipx~jqRlYT_ zU&Rf+ykZ|)$@ns=T<>3Az|O-)-czAwC)Iv1j`cgckKz(Ch?cLU3=EK^{ zh`pSXcM5}p(KyYAoh@g?ic8=*&q3!z)*4D@2kf+!aI(3)Wf#Us!ZhimlT1Wg?`&?a zE+ld9lx62~_8u#ladLZTFlUb>twdpDWDl!&N)}5xKGBX|dv~(q!3R4u9@L$P#z#lV z`g~8z9jVM<7I7d-rU%!Hb~L+_ZEo4o*4t@yZrf~eeB5s}LDuGnwzc(kclbFb8qW|1 zoUG2RYGLc<9b|R&Y;SMtv9@p7va_?#>T7H7=@hFbh9A!tO#3bquph|h=i~Lhj{&im zH|n2E*pAJ%MLwBH81Dn$3j7L|D7dCs&Hr7%O60TFu$@WpHv{v5!LQoAo%Ir_j8(`d z6J$CQQ8I7qq*GlkVsgxdZ{>E8`HW$Vr0vX5!5-oP_Q%p#jXz^xP~`hY)sGg&hJ@va zqWL`|jy=HC$+>hGxm1R~ii}b;lXa5Ow)XDzjyM&AhA`u4r;tC-HECby0FP+}Z4E zAkT*FkyM;(&9W`m2KOXIxrax1iFkLZ|2{8q1Kzs%jO8ZW&p;7ZP_~gpUg%nWw6x zKwnWgd42Jg?*`Q zZv~C0zW6V72iw1wG3it2<9-W@cnj)>KH7gk_1l?B!aW$Y-=OX{e2EbS_2nKVe&Kj9 zs}+IbUZrM?ugDAi7C&Bn+^a$RMaYv7j|ZJ(o>w2|6wpthW7G!xhsh@c`iRegq8`Wx z=kF2KM>SJg0qFOks5Dsr(SSbg{h*iYzh4CO5g!0;zD)g7%$H9WvNj~)+>gI62>OdM z=w$g{hrX9$?v;&l yreEtPy+2AkS@v4^gY_?L_|DmK>em4ER{~7b3&94?1Vjw$Mcugn2|=Yn{eJ_3Xcl<@ diff --git a/tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake b/tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake deleted file mode 100644 index 71059bf6a3e..00000000000 --- a/tests/vision_preprocess/CMakeFiles/CMakeDirectoryInformation.cmake +++ /dev/null @@ -1,16 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -# Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess") - -# Force unix paths in dependencies. -set(CMAKE_FORCE_UNIX_PATHS 1) - - -# The C and CXX include file regular expressions for this directory. -set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") -set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") -set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) -set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/tests/vision_preprocess/CMakeFiles/CMakeOutput.log b/tests/vision_preprocess/CMakeFiles/CMakeOutput.log deleted file mode 100644 index 356aca831b5..00000000000 --- a/tests/vision_preprocess/CMakeFiles/CMakeOutput.log +++ /dev/null @@ -1,629 +0,0 @@ -The system is: Linux - 4.9.253-tegra - aarch64 -Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. -Compiler: /usr/bin/cc -Build flags: -Id flags: - -The output was: -0 - - -Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" - -The C compiler identification is GNU, found in "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdC/a.out" - -Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. -Compiler: /usr/bin/c++ -Build flags: -Id flags: - -The output was: -0 - - -Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" - -The CXX compiler identification is GNU, found in "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/3.10.2/CompilerIdCXX/a.out" - -Determining if the C compiler works passed with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_e36c0/fast" -/usr/bin/make -f CMakeFiles/cmTC_e36c0.dir/build.make CMakeFiles/cmTC_e36c0.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_e36c0.dir/testCCompiler.c.o -/usr/bin/cc -o CMakeFiles/cmTC_e36c0.dir/testCCompiler.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp/testCCompiler.c -Linking C executable cmTC_e36c0 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e36c0.dir/link.txt --verbose=1 -/usr/bin/cc -rdynamic CMakeFiles/cmTC_e36c0.dir/testCCompiler.c.o -o cmTC_e36c0 -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - -Detecting C compiler ABI info compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_121c2/fast" -/usr/bin/make -f CMakeFiles/cmTC_121c2.dir/build.make CMakeFiles/cmTC_121c2.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -/usr/bin/cc -o CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c -Linking C executable cmTC_121c2 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_121c2.dir/link.txt --verbose=1 -/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -o cmTC_121c2 -Using built-in specs. -COLLECT_GCC=/usr/bin/cc -COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -Target: aarch64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu -Thread model: posix -gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) -COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/ -LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/ -COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_121c2' '-mlittle-endian' '-mabi=lp64' - /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccQ0PYWs.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_121c2 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o -COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_121c2' '-mlittle-endian' '-mabi=lp64' -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - -Parsed C implicit link information from above output: - link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] - ignore line: [Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp] - ignore line: [] - ignore line: [Run Build Command:"/usr/bin/make" "cmTC_121c2/fast"] - ignore line: [/usr/bin/make -f CMakeFiles/cmTC_121c2.dir/build.make CMakeFiles/cmTC_121c2.dir/build] - ignore line: [make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp'] - ignore line: [Building C object CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o] - ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c] - ignore line: [Linking C executable cmTC_121c2] - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_121c2.dir/link.txt --verbose=1] - ignore line: [/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -o cmTC_121c2 ] - ignore line: [Using built-in specs.] - ignore line: [COLLECT_GCC=/usr/bin/cc] - ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] - ignore line: [Target: aarch64-linux-gnu] - ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu] - ignore line: [Thread model: posix] - ignore line: [gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) ] - ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/] - ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_121c2' '-mlittle-endian' '-mabi=lp64'] - link line: [ /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccQ0PYWs.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_121c2 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] - arg [/usr/lib/gcc/aarch64-linux-gnu/7/collect2] ==> ignore - arg [-plugin] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so] ==> ignore - arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] ==> ignore - arg [-plugin-opt=-fresolution=/tmp/ccQ0PYWs.res] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [-plugin-opt=-pass-through=-lc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [--build-id] ==> ignore - arg [--eh-frame-hdr] ==> ignore - arg [--hash-style=gnu] ==> ignore - arg [--as-needed] ==> ignore - arg [-export-dynamic] ==> ignore - arg [-dynamic-linker] ==> ignore - arg [/lib/ld-linux-aarch64.so.1] ==> ignore - arg [-X] ==> ignore - arg [-EL] ==> ignore - arg [-maarch64linux] ==> ignore - arg [--fix-cortex-a53-843419] ==> ignore - arg [-pie] ==> ignore - arg [-znow] ==> ignore - arg [-zrelro] ==> ignore - arg [-o] ==> ignore - arg [cmTC_121c2] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o] ==> ignore - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7] - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] - arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu] - arg [-L/lib/../lib] ==> dir [/lib/../lib] - arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu] - arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] - arg [CMakeFiles/cmTC_121c2.dir/CMakeCCompilerABI.c.o] ==> ignore - arg [-lgcc] ==> lib [gcc] - arg [--push-state] ==> ignore - arg [--as-needed] ==> ignore - arg [-lgcc_s] ==> lib [gcc_s] - arg [--pop-state] ==> ignore - arg [-lc] ==> lib [c] - arg [-lgcc] ==> lib [gcc] - arg [--push-state] ==> ignore - arg [--as-needed] ==> ignore - arg [-lgcc_s] ==> lib [gcc_s] - arg [--pop-state] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] ==> ignore - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7] ==> [/usr/lib/gcc/aarch64-linux-gnu/7] - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> [/usr/lib] - collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu] - collapse library dir [/lib/../lib] ==> [/lib] - collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] - collapse library dir [/usr/lib/../lib] ==> [/usr/lib] - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> [/usr/lib] - implicit libs: [gcc;gcc_s;c;gcc;gcc_s] - implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib] - implicit fwks: [] - - - - -Detecting C [-std=c11] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_3fec1/fast" -/usr/bin/make -f CMakeFiles/cmTC_3fec1.dir/build.make CMakeFiles/cmTC_3fec1.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_3fec1.dir/feature_tests.c.o -/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_3fec1.dir/feature_tests.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.c -Linking C executable cmTC_3fec1 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3fec1.dir/link.txt --verbose=1 -/usr/bin/cc -rdynamic CMakeFiles/cmTC_3fec1.dir/feature_tests.c.o -o cmTC_3fec1 -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: C_FEATURE:1c_function_prototypes - Feature record: C_FEATURE:1c_restrict - Feature record: C_FEATURE:1c_static_assert - Feature record: C_FEATURE:1c_variadic_macros - - -Detecting C [-std=c99] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_b343a/fast" -/usr/bin/make -f CMakeFiles/cmTC_b343a.dir/build.make CMakeFiles/cmTC_b343a.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_b343a.dir/feature_tests.c.o -/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_b343a.dir/feature_tests.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.c -Linking C executable cmTC_b343a -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b343a.dir/link.txt --verbose=1 -/usr/bin/cc -rdynamic CMakeFiles/cmTC_b343a.dir/feature_tests.c.o -o cmTC_b343a -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: C_FEATURE:1c_function_prototypes - Feature record: C_FEATURE:1c_restrict - Feature record: C_FEATURE:0c_static_assert - Feature record: C_FEATURE:1c_variadic_macros - - -Detecting C [-std=c90] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_f0c4b/fast" -/usr/bin/make -f CMakeFiles/cmTC_f0c4b.dir/build.make CMakeFiles/cmTC_f0c4b.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_f0c4b.dir/feature_tests.c.o -/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_f0c4b.dir/feature_tests.c.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.c -Linking C executable cmTC_f0c4b -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f0c4b.dir/link.txt --verbose=1 -/usr/bin/cc -rdynamic CMakeFiles/cmTC_f0c4b.dir/feature_tests.c.o -o cmTC_f0c4b -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: C_FEATURE:1c_function_prototypes - Feature record: C_FEATURE:0c_restrict - Feature record: C_FEATURE:0c_static_assert - Feature record: C_FEATURE:0c_variadic_macros -Determining if the CXX compiler works passed with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_46597/fast" -/usr/bin/make -f CMakeFiles/cmTC_46597.dir/build.make CMakeFiles/cmTC_46597.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_46597.dir/testCXXCompiler.cxx.o -/usr/bin/c++ -o CMakeFiles/cmTC_46597.dir/testCXXCompiler.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp/testCXXCompiler.cxx -Linking CXX executable cmTC_46597 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_46597.dir/link.txt --verbose=1 -/usr/bin/c++ -rdynamic CMakeFiles/cmTC_46597.dir/testCXXCompiler.cxx.o -o cmTC_46597 -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - -Detecting CXX compiler ABI info compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_cfd17/fast" -/usr/bin/make -f CMakeFiles/cmTC_cfd17.dir/build.make CMakeFiles/cmTC_cfd17.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -/usr/bin/c++ -o CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp -Linking CXX executable cmTC_cfd17 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cfd17.dir/link.txt --verbose=1 -/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_cfd17 -Using built-in specs. -COLLECT_GCC=/usr/bin/c++ -COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -Target: aarch64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu -Thread model: posix -gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) -COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/ -LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/ -COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cfd17' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' - /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUkiEJD.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_cfd17 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o -COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cfd17' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - -Parsed CXX implicit link information from above output: - link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] - ignore line: [Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp] - ignore line: [] - ignore line: [Run Build Command:"/usr/bin/make" "cmTC_cfd17/fast"] - ignore line: [/usr/bin/make -f CMakeFiles/cmTC_cfd17.dir/build.make CMakeFiles/cmTC_cfd17.dir/build] - ignore line: [make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp'] - ignore line: [Building CXX object CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o] - ignore line: [/usr/bin/c++ -o CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp] - ignore line: [Linking CXX executable cmTC_cfd17] - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cfd17.dir/link.txt --verbose=1] - ignore line: [/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_cfd17 ] - ignore line: [Using built-in specs.] - ignore line: [COLLECT_GCC=/usr/bin/c++] - ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] - ignore line: [Target: aarch64-linux-gnu] - ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu] - ignore line: [Thread model: posix] - ignore line: [gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) ] - ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/] - ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/7/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/7/../../../:/lib/:/usr/lib/] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cfd17' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'] - link line: [ /usr/lib/gcc/aarch64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUkiEJD.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_cfd17 /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] - arg [/usr/lib/gcc/aarch64-linux-gnu/7/collect2] ==> ignore - arg [-plugin] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/liblto_plugin.so] ==> ignore - arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper] ==> ignore - arg [-plugin-opt=-fresolution=/tmp/ccUkiEJD.res] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [-plugin-opt=-pass-through=-lc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [--build-id] ==> ignore - arg [--eh-frame-hdr] ==> ignore - arg [--hash-style=gnu] ==> ignore - arg [--as-needed] ==> ignore - arg [-export-dynamic] ==> ignore - arg [-dynamic-linker] ==> ignore - arg [/lib/ld-linux-aarch64.so.1] ==> ignore - arg [-X] ==> ignore - arg [-EL] ==> ignore - arg [-maarch64linux] ==> ignore - arg [--fix-cortex-a53-843419] ==> ignore - arg [-pie] ==> ignore - arg [-znow] ==> ignore - arg [-zrelro] ==> ignore - arg [-o] ==> ignore - arg [cmTC_cfd17] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o] ==> ignore - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7] - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] - arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu] - arg [-L/lib/../lib] ==> dir [/lib/../lib] - arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu] - arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] - arg [-L/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] - arg [CMakeFiles/cmTC_cfd17.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore - arg [-lstdc++] ==> lib [stdc++] - arg [-lm] ==> lib [m] - arg [-lgcc_s] ==> lib [gcc_s] - arg [-lgcc] ==> lib [gcc] - arg [-lc] ==> lib [c] - arg [-lgcc_s] ==> lib [gcc_s] - arg [-lgcc] ==> lib [gcc] - arg [/usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o] ==> ignore - arg [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o] ==> ignore - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7] ==> [/usr/lib/gcc/aarch64-linux-gnu/7] - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib] ==> [/usr/lib] - collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu] - collapse library dir [/lib/../lib] ==> [/lib] - collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu] - collapse library dir [/usr/lib/../lib] ==> [/usr/lib] - collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/7/../../..] ==> [/usr/lib] - implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc] - implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/7;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib] - implicit fwks: [] - - - - -Detecting CXX [-std=c++1z] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_21bc0/fast" -/usr/bin/make -f CMakeFiles/cmTC_21bc0.dir/build.make CMakeFiles/cmTC_21bc0.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_21bc0.dir/feature_tests.cxx.o -/usr/bin/c++ -std=c++1z -o CMakeFiles/cmTC_21bc0.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx -Linking CXX executable cmTC_21bc0 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_21bc0.dir/link.txt --verbose=1 -/usr/bin/c++ -rdynamic CMakeFiles/cmTC_21bc0.dir/feature_tests.cxx.o -o cmTC_21bc0 -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers - Feature record: CXX_FEATURE:1cxx_alias_templates - Feature record: CXX_FEATURE:1cxx_alignas - Feature record: CXX_FEATURE:1cxx_alignof - Feature record: CXX_FEATURE:1cxx_attributes - Feature record: CXX_FEATURE:1cxx_attribute_deprecated - Feature record: CXX_FEATURE:1cxx_auto_type - Feature record: CXX_FEATURE:1cxx_binary_literals - Feature record: CXX_FEATURE:1cxx_constexpr - Feature record: CXX_FEATURE:1cxx_contextual_conversions - Feature record: CXX_FEATURE:1cxx_decltype - Feature record: CXX_FEATURE:1cxx_decltype_auto - Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types - Feature record: CXX_FEATURE:1cxx_default_function_template_args - Feature record: CXX_FEATURE:1cxx_defaulted_functions - Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers - Feature record: CXX_FEATURE:1cxx_delegating_constructors - Feature record: CXX_FEATURE:1cxx_deleted_functions - Feature record: CXX_FEATURE:1cxx_digit_separators - Feature record: CXX_FEATURE:1cxx_enum_forward_declarations - Feature record: CXX_FEATURE:1cxx_explicit_conversions - Feature record: CXX_FEATURE:1cxx_extended_friend_declarations - Feature record: CXX_FEATURE:1cxx_extern_templates - Feature record: CXX_FEATURE:1cxx_final - Feature record: CXX_FEATURE:1cxx_func_identifier - Feature record: CXX_FEATURE:1cxx_generalized_initializers - Feature record: CXX_FEATURE:1cxx_generic_lambdas - Feature record: CXX_FEATURE:1cxx_inheriting_constructors - Feature record: CXX_FEATURE:1cxx_inline_namespaces - Feature record: CXX_FEATURE:1cxx_lambdas - Feature record: CXX_FEATURE:1cxx_lambda_init_captures - Feature record: CXX_FEATURE:1cxx_local_type_template_args - Feature record: CXX_FEATURE:1cxx_long_long_type - Feature record: CXX_FEATURE:1cxx_noexcept - Feature record: CXX_FEATURE:1cxx_nonstatic_member_init - Feature record: CXX_FEATURE:1cxx_nullptr - Feature record: CXX_FEATURE:1cxx_override - Feature record: CXX_FEATURE:1cxx_range_for - Feature record: CXX_FEATURE:1cxx_raw_string_literals - Feature record: CXX_FEATURE:1cxx_reference_qualified_functions - Feature record: CXX_FEATURE:1cxx_relaxed_constexpr - Feature record: CXX_FEATURE:1cxx_return_type_deduction - Feature record: CXX_FEATURE:1cxx_right_angle_brackets - Feature record: CXX_FEATURE:1cxx_rvalue_references - Feature record: CXX_FEATURE:1cxx_sizeof_member - Feature record: CXX_FEATURE:1cxx_static_assert - Feature record: CXX_FEATURE:1cxx_strong_enums - Feature record: CXX_FEATURE:1cxx_template_template_parameters - Feature record: CXX_FEATURE:1cxx_thread_local - Feature record: CXX_FEATURE:1cxx_trailing_return_types - Feature record: CXX_FEATURE:1cxx_unicode_literals - Feature record: CXX_FEATURE:1cxx_uniform_initialization - Feature record: CXX_FEATURE:1cxx_unrestricted_unions - Feature record: CXX_FEATURE:1cxx_user_literals - Feature record: CXX_FEATURE:1cxx_variable_templates - Feature record: CXX_FEATURE:1cxx_variadic_macros - Feature record: CXX_FEATURE:1cxx_variadic_templates - - -Detecting CXX [-std=c++14] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_4345c/fast" -/usr/bin/make -f CMakeFiles/cmTC_4345c.dir/build.make CMakeFiles/cmTC_4345c.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_4345c.dir/feature_tests.cxx.o -/usr/bin/c++ -std=c++14 -o CMakeFiles/cmTC_4345c.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx -Linking CXX executable cmTC_4345c -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4345c.dir/link.txt --verbose=1 -/usr/bin/c++ -rdynamic CMakeFiles/cmTC_4345c.dir/feature_tests.cxx.o -o cmTC_4345c -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers - Feature record: CXX_FEATURE:1cxx_alias_templates - Feature record: CXX_FEATURE:1cxx_alignas - Feature record: CXX_FEATURE:1cxx_alignof - Feature record: CXX_FEATURE:1cxx_attributes - Feature record: CXX_FEATURE:1cxx_attribute_deprecated - Feature record: CXX_FEATURE:1cxx_auto_type - Feature record: CXX_FEATURE:1cxx_binary_literals - Feature record: CXX_FEATURE:1cxx_constexpr - Feature record: CXX_FEATURE:1cxx_contextual_conversions - Feature record: CXX_FEATURE:1cxx_decltype - Feature record: CXX_FEATURE:1cxx_decltype_auto - Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types - Feature record: CXX_FEATURE:1cxx_default_function_template_args - Feature record: CXX_FEATURE:1cxx_defaulted_functions - Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers - Feature record: CXX_FEATURE:1cxx_delegating_constructors - Feature record: CXX_FEATURE:1cxx_deleted_functions - Feature record: CXX_FEATURE:1cxx_digit_separators - Feature record: CXX_FEATURE:1cxx_enum_forward_declarations - Feature record: CXX_FEATURE:1cxx_explicit_conversions - Feature record: CXX_FEATURE:1cxx_extended_friend_declarations - Feature record: CXX_FEATURE:1cxx_extern_templates - Feature record: CXX_FEATURE:1cxx_final - Feature record: CXX_FEATURE:1cxx_func_identifier - Feature record: CXX_FEATURE:1cxx_generalized_initializers - Feature record: CXX_FEATURE:1cxx_generic_lambdas - Feature record: CXX_FEATURE:1cxx_inheriting_constructors - Feature record: CXX_FEATURE:1cxx_inline_namespaces - Feature record: CXX_FEATURE:1cxx_lambdas - Feature record: CXX_FEATURE:1cxx_lambda_init_captures - Feature record: CXX_FEATURE:1cxx_local_type_template_args - Feature record: CXX_FEATURE:1cxx_long_long_type - Feature record: CXX_FEATURE:1cxx_noexcept - Feature record: CXX_FEATURE:1cxx_nonstatic_member_init - Feature record: CXX_FEATURE:1cxx_nullptr - Feature record: CXX_FEATURE:1cxx_override - Feature record: CXX_FEATURE:1cxx_range_for - Feature record: CXX_FEATURE:1cxx_raw_string_literals - Feature record: CXX_FEATURE:1cxx_reference_qualified_functions - Feature record: CXX_FEATURE:1cxx_relaxed_constexpr - Feature record: CXX_FEATURE:1cxx_return_type_deduction - Feature record: CXX_FEATURE:1cxx_right_angle_brackets - Feature record: CXX_FEATURE:1cxx_rvalue_references - Feature record: CXX_FEATURE:1cxx_sizeof_member - Feature record: CXX_FEATURE:1cxx_static_assert - Feature record: CXX_FEATURE:1cxx_strong_enums - Feature record: CXX_FEATURE:1cxx_template_template_parameters - Feature record: CXX_FEATURE:1cxx_thread_local - Feature record: CXX_FEATURE:1cxx_trailing_return_types - Feature record: CXX_FEATURE:1cxx_unicode_literals - Feature record: CXX_FEATURE:1cxx_uniform_initialization - Feature record: CXX_FEATURE:1cxx_unrestricted_unions - Feature record: CXX_FEATURE:1cxx_user_literals - Feature record: CXX_FEATURE:1cxx_variable_templates - Feature record: CXX_FEATURE:1cxx_variadic_macros - Feature record: CXX_FEATURE:1cxx_variadic_templates - - -Detecting CXX [-std=c++11] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_57480/fast" -/usr/bin/make -f CMakeFiles/cmTC_57480.dir/build.make CMakeFiles/cmTC_57480.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_57480.dir/feature_tests.cxx.o -/usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_57480.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx -Linking CXX executable cmTC_57480 -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_57480.dir/link.txt --verbose=1 -/usr/bin/c++ -rdynamic CMakeFiles/cmTC_57480.dir/feature_tests.cxx.o -o cmTC_57480 -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers - Feature record: CXX_FEATURE:1cxx_alias_templates - Feature record: CXX_FEATURE:1cxx_alignas - Feature record: CXX_FEATURE:1cxx_alignof - Feature record: CXX_FEATURE:1cxx_attributes - Feature record: CXX_FEATURE:0cxx_attribute_deprecated - Feature record: CXX_FEATURE:1cxx_auto_type - Feature record: CXX_FEATURE:0cxx_binary_literals - Feature record: CXX_FEATURE:1cxx_constexpr - Feature record: CXX_FEATURE:0cxx_contextual_conversions - Feature record: CXX_FEATURE:1cxx_decltype - Feature record: CXX_FEATURE:0cxx_decltype_auto - Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types - Feature record: CXX_FEATURE:1cxx_default_function_template_args - Feature record: CXX_FEATURE:1cxx_defaulted_functions - Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers - Feature record: CXX_FEATURE:1cxx_delegating_constructors - Feature record: CXX_FEATURE:1cxx_deleted_functions - Feature record: CXX_FEATURE:0cxx_digit_separators - Feature record: CXX_FEATURE:1cxx_enum_forward_declarations - Feature record: CXX_FEATURE:1cxx_explicit_conversions - Feature record: CXX_FEATURE:1cxx_extended_friend_declarations - Feature record: CXX_FEATURE:1cxx_extern_templates - Feature record: CXX_FEATURE:1cxx_final - Feature record: CXX_FEATURE:1cxx_func_identifier - Feature record: CXX_FEATURE:1cxx_generalized_initializers - Feature record: CXX_FEATURE:0cxx_generic_lambdas - Feature record: CXX_FEATURE:1cxx_inheriting_constructors - Feature record: CXX_FEATURE:1cxx_inline_namespaces - Feature record: CXX_FEATURE:1cxx_lambdas - Feature record: CXX_FEATURE:0cxx_lambda_init_captures - Feature record: CXX_FEATURE:1cxx_local_type_template_args - Feature record: CXX_FEATURE:1cxx_long_long_type - Feature record: CXX_FEATURE:1cxx_noexcept - Feature record: CXX_FEATURE:1cxx_nonstatic_member_init - Feature record: CXX_FEATURE:1cxx_nullptr - Feature record: CXX_FEATURE:1cxx_override - Feature record: CXX_FEATURE:1cxx_range_for - Feature record: CXX_FEATURE:1cxx_raw_string_literals - Feature record: CXX_FEATURE:1cxx_reference_qualified_functions - Feature record: CXX_FEATURE:0cxx_relaxed_constexpr - Feature record: CXX_FEATURE:0cxx_return_type_deduction - Feature record: CXX_FEATURE:1cxx_right_angle_brackets - Feature record: CXX_FEATURE:1cxx_rvalue_references - Feature record: CXX_FEATURE:1cxx_sizeof_member - Feature record: CXX_FEATURE:1cxx_static_assert - Feature record: CXX_FEATURE:1cxx_strong_enums - Feature record: CXX_FEATURE:1cxx_template_template_parameters - Feature record: CXX_FEATURE:1cxx_thread_local - Feature record: CXX_FEATURE:1cxx_trailing_return_types - Feature record: CXX_FEATURE:1cxx_unicode_literals - Feature record: CXX_FEATURE:1cxx_uniform_initialization - Feature record: CXX_FEATURE:1cxx_unrestricted_unions - Feature record: CXX_FEATURE:1cxx_user_literals - Feature record: CXX_FEATURE:0cxx_variable_templates - Feature record: CXX_FEATURE:1cxx_variadic_macros - Feature record: CXX_FEATURE:1cxx_variadic_templates - - -Detecting CXX [-std=c++98] compiler features compiled with the following output: -Change Dir: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp - -Run Build Command:"/usr/bin/make" "cmTC_0b7ff/fast" -/usr/bin/make -f CMakeFiles/cmTC_0b7ff.dir/build.make CMakeFiles/cmTC_0b7ff.dir/build -make[1]: Entering directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_0b7ff.dir/feature_tests.cxx.o -/usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_0b7ff.dir/feature_tests.cxx.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/feature_tests.cxx -Linking CXX executable cmTC_0b7ff -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0b7ff.dir/link.txt --verbose=1 -/usr/bin/c++ -rdynamic CMakeFiles/cmTC_0b7ff.dir/feature_tests.cxx.o -o cmTC_0b7ff -make[1]: Leaving directory '/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/CMakeTmp' - - - Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers - Feature record: CXX_FEATURE:0cxx_alias_templates - Feature record: CXX_FEATURE:0cxx_alignas - Feature record: CXX_FEATURE:0cxx_alignof - Feature record: CXX_FEATURE:0cxx_attributes - Feature record: CXX_FEATURE:0cxx_attribute_deprecated - Feature record: CXX_FEATURE:0cxx_auto_type - Feature record: CXX_FEATURE:0cxx_binary_literals - Feature record: CXX_FEATURE:0cxx_constexpr - Feature record: CXX_FEATURE:0cxx_contextual_conversions - Feature record: CXX_FEATURE:0cxx_decltype - Feature record: CXX_FEATURE:0cxx_decltype_auto - Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types - Feature record: CXX_FEATURE:0cxx_default_function_template_args - Feature record: CXX_FEATURE:0cxx_defaulted_functions - Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers - Feature record: CXX_FEATURE:0cxx_delegating_constructors - Feature record: CXX_FEATURE:0cxx_deleted_functions - Feature record: CXX_FEATURE:0cxx_digit_separators - Feature record: CXX_FEATURE:0cxx_enum_forward_declarations - Feature record: CXX_FEATURE:0cxx_explicit_conversions - Feature record: CXX_FEATURE:0cxx_extended_friend_declarations - Feature record: CXX_FEATURE:0cxx_extern_templates - Feature record: CXX_FEATURE:0cxx_final - Feature record: CXX_FEATURE:0cxx_func_identifier - Feature record: CXX_FEATURE:0cxx_generalized_initializers - Feature record: CXX_FEATURE:0cxx_generic_lambdas - Feature record: CXX_FEATURE:0cxx_inheriting_constructors - Feature record: CXX_FEATURE:0cxx_inline_namespaces - Feature record: CXX_FEATURE:0cxx_lambdas - Feature record: CXX_FEATURE:0cxx_lambda_init_captures - Feature record: CXX_FEATURE:0cxx_local_type_template_args - Feature record: CXX_FEATURE:0cxx_long_long_type - Feature record: CXX_FEATURE:0cxx_noexcept - Feature record: CXX_FEATURE:0cxx_nonstatic_member_init - Feature record: CXX_FEATURE:0cxx_nullptr - Feature record: CXX_FEATURE:0cxx_override - Feature record: CXX_FEATURE:0cxx_range_for - Feature record: CXX_FEATURE:0cxx_raw_string_literals - Feature record: CXX_FEATURE:0cxx_reference_qualified_functions - Feature record: CXX_FEATURE:0cxx_relaxed_constexpr - Feature record: CXX_FEATURE:0cxx_return_type_deduction - Feature record: CXX_FEATURE:0cxx_right_angle_brackets - Feature record: CXX_FEATURE:0cxx_rvalue_references - Feature record: CXX_FEATURE:0cxx_sizeof_member - Feature record: CXX_FEATURE:0cxx_static_assert - Feature record: CXX_FEATURE:0cxx_strong_enums - Feature record: CXX_FEATURE:1cxx_template_template_parameters - Feature record: CXX_FEATURE:0cxx_thread_local - Feature record: CXX_FEATURE:0cxx_trailing_return_types - Feature record: CXX_FEATURE:0cxx_unicode_literals - Feature record: CXX_FEATURE:0cxx_uniform_initialization - Feature record: CXX_FEATURE:0cxx_unrestricted_unions - Feature record: CXX_FEATURE:0cxx_user_literals - Feature record: CXX_FEATURE:0cxx_variable_templates - Feature record: CXX_FEATURE:0cxx_variadic_macros - Feature record: CXX_FEATURE:0cxx_variadic_templates diff --git a/tests/vision_preprocess/CMakeFiles/Makefile.cmake b/tests/vision_preprocess/CMakeFiles/Makefile.cmake deleted file mode 100644 index 093285365d7..00000000000 --- a/tests/vision_preprocess/CMakeFiles/Makefile.cmake +++ /dev/null @@ -1,118 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -# The generator used is: -set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") - -# The top level Makefile was generated from the following files: -set(CMAKE_MAKEFILE_DEPENDS - "CMakeCache.txt" - "../CMakeLists.txt" - "CMakeFiles/3.10.2/CMakeCCompiler.cmake" - "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" - "CMakeFiles/3.10.2/CMakeSystem.cmake" - "CMakeFiles/feature_tests.c" - "CMakeFiles/feature_tests.cxx" - "/usr/share/cmake-3.10/Modules/CMakeCCompiler.cmake.in" - "/usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c" - "/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake" - "/usr/share/cmake-3.10/Modules/CMakeCXXCompiler.cmake.in" - "/usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp" - "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake" - "/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake" - "/usr/share/cmake-3.10/Modules/CMakeCompilerIdDetection.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineCCompiler.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineCXXCompiler.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineCompileFeatures.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerABI.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerId.cmake" - "/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake" - "/usr/share/cmake-3.10/Modules/CMakeFindBinUtils.cmake" - "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake" - "/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake" - "/usr/share/cmake-3.10/Modules/CMakeParseImplicitLinkInfo.cmake" - "/usr/share/cmake-3.10/Modules/CMakeSystem.cmake.in" - "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake" - "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake" - "/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake" - "/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake" - "/usr/share/cmake-3.10/Modules/CMakeTestCompilerCommon.cmake" - "/usr/share/cmake-3.10/Modules/CMakeUnixFindMake.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/ADSP-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/ARMCC-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/AppleClang-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Borland-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Cray-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GHS-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-C-FeatureTests.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-FeatureTests.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU-FindBinUtils.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/HP-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/IAR-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Intel-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/MIPSpro-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/MSVC-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/PGI-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/PathScale-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/SCO-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/TI-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/Watcom-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/XL-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/zOS-C-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" - "/usr/share/cmake-3.10/Modules/Internal/FeatureTesting.cmake" - "/usr/share/cmake-3.10/Modules/Platform/Linux-Determine-CXX.cmake" - "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" - "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" - "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" - "/usr/share/cmake-3.10/Modules/Platform/Linux.cmake" - "/usr/share/cmake-3.10/Modules/Platform/UnixPaths.cmake" - ) - -# The corresponding makefile is: -set(CMAKE_MAKEFILE_OUTPUTS - "Makefile" - "CMakeFiles/cmake.check_cache" - ) - -# Byproducts of CMake generate step: -set(CMAKE_MAKEFILE_PRODUCTS - "CMakeFiles/3.10.2/CMakeSystem.cmake" - "CMakeFiles/3.10.2/CMakeCCompiler.cmake" - "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" - "CMakeFiles/3.10.2/CMakeCCompiler.cmake" - "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" - "CMakeFiles/CMakeDirectoryInformation.cmake" - ) - -# Dependency information for all targets: -set(CMAKE_DEPEND_INFO_FILES - "CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake" - ) diff --git a/tests/vision_preprocess/CMakeFiles/Makefile2 b/tests/vision_preprocess/CMakeFiles/Makefile2 deleted file mode 100644 index 553f941c5d3..00000000000 --- a/tests/vision_preprocess/CMakeFiles/Makefile2 +++ /dev/null @@ -1,108 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -# Default target executed when no arguments are given to make. -default_target: all - -.PHONY : default_target - -# The main recursive all target -all: - -.PHONY : all - -# The main recursive preinstall target -preinstall: - -.PHONY : preinstall - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - - -# Remove some rules from gmake that .SUFFIXES does not remove. -SUFFIXES = - -.SUFFIXES: .hpux_make_needs_suffix_list - - -# Suppress display of executed commands. -$(VERBOSE).SILENT: - - -# A target that is always out of date. -cmake_force: - -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E remove -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess - -#============================================================================= -# Target rules for target CMakeFiles/fastdeploy_gtest_main.dir - -# All Build rule for target. -CMakeFiles/fastdeploy_gtest_main.dir/all: - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/depend - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/build - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles --progress-num=1,2 "Built target fastdeploy_gtest_main" -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/all - -# Include target in all. -all: CMakeFiles/fastdeploy_gtest_main.dir/all - -.PHONY : all - -# Build rule for subdir invocation for target. -CMakeFiles/fastdeploy_gtest_main.dir/rule: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles 2 - $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/fastdeploy_gtest_main.dir/all - $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles 0 -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/rule - -# Convenience name for target. -fastdeploy_gtest_main: CMakeFiles/fastdeploy_gtest_main.dir/rule - -.PHONY : fastdeploy_gtest_main - -# clean rule for target. -CMakeFiles/fastdeploy_gtest_main.dir/clean: - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/clean -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/clean - -# clean rule for target. -clean: CMakeFiles/fastdeploy_gtest_main.dir/clean - -.PHONY : clean - -#============================================================================= -# Special targets to cleanup operation of make. - -# Special rule to run CMake to check the build system integrity. -# No rule that depends on this can have commands that come from listfiles -# because they might be regenerated. -cmake_check_build_system: - $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 -.PHONY : cmake_check_build_system - diff --git a/tests/vision_preprocess/CMakeFiles/Progress/1 b/tests/vision_preprocess/CMakeFiles/Progress/1 deleted file mode 100644 index 7b4d68d70fc..00000000000 --- a/tests/vision_preprocess/CMakeFiles/Progress/1 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/tests/vision_preprocess/CMakeFiles/Progress/count.txt b/tests/vision_preprocess/CMakeFiles/Progress/count.txt deleted file mode 100644 index 0cfbf08886f..00000000000 --- a/tests/vision_preprocess/CMakeFiles/Progress/count.txt +++ /dev/null @@ -1 +0,0 @@ -2 diff --git a/tests/vision_preprocess/CMakeFiles/TargetDirectories.txt b/tests/vision_preprocess/CMakeFiles/TargetDirectories.txt deleted file mode 100644 index 0a00aa9d923..00000000000 --- a/tests/vision_preprocess/CMakeFiles/TargetDirectories.txt +++ /dev/null @@ -1,3 +0,0 @@ -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/rebuild_cache.dir -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/edit_cache.dir diff --git a/tests/vision_preprocess/CMakeFiles/cmake.check_cache b/tests/vision_preprocess/CMakeFiles/cmake.check_cache deleted file mode 100644 index 3dccd731726..00000000000 --- a/tests/vision_preprocess/CMakeFiles/cmake.check_cache +++ /dev/null @@ -1 +0,0 @@ -# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache deleted file mode 100644 index 404030be5a6..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/CXX.includecache +++ /dev/null @@ -1,16 +0,0 @@ -#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) - -#IncludeRegexScan: ^.*$ - -#IncludeRegexComplain: ^$ - -#IncludeRegexTransform: - -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc -gtest/gtest.h -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest/gtest.h -gflags/gflags.h -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gflags/gflags.h -glog/logging.h -/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/glog/logging.h - diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake deleted file mode 100644 index caac07bf2ff..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake +++ /dev/null @@ -1,21 +0,0 @@ -# The set of languages for which implicit dependencies are needed: -set(CMAKE_DEPENDS_LANGUAGES - "CXX" - ) -# The set of files for implicit dependencies of each language: -set(CMAKE_DEPENDS_CHECK_CXX - "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc" "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" - ) -set(CMAKE_CXX_COMPILER_ID "GNU") - -# The include file search paths: -set(CMAKE_CXX_TARGET_INCLUDE_PATH - "../" - ) - -# Targets to which this target links. -set(CMAKE_TARGET_LINKED_INFO_FILES - ) - -# Fortran module output directory. -set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make deleted file mode 100644 index 84e2adfba02..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/build.make +++ /dev/null @@ -1,114 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -# Delete rule output on recipe failure. -.DELETE_ON_ERROR: - - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - - -# Remove some rules from gmake that .SUFFIXES does not remove. -SUFFIXES = - -.SUFFIXES: .hpux_make_needs_suffix_list - - -# Suppress display of executed commands. -$(VERBOSE).SILENT: - - -# A target that is always out of date. -cmake_force: - -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E remove -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess - -# Include any dependencies generated for this target. -include CMakeFiles/fastdeploy_gtest_main.dir/depend.make - -# Include the progress variables for this target. -include CMakeFiles/fastdeploy_gtest_main.dir/progress.make - -# Include the compile flags for this target's objects. -include CMakeFiles/fastdeploy_gtest_main.dir/flags.make - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o: CMakeFiles/fastdeploy_gtest_main.dir/flags.make -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o: ../gtest_main.cc - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" - /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o -c /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i" - /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc > CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s" - /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc -o CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires: - -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides.build -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.provides.build: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o - - -# Object files for target fastdeploy_gtest_main -fastdeploy_gtest_main_OBJECTS = \ -"CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" - -# External object files for target fastdeploy_gtest_main -fastdeploy_gtest_main_EXTERNAL_OBJECTS = - -libfastdeploy_gtest_main.a: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o -libfastdeploy_gtest_main.a: CMakeFiles/fastdeploy_gtest_main.dir/build.make -libfastdeploy_gtest_main.a: CMakeFiles/fastdeploy_gtest_main.dir/link.txt - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX static library libfastdeploy_gtest_main.a" - $(CMAKE_COMMAND) -P CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake - $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/fastdeploy_gtest_main.dir/link.txt --verbose=$(VERBOSE) - -# Rule to build all files generated by this target. -CMakeFiles/fastdeploy_gtest_main.dir/build: libfastdeploy_gtest_main.a - -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/build - -CMakeFiles/fastdeploy_gtest_main.dir/requires: CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o.requires - -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/requires - -CMakeFiles/fastdeploy_gtest_main.dir/clean: - $(CMAKE_COMMAND) -P CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/clean - -CMakeFiles/fastdeploy_gtest_main.dir/depend: - cd /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/DependInfo.cmake --color=$(COLOR) -.PHONY : CMakeFiles/fastdeploy_gtest_main.dir/depend - diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake deleted file mode 100644 index 44f9e7fdbd1..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean.cmake +++ /dev/null @@ -1,10 +0,0 @@ -file(REMOVE_RECURSE - "CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o" - "libfastdeploy_gtest_main.pdb" - "libfastdeploy_gtest_main.a" -) - -# Per-language clean rules from dependency scanning. -foreach(lang CXX) - include(CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_${lang}.cmake OPTIONAL) -endforeach() diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake deleted file mode 100644 index 9059ecd1134..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/cmake_clean_target.cmake +++ /dev/null @@ -1,3 +0,0 @@ -file(REMOVE_RECURSE - "libfastdeploy_gtest_main.a" -) diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal deleted file mode 100644 index 97e13575857..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.internal +++ /dev/null @@ -1,5 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o - /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/gtest_main.cc diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make deleted file mode 100644 index 3b17bea846b..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/depend.make +++ /dev/null @@ -1,5 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o: ../gtest_main.cc - diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make deleted file mode 100644 index 865074d6280..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/flags.make +++ /dev/null @@ -1,10 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -# compile CXX with /usr/bin/c++ -CXX_FLAGS = - -CXX_DEFINES = - -CXX_INCLUDES = -I/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests - diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt deleted file mode 100644 index a7d5204f29d..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/link.txt +++ /dev/null @@ -1,2 +0,0 @@ -/usr/bin/ar qc libfastdeploy_gtest_main.a CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o -/usr/bin/ranlib libfastdeploy_gtest_main.a diff --git a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make b/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make deleted file mode 100644 index abadeb0c3ab..00000000000 --- a/tests/vision_preprocess/CMakeFiles/fastdeploy_gtest_main.dir/progress.make +++ /dev/null @@ -1,3 +0,0 @@ -CMAKE_PROGRESS_1 = 1 -CMAKE_PROGRESS_2 = 2 - diff --git a/tests/vision_preprocess/CMakeFiles/feature_tests.bin b/tests/vision_preprocess/CMakeFiles/feature_tests.bin deleted file mode 100755 index 258a67ca57c7d365608b2ba311caefb7cd6cfcb2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13288 zcmeGjZHyJw^}KzHf*>r4V2ikKg~X4_rc=V*RKQYMRtU+n`1?G*!fEsc3{~abFd-=iGbG+j%py zyEdl(_QJe#@AMw>Ypqz8AUjDrK%vvKqE}S--}=_ zoQ3ULfs^!%1W1)-NU3J1)It);B-dCY`ND9nL}L%Ku!RICDO?=rK2Ks9g18&`OSW#A zC+S<}NsSe#?AWRx%Tbf$b||?WN{-m$+fj>woJ-oh;}Ys7vKfITXw9u_4N<$oYHdW5AXi$-f7ovpZfga+vYxg z!@CC#|K;6BmS+F<(VKU#zv#~U9=`XPpPZaNZPw98HgsG!_`z!*Prv=+?R}(TtdfMO z06ee(#w5(ffntwHLNkI?fQPH70WRT20Dc|oYN!KPfFENkRfUlaT844_uOU7qS*m`0 zY}LUWxG-dAUf^d#T?l`l!iVqc*-`ZT0P(39KX{|?{}S;tVFqN*!3q|hzk9HL9**cP z8dxm-;uqjY2no;eNTK1+SfTq0+kdIz->md3Py+h|K01y|75`-+d+tDdoc`+s|8%%g z@nchz{rDT_XTWu0(7IR-nr8IsT9@tUd3&RUO(JQYue-ih&}|3wY|-@@Z+Io*wLx3m zu|_j3*UH(RZ@C?7TJlB5>d>=!(vkH%r9uPEGId{9NXs!bL}`SQ9N5Seip~i8>Kn0c z+KyK8EEB219_kmnMLSRfB3VzRBWX~qIc@E$n_IM{=_OYyuh9CX6--xRoPSb8a*;1( z**@?K3~M#;k!o|iPO6F1uf}<+ipz{|RQMO`6GD>lJkG~Lc%FABLU^7>lhrz5J={L1 z_!DRk#Vjsw2Jp&MK{^t^2jlfn03QrBI~BeLl?3(d3gCm!!@U7~Q2)~bJjY=&==7%j zyH6)!0OQKw=}mv!bs(u7;(H)?0_j@;_RjokTe&X#?SWKH{h|6)@^!uh?Ny}RFKMEE z2;092v=3wZg+Ti)Y#){FdC>pr#dy7!ggx&hGv%Z6Vc>nVryu)-p|#x`!}-1HelSU$ks%_@e0{yte%s`R_;B<}cdH%~;PU+0&bz7k>L>DwMZjU!BdF zYcdJA3ia)U58KKJ_X*v#netO;?_s=B(7&#;8Ls(cYNmX8(+k4aN6_}+7I@{z40z_9 zB$NSQYa(^|z>yjK&!oCL8<93Zww~Vfoapb?^#p zV4xGOKlH1b^N%+S4|hC)wtf0W)9zDmH}4**Cp-Tn?36ahxe}Zw39+^T&S_b{UR&AP z)N#wY)@v6Vy}g>A%VChveG7wEmtM;IBCOaV__-iY7jG}`9ySK-U$|4CV zeo4=3SlwW`o{h{=KGQPt@x3!e)6v4w1<~h55j|?*Fu0aqavgCuv0ceQ>MA*gkJeO1 zLet&c==_$cvBa26h2jQloC#oBd73Y_lOv~izFRWe^x{B^Sx@+PTF!ID1KMFX8dD}pJV~!P$Cq665EZ3%o=6E`B+Kf0k#&_aHAv&_; zZOt|<$G5v|D`sxxEQcl}zG9f;I9zbrhL+b0Su<{7*-p3R+FxQsYzOxNmgeXM%j?mN zxYavqCz2pc)eOA{=V+{W(ZIz*Yhk>JiEl?aP5i{K9H(gY8di@Vb*)3Q4kv-36|6$m za)nJXY^8j@$B*$mPI1@8p^1vPx|6eLw#AX|!M8A%X8q`)#I?Hc1<)}p?QV=2H1K22 ze%H$Dy~rY#QG5gn1OuF@CN4Fc`!Uwpxo%%W>+_bDb#>z|%a56=?gl+yq5z|;jA8L` zJ{G%_W25~jzw4f7xiKSy4x&+|HCwHF2|a1}nK4qKWnaJ;5f?rDZr9RHoFO=&qK5dc zZsT0ejT0?Pj%^f8Ym6a74jk{o$PyIMCE8)h!TFBkZ%{--q1fjDzM#8f^tC~EZQ2i1 z98m2f@i-PdCe3Z#aEoIxusc24;w0uKzeRiX1YYK6!^5=yq*5mVBsQ*t+TM#3bEnmd zZxRdJga;-(FyVm-4@`Jq!UGi#@ONzfZcXpo zR2WW^&B{3xoqbW^bBM3WCZ2Cf2|hRFZ^?AdM1{YTUnHBAW37Lm87>lPM~x)#H|0)M z;cv;4)kkhV{uokv=zNO`z5i1Y=W?f7STf%Dk+`PXeBg)%df3=WR9qY~b;%#!m*G z2i5o~!1Jvde@H>{7cy%#vfOBk!+!K6OewJ4ICGkbOtNr2Yya5eijZ`A~3!@ zTcn=oyqYigqxkP2p7itcko8MF(Rq8T&=bW={%C$c3HjsvFZpM{s*s-_5c)^(htz{e zj?1|aj;B)3OlS|SJ3NDn?U(g%eCGQdZG2h38PdN~*f|rzc+wYlzrRI(%Bis}k10ekqji2+7pYlTZ zxyNVY3lX1U;Q)M0;G=PAHR9v)JZ?k$B>{P^ZdCl?d>U8aqxm$KBK|yx#(}<3^!!Nh zb8jQ?QKdhem$Mh~sS&nHZT~2GUO{|Z{>>4=AI-mc7RM_tuVuI5?+?Y96Nr!FA5!@6 zxYy!~A&n!iBk|oB?_vt#JN(Qh=~!lIJrilnrhVJuSlXev7`=ad#*y(pbl|D(j4 z4cA|iF2Vv67W954O{mC5MR>H3*Y2_OyRWG0<=;<0cq@X4>4ZoF#o;&>*JV}wV%uHJ{oE56$YU37G!nWaLZ4@Ckk zc|=#mYUy-bhsO?{@1^l52DI1xz0GmjZLKJ2UYOSl3x>YOIAqsP%SaDnXjm=H%+Knq$ z-rU-ubu=}%w^9~VCAH~)O{uEN*~(-B8BVd;R-u%xYJo9wu|(=uHTO8#Suu%OB8g0- zi^XPVLE7sp_<9zh?@HLsH5>C0+#X0fMc+y{HLqUi>p9iJ)sxPaY|QnvO-NI#Tlcyl zZT2~+PeR|76qU(P)zFYe2a+V9YCU-$(jv($O=%F27Ne4Oiz0t5ZFQ?@*KMLKx1@xe zGg5-t%zV1xGPEYJHmhD#MQ+s}Lq z??O85`MJ&eJ%%YIPxe#aY`;RoMy!xeS)TWW4EZ|*_s{Zt|C^P3vr@?4H5hg(Jjv6y zldwGPKgh1i_XlQBkoP0VB1(AtA4F_WKBeRsc1p3zFQ4x+91O|#D|v>GhX#zzV}%cg zwAI7tM5c1rUJ<8uqO2RG50Q%0_iWl3%>z}?)vh7kr{=Rsbg!4m0 Y?w5IIVkN{PNXNe+IsU_p3WnwX3o4Y!=l}o! diff --git a/tests/vision_preprocess/CMakeFiles/feature_tests.c b/tests/vision_preprocess/CMakeFiles/feature_tests.c deleted file mode 100644 index 83e86dd8cd8..00000000000 --- a/tests/vision_preprocess/CMakeFiles/feature_tests.c +++ /dev/null @@ -1,34 +0,0 @@ - - const char features[] = {"\n" -"C_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 -"1" -#else -"0" -#endif -"c_function_prototypes\n" -"C_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -"1" -#else -"0" -#endif -"c_restrict\n" -"C_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L -"1" -#else -"0" -#endif -"c_static_assert\n" -"C_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -"1" -#else -"0" -#endif -"c_variadic_macros\n" - -}; - -int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/tests/vision_preprocess/CMakeFiles/feature_tests.cxx b/tests/vision_preprocess/CMakeFiles/feature_tests.cxx deleted file mode 100644 index b93418c6ed6..00000000000 --- a/tests/vision_preprocess/CMakeFiles/feature_tests.cxx +++ /dev/null @@ -1,405 +0,0 @@ - - const char features[] = {"\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L -"1" -#else -"0" -#endif -"cxx_aggregate_default_initializers\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_alias_templates\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_alignas\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_alignof\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_attributes\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_attribute_deprecated\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_auto_type\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_binary_literals\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_constexpr\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_contextual_conversions\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_decltype\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_decltype_auto\n" -"CXX_FEATURE:" -#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_decltype_incomplete_return_types\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_default_function_template_args\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_defaulted_functions\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_defaulted_move_initializers\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_delegating_constructors\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_deleted_functions\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_digit_separators\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_enum_forward_declarations\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_explicit_conversions\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_extended_friend_declarations\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_extern_templates\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_final\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_func_identifier\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_generalized_initializers\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_generic_lambdas\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_inheriting_constructors\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_inline_namespaces\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_lambdas\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_lambda_init_captures\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_local_type_template_args\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_long_long_type\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_noexcept\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_nonstatic_member_init\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_nullptr\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_override\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_range_for\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_raw_string_literals\n" -"CXX_FEATURE:" -#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_reference_qualified_functions\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L -"1" -#else -"0" -#endif -"cxx_relaxed_constexpr\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L -"1" -#else -"0" -#endif -"cxx_return_type_deduction\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_right_angle_brackets\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_rvalue_references\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_sizeof_member\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_static_assert\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_strong_enums\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus -"1" -#else -"0" -#endif -"cxx_template_template_parameters\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_thread_local\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_trailing_return_types\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_unicode_literals\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_uniform_initialization\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_unrestricted_unions\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L -"1" -#else -"0" -#endif -"cxx_user_literals\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L -"1" -#else -"0" -#endif -"cxx_variable_templates\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_variadic_macros\n" -"CXX_FEATURE:" -#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) -"1" -#else -"0" -#endif -"cxx_variadic_templates\n" - -}; - -int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/tests/vision_preprocess/CMakeFiles/progress.marks b/tests/vision_preprocess/CMakeFiles/progress.marks deleted file mode 100644 index 0cfbf08886f..00000000000 --- a/tests/vision_preprocess/CMakeFiles/progress.marks +++ /dev/null @@ -1 +0,0 @@ -2 diff --git a/tests/vision_preprocess/Makefile b/tests/vision_preprocess/Makefile deleted file mode 100644 index 092ef4f4b47..00000000000 --- a/tests/vision_preprocess/Makefile +++ /dev/null @@ -1,166 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.10 - -# Default target executed when no arguments are given to make. -default_target: all - -.PHONY : default_target - -# Allow only one "make -f Makefile2" at a time, but pass parallelism. -.NOTPARALLEL: - - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - - -# Remove some rules from gmake that .SUFFIXES does not remove. -SUFFIXES = - -.SUFFIXES: .hpux_make_needs_suffix_list - - -# Suppress display of executed commands. -$(VERBOSE).SILENT: - - -# A target that is always out of date. -cmake_force: - -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E remove -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess - -#============================================================================= -# Targets provided globally by CMake. - -# Special rule for the target rebuild_cache -rebuild_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." - /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) -.PHONY : rebuild_cache - -# Special rule for the target rebuild_cache -rebuild_cache/fast: rebuild_cache - -.PHONY : rebuild_cache/fast - -# Special rule for the target edit_cache -edit_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." - /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. -.PHONY : edit_cache - -# Special rule for the target edit_cache -edit_cache/fast: edit_cache - -.PHONY : edit_cache/fast - -# The main all target -all: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles/progress.marks - $(MAKE) -f CMakeFiles/Makefile2 all - $(CMAKE_COMMAND) -E cmake_progress_start /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/CMakeFiles 0 -.PHONY : all - -# The main clean target -clean: - $(MAKE) -f CMakeFiles/Makefile2 clean -.PHONY : clean - -# The main clean target -clean/fast: clean - -.PHONY : clean/fast - -# Prepare targets for installation. -preinstall: all - $(MAKE) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall - -# Prepare targets for installation. -preinstall/fast: - $(MAKE) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall/fast - -# clear depends -depend: - $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 -.PHONY : depend - -#============================================================================= -# Target rules for targets named fastdeploy_gtest_main - -# Build rule for target. -fastdeploy_gtest_main: cmake_check_build_system - $(MAKE) -f CMakeFiles/Makefile2 fastdeploy_gtest_main -.PHONY : fastdeploy_gtest_main - -# fast build rule for target. -fastdeploy_gtest_main/fast: - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/build -.PHONY : fastdeploy_gtest_main/fast - -# target to build an object file -gtest_main.o: - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.o -.PHONY : gtest_main.o - -# target to preprocess a source file -gtest_main.i: - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.i -.PHONY : gtest_main.i - -# target to generate assembly for a file -gtest_main.s: - $(MAKE) -f CMakeFiles/fastdeploy_gtest_main.dir/build.make CMakeFiles/fastdeploy_gtest_main.dir/gtest_main.s -.PHONY : gtest_main.s - -# Help Target -help: - @echo "The following are some of the valid targets for this Makefile:" - @echo "... all (the default if no target is provided)" - @echo "... clean" - @echo "... depend" - @echo "... rebuild_cache" - @echo "... fastdeploy_gtest_main" - @echo "... edit_cache" - @echo "... gtest_main.o" - @echo "... gtest_main.i" - @echo "... gtest_main.s" -.PHONY : help - - - -#============================================================================= -# Special targets to cleanup operation of make. - -# Special rule to run CMake to check the build system integrity. -# No rule that depends on this can have commands that come from listfiles -# because they might be regenerated. -cmake_check_build_system: - $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 -.PHONY : cmake_check_build_system - diff --git a/tests/vision_preprocess/cmake_install.cmake b/tests/vision_preprocess/cmake_install.cmake deleted file mode 100644 index f23fcedc4cd..00000000000 --- a/tests/vision_preprocess/cmake_install.cmake +++ /dev/null @@ -1,49 +0,0 @@ -# Install script for directory: /home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -if(CMAKE_INSTALL_COMPONENT) - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") -else() - set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -file(WRITE "/home/leiqingtx2/jiangjiajun/1016/FastDeploy/tests/vision_preprocess/${CMAKE_INSTALL_MANIFEST}" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") From b372d5745d7a8813566fac04ef491820364b65e8 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Fri, 21 Oct 2022 14:39:48 +0800 Subject: [PATCH 05/16] Add more implementations by flycv --- CMakeLists.txt | 8 +- cmake/falconcv.cmake | 87 ------------------- cmake/flycv.cmake | 87 +++++++++++++++++++ fastdeploy/core/config.h.in | 4 +- fastdeploy/vision/common/processors/base.cc | 6 +- fastdeploy/vision/common/processors/cast.cc | 4 +- fastdeploy/vision/common/processors/cast.h | 6 +- .../vision/common/processors/center_crop.cc | 7 +- .../vision/common/processors/center_crop.h | 6 +- .../common/processors/color_space_convert.cc | 4 +- .../common/processors/color_space_convert.h | 8 +- .../vision/common/processors/convert.cc | 4 +- fastdeploy/vision/common/processors/convert.h | 2 +- fastdeploy/vision/common/processors/crop.cc | 7 +- fastdeploy/vision/common/processors/crop.h | 2 +- .../vision/common/processors/hwc2chw.cc | 2 +- fastdeploy/vision/common/processors/hwc2chw.h | 6 +- .../common/processors/limit_by_stride.cc | 6 +- .../common/processors/limit_by_stride.h | 2 +- .../vision/common/processors/limit_long.cc | 2 +- .../vision/common/processors/limit_long.h | 2 +- .../vision/common/processors/limit_short.cc | 2 +- .../vision/common/processors/limit_short.h | 2 +- fastdeploy/vision/common/processors/mat.cc | 12 +-- fastdeploy/vision/common/processors/mat.h | 18 ++-- .../vision/common/processors/normalize.cc | 2 +- .../vision/common/processors/normalize.h | 7 +- .../processors/normalize_and_permute.cc | 2 +- .../common/processors/normalize_and_permute.h | 10 ++- fastdeploy/vision/common/processors/pad.cc | 2 +- fastdeploy/vision/common/processors/pad.h | 6 +- .../vision/common/processors/pad_to_size.cc | 2 +- .../vision/common/processors/pad_to_size.h | 2 +- fastdeploy/vision/common/processors/resize.cc | 2 +- fastdeploy/vision/common/processors/resize.h | 2 +- .../common/processors/resize_by_short.cc | 2 +- .../common/processors/resize_by_short.h | 2 +- .../vision/common/processors/stride_pad.cc | 2 +- .../vision/common/processors/stride_pad.h | 2 +- fastdeploy/vision/common/processors/utils.cc | 2 +- fastdeploy/vision/common/processors/utils.h | 14 +-- tests/vision_preprocess/test_vision_cast.cc | 4 +- .../test_vision_center_crop.cc | 8 +- .../test_vision_colorspace_convert.cc | 6 +- .../vision_preprocess/test_vision_convert.cc | 8 +- tests/vision_preprocess/test_vision_crop.cc | 40 ++++----- .../vision_preprocess/test_vision_hwc2chw.cc | 8 +- .../test_vision_limit_stride.cc | 72 ++++++++++++--- .../test_vision_normalize.cc | 8 +- .../test_vision_normalize_and_permute.cc | 4 +- tests/vision_preprocess/test_vision_pad.cc | 8 +- 51 files changed, 285 insertions(+), 238 deletions(-) delete mode 100644 cmake/falconcv.cmake create mode 100644 cmake/flycv.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e58688c92f..b61c00321fc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -367,10 +367,10 @@ if(ENABLE_VISION) include_directories(${PROJECT_SOURCE_DIR}/third_party/yaml-cpp/include) include(${PROJECT_SOURCE_DIR}/cmake/opencv.cmake) - if(ENABLE_FALCONCV) - add_definitions(-DENABLE_FALCONCV) - include(${PROJECT_SOURCE_DIR}/cmake/falconcv.cmake) - list(APPEND DEPEND_LIBS external_falconcv) + if(ENABLE_FLYCV) + add_definitions(-DENABLE_FLYCV) + include(${PROJECT_SOURCE_DIR}/cmake/flycv.cmake) + list(APPEND DEPEND_LIBS external_flycv) endif() endif() diff --git a/cmake/falconcv.cmake b/cmake/falconcv.cmake deleted file mode 100644 index e5dcd9a6e4d..00000000000 --- a/cmake/falconcv.cmake +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -include(ExternalProject) - -set(FALCONCV_PROJECT "extern_falconcv") -set(FALCONCV_PREFIX_DIR ${THIRD_PARTY_PATH}/falconcv) -set(FALCONCV_SOURCE_DIR - ${THIRD_PARTY_PATH}/falconcv/src/${FALCONCV_PROJECT}) -set(FALCONCV_INSTALL_DIR ${THIRD_PARTY_PATH}/install/falconcv) -set(FALCONCV_INC_DIR - "${FALCONCV_INSTALL_DIR}/include" - CACHE PATH "falconcv include directory." FORCE) -set(FALCONCV_LIB_DIR - "${FALCONCV_INSTALL_DIR}/lib/" - CACHE PATH "falconcv lib directory." FORCE) -set(CMAKE_BUILD_RPATH "${CMAKE_BUILD_RPATH}" - "${FALCONCV_LIB_DIR}") - -include_directories(${FALCONCV_INC_DIR}) -if(WIN32) - set(FALCONCV_COMPILE_LIB - "${FALCONCV_INSTALL_DIR}/lib/falconcv.lib" - CACHE FILEPATH "falconcv compile library." FORCE) -elseif(APPLE) - set(FALCONCV_COMPILE_LIB - "${FALCONCV_INSTALL_DIR}/lib/libfalconcv.dylib" - CACHE FILEPATH "falconcv compile library." FORCE) -else() - set(FALCONCV_COMPILE_LIB - "${FALCONCV_INSTALL_DIR}/lib/libfalconcv_shared.so" - CACHE FILEPATH "falconcv compile library." FORCE) -endif(WIN32) - -set(FALCONCV_URL_BASE "https://bj.bcebos.com/fastdeploy/third_libs/") -set(FALCONCV_VERSION "1.3.0") -if(WIN32) - message(FATAL_ERROR "FalconCV is not supported on Windows now.") - set(FALCONCV_FILE "falconcv-win-x64-${FALCONCV_VERSION}.zip") -elseif(APPLE) - message(FATAL_ERROR "FalconCV is not supported on Mac OSX now.") - if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64") - set(FALCONCV_FILE "falconcv-osx-arm64-${FALCONCV_VERSION}.tgz") - else() - set(FALCONCV_FILE "falconcv-osx-x86_64-${FALCONCV_VERSION}.tgz") - endif() -else() - if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") - set(FALCONCV_FILE "falconcv-linux-aarch64-${FALCONCV_VERSION}.tgz") - else() - message(FATAL_ERROR "FalconCV is not supported on Linux x64 now.") - set(FALCONCV_FILE "falconcv-linux-x64-${FALCONCV_VERSION}.tgz") - endif() -endif() -set(FALCONCV_URL "${FALCONCV_URL_BASE}${FALCONCV_FILE}") - -ExternalProject_Add( - ${FALCONCV_PROJECT} - ${EXTERNAL_PROJECT_LOG_ARGS} - URL ${FALCONCV_URL} - PREFIX ${FALCONCV_PREFIX_DIR} - DOWNLOAD_NO_PROGRESS 1 - CONFIGURE_COMMAND "" - BUILD_COMMAND "" - UPDATE_COMMAND "" - INSTALL_COMMAND - ${CMAKE_COMMAND} -E remove_directory ${FALCONCV_INSTALL_DIR} && - ${CMAKE_COMMAND} -E make_directory ${FALCONCV_INSTALL_DIR} && - ${CMAKE_COMMAND} -E rename ${FALCONCV_SOURCE_DIR}/lib/ - ${FALCONCV_LIB_DIR} && ${CMAKE_COMMAND} -E copy_directory - ${FALCONCV_SOURCE_DIR}/include ${FALCONCV_INC_DIR} - BUILD_BYPRODUCTS ${FALCONCV_COMPILE_LIB}) - -add_library(external_falconcv STATIC IMPORTED GLOBAL) -set_property(TARGET external_falconcv PROPERTY IMPORTED_LOCATION - ${FALCONCV_COMPILE_LIB}) -add_dependencies(external_falconcv ${FALCONCV_PROJECT}) diff --git a/cmake/flycv.cmake b/cmake/flycv.cmake new file mode 100644 index 00000000000..fca80b294fb --- /dev/null +++ b/cmake/flycv.cmake @@ -0,0 +1,87 @@ +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +include(ExternalProject) + +set(FLYCV_PROJECT "extern_flycv") +set(FLYCV_PREFIX_DIR ${THIRD_PARTY_PATH}/flycv) +set(FLYCV_SOURCE_DIR + ${THIRD_PARTY_PATH}/flycv/src/${FLYCV_PROJECT}) +set(FLYCV_INSTALL_DIR ${THIRD_PARTY_PATH}/install/flycv) +set(FLYCV_INC_DIR + "${FLYCV_INSTALL_DIR}/include" + CACHE PATH "flycv include directory." FORCE) +set(FLYCV_LIB_DIR + "${FLYCV_INSTALL_DIR}/lib/" + CACHE PATH "flycv lib directory." FORCE) +set(CMAKE_BUILD_RPATH "${CMAKE_BUILD_RPATH}" + "${FLYCV_LIB_DIR}") + +include_directories(${FLYCV_INC_DIR}) +if(WIN32) + set(FLYCV_COMPILE_LIB + "${FLYCV_INSTALL_DIR}/lib/flycv.lib" + CACHE FILEPATH "flycv compile library." FORCE) +elseif(APPLE) + set(FLYCV_COMPILE_LIB + "${FLYCV_INSTALL_DIR}/lib/libflycv.dylib" + CACHE FILEPATH "flycv compile library." FORCE) +else() + set(FLYCV_COMPILE_LIB + "${FLYCV_INSTALL_DIR}/lib/libflycv_shared.so" + CACHE FILEPATH "flycv compile library." FORCE) +endif(WIN32) + +set(FLYCV_URL_BASE "https://bj.bcebos.com/fastdeploy/third_libs/") +set(FLYCV_VERSION "1.0") +if(WIN32) + message(FATAL_ERROR "FalconCV is not supported on Windows now.") + set(FLYCV_FILE "flycv-win-x64-${FLYCV_VERSION}.zip") +elseif(APPLE) + message(FATAL_ERROR "FalconCV is not supported on Mac OSX now.") + if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64") + set(FLYCV_FILE "flycv-osx-arm64-${FLYCV_VERSION}.tgz") + else() + set(FLYCV_FILE "flycv-osx-x86_64-${FLYCV_VERSION}.tgz") + endif() +else() + if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") + set(FLYCV_FILE "flycv-linux-aarch64-${FLYCV_VERSION}.tgz") + else() + message(FATAL_ERROR "FalconCV is not supported on Linux x64 now.") + set(FLYCV_FILE "flycv-linux-x64-${FLYCV_VERSION}.tgz") + endif() +endif() +set(FLYCV_URL "${FLYCV_URL_BASE}${FLYCV_FILE}") + +ExternalProject_Add( + ${FLYCV_PROJECT} + ${EXTERNAL_PROJECT_LOG_ARGS} + URL ${FLYCV_URL} + PREFIX ${FLYCV_PREFIX_DIR} + DOWNLOAD_NO_PROGRESS 1 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + UPDATE_COMMAND "" + INSTALL_COMMAND + ${CMAKE_COMMAND} -E remove_directory ${FLYCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E make_directory ${FLYCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E rename ${FLYCV_SOURCE_DIR}/lib/ + ${FLYCV_LIB_DIR} && ${CMAKE_COMMAND} -E copy_directory + ${FLYCV_SOURCE_DIR}/include ${FLYCV_INC_DIR} + BUILD_BYPRODUCTS ${FLYCV_COMPILE_LIB}) + +add_library(external_flycv STATIC IMPORTED GLOBAL) +set_property(TARGET external_flycv PROPERTY IMPORTED_LOCATION + ${FLYCV_COMPILE_LIB}) +add_dependencies(external_flycv ${FLYCV_PROJECT}) diff --git a/fastdeploy/core/config.h.in b/fastdeploy/core/config.h.in index 8d6a07bb6cf..1e987279995 100755 --- a/fastdeploy/core/config.h.in +++ b/fastdeploy/core/config.h.in @@ -49,8 +49,8 @@ #cmakedefine ENABLE_VISION #endif -#ifndef ENABLE_FALCONCV -#cmakedefine ENABLE_FALCONCV +#ifndef ENABLE_FLYCV +#cmakedefine ENABLE_FLYCV #endif #ifndef ENABLE_TEXT diff --git a/fastdeploy/vision/common/processors/base.cc b/fastdeploy/vision/common/processors/base.cc index 92e399e6035..c522e33e89f 100644 --- a/fastdeploy/vision/common/processors/base.cc +++ b/fastdeploy/vision/common/processors/base.cc @@ -28,9 +28,9 @@ bool Processor::operator()(Mat* mat, ProcLib lib) { target = default_lib; } - if (lib == ProcLib::FALCONCV) { -#ifdef ENABLE_FALCONCV - if (mat->mat_type != ProcLib::FALCONCV) { + if (lib == ProcLib::FLYCV) { +#ifdef ENABLE_FLYCV + if (mat->mat_type != ProcLib::FLYCV) { if (mat->layout != Layout::HWC) { FDERROR << "Cannot convert cv::Mat to fcv::Mat while layout is not HWC." << std::endl; } diff --git a/fastdeploy/vision/common/processors/cast.cc b/fastdeploy/vision/common/processors/cast.cc index c9ee95fb54b..ce612d962ff 100644 --- a/fastdeploy/vision/common/processors/cast.cc +++ b/fastdeploy/vision/common/processors/cast.cc @@ -35,7 +35,7 @@ bool Cast::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool Cast::ImplByFalconCV(Mat* mat) { if (mat->layout != Layout::HWC) { FDERROR @@ -62,8 +62,6 @@ bool Cast::ImplByFalconCV(Mat* mat) { FDWARNING << "Cast not support for " << dtype_ << " now! will skip this operation." << std::endl; } - float* tmp = static_cast(mat->GetFalconCVMat()->data()); - FDERROR << mat->GetFalconCVMat()->width() << " " << mat->GetFalconCVMat()->height() << " " << tmp[0] << " " << tmp[1224] << std::endl; return true; } #endif diff --git a/fastdeploy/vision/common/processors/cast.h b/fastdeploy/vision/common/processors/cast.h index 5e4457fb1d5..4ac228c4aab 100644 --- a/fastdeploy/vision/common/processors/cast.h +++ b/fastdeploy/vision/common/processors/cast.h @@ -23,7 +23,7 @@ class FASTDEPLOY_DECL Cast : public Processor { public: explicit Cast(const std::string& dtype = "float") : dtype_(dtype) {} bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "Cast"; } @@ -33,5 +33,5 @@ class FASTDEPLOY_DECL Cast : public Processor { private: std::string dtype_; }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/center_crop.cc b/fastdeploy/vision/common/processors/center_crop.cc index 08cf2e4fbbe..6aca3acd09e 100644 --- a/fastdeploy/vision/common/processors/center_crop.cc +++ b/fastdeploy/vision/common/processors/center_crop.cc @@ -28,13 +28,14 @@ bool CenterCrop::ImplByOpenCV(Mat* mat) { int offset_x = static_cast((width - width_) / 2); int offset_y = static_cast((height - height_) / 2); cv::Rect crop_roi(offset_x, offset_y, width_, height_); - *im = (*im)(crop_roi); + cv::Mat new_im = (*im)(crop_roi).clone(); + mat->SetMat(new_im); mat->SetWidth(width_); mat->SetHeight(height_); return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool CenterCrop::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); int height = static_cast(im->height()); @@ -47,7 +48,7 @@ bool CenterCrop::ImplByFalconCV(Mat* mat) { int offset_y = static_cast((height - height_) / 2); fcv::Rect crop_roi(offset_x, offset_y, width_, height_); fcv::Mat new_im; - im->copy_to(new_im, crop_roi); + fcv::crop(*im, new_im, crop_roi); mat->SetMat(new_im); mat->SetWidth(width_); mat->SetHeight(height_); diff --git a/fastdeploy/vision/common/processors/center_crop.h b/fastdeploy/vision/common/processors/center_crop.h index 8b59988cead..befeeb5a35a 100644 --- a/fastdeploy/vision/common/processors/center_crop.h +++ b/fastdeploy/vision/common/processors/center_crop.h @@ -23,7 +23,7 @@ class FASTDEPLOY_DECL CenterCrop : public Processor { public: CenterCrop(int width, int height) : height_(height), width_(width) {} bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "CenterCrop"; } @@ -36,5 +36,5 @@ class FASTDEPLOY_DECL CenterCrop : public Processor { int width_; }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/color_space_convert.cc b/fastdeploy/vision/common/processors/color_space_convert.cc index 9f8a1989914..15e8aa42650 100644 --- a/fastdeploy/vision/common/processors/color_space_convert.cc +++ b/fastdeploy/vision/common/processors/color_space_convert.cc @@ -24,7 +24,7 @@ bool BGR2RGB::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool BGR2RGB::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); if (im->channels() != 3) { @@ -46,7 +46,7 @@ bool RGB2BGR::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool RGB2BGR::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); if (im->channels() != 3) { diff --git a/fastdeploy/vision/common/processors/color_space_convert.h b/fastdeploy/vision/common/processors/color_space_convert.h index 0598d60e3e1..ad66acd4f30 100644 --- a/fastdeploy/vision/common/processors/color_space_convert.h +++ b/fastdeploy/vision/common/processors/color_space_convert.h @@ -22,7 +22,7 @@ namespace vision { class FASTDEPLOY_DECL BGR2RGB : public Processor { public: bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif virtual std::string Name() { return "BGR2RGB"; } @@ -33,12 +33,12 @@ class FASTDEPLOY_DECL BGR2RGB : public Processor { class FASTDEPLOY_DECL RGB2BGR : public Processor { public: bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "RGB2BGR"; } static bool Run(Mat* mat, ProcLib lib = ProcLib::OPENCV); }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/convert.cc b/fastdeploy/vision/common/processors/convert.cc index 65844379ebc..01c06737019 100644 --- a/fastdeploy/vision/common/processors/convert.cc +++ b/fastdeploy/vision/common/processors/convert.cc @@ -39,14 +39,14 @@ bool Convert::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool Convert::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); FDASSERT(im->channels() == 3, "Only support 3-channels image in FalconCV."); std::vector mean(3, 0); std::vector std(3, 0); for (size_t i = 0; i < 3; ++i) { - std[i] = 1.0 / (alpha_[i] + 1e-06); + std[i] = 1.0 / alpha_[i]; mean[i] = -1 * beta_[i] * std[i]; } fcv::Mat new_im; diff --git a/fastdeploy/vision/common/processors/convert.h b/fastdeploy/vision/common/processors/convert.h index 74a397d53c0..197316a52c9 100644 --- a/fastdeploy/vision/common/processors/convert.h +++ b/fastdeploy/vision/common/processors/convert.h @@ -23,7 +23,7 @@ class FASTDEPLOY_DECL Convert : public Processor { Convert(const std::vector& alpha, const std::vector& beta); bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "Convert"; } diff --git a/fastdeploy/vision/common/processors/crop.cc b/fastdeploy/vision/common/processors/crop.cc index 42454bf2c16..fc3a41ecbac 100644 --- a/fastdeploy/vision/common/processors/crop.cc +++ b/fastdeploy/vision/common/processors/crop.cc @@ -29,13 +29,14 @@ bool Crop::ImplByOpenCV(Mat* mat) { return false; } cv::Rect crop_roi(offset_w_, offset_h_, width_, height_); - *im = (*im)(crop_roi); + cv::Mat new_im = (*im)(crop_roi).clone(); + mat->SetMat(new_im); mat->SetWidth(width_); mat->SetHeight(height_); return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool Crop::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); int height = static_cast(im->height()); @@ -49,7 +50,7 @@ bool Crop::ImplByFalconCV(Mat* mat) { } fcv::Rect crop_roi(offset_w_, offset_h_, width_, height_); fcv::Mat new_im; - im->copy_to(new_im, crop_roi); + fcv::crop(*im, new_im, crop_roi); mat->SetMat(new_im); mat->SetWidth(width_); mat->SetHeight(height_); diff --git a/fastdeploy/vision/common/processors/crop.h b/fastdeploy/vision/common/processors/crop.h index 6ec9f4d80da..3df43ac88ea 100644 --- a/fastdeploy/vision/common/processors/crop.h +++ b/fastdeploy/vision/common/processors/crop.h @@ -29,7 +29,7 @@ class FASTDEPLOY_DECL Crop : public Processor { } bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "Crop"; } diff --git a/fastdeploy/vision/common/processors/hwc2chw.cc b/fastdeploy/vision/common/processors/hwc2chw.cc index a7f3c01d341..3af9b559d5e 100644 --- a/fastdeploy/vision/common/processors/hwc2chw.cc +++ b/fastdeploy/vision/common/processors/hwc2chw.cc @@ -40,7 +40,7 @@ bool HWC2CHW::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool HWC2CHW::ImplByFalconCV(Mat* mat) { if (mat->layout != Layout::HWC) { FDERROR << "HWC2CHW: The input data is not Layout::HWC format!" << std::endl; diff --git a/fastdeploy/vision/common/processors/hwc2chw.h b/fastdeploy/vision/common/processors/hwc2chw.h index 806d68a51f0..a21de7b4c32 100644 --- a/fastdeploy/vision/common/processors/hwc2chw.h +++ b/fastdeploy/vision/common/processors/hwc2chw.h @@ -22,12 +22,12 @@ namespace vision { class FASTDEPLOY_DECL HWC2CHW : public Processor { public: bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "HWC2CHW"; } static bool Run(Mat* mat, ProcLib lib = ProcLib::OPENCV); }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/limit_by_stride.cc b/fastdeploy/vision/common/processors/limit_by_stride.cc index e80b1e1a335..3a137eb8c00 100644 --- a/fastdeploy/vision/common/processors/limit_by_stride.cc +++ b/fastdeploy/vision/common/processors/limit_by_stride.cc @@ -37,7 +37,7 @@ bool LimitByStride::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool LimitByStride::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); int origin_w = im->width(); @@ -66,11 +66,7 @@ bool LimitByStride::ImplByFalconCV(Mat* mat) { } fcv::Mat new_im; - std::cout << "??? " << rw << " " << rh << std::endl; - float* data = static_cast(im->data()); - FDERROR << im->width() << " " << im->height() << " " << data[0] << " " << data[1224] << std::endl; fcv::resize(*im, new_im, fcv::Size(rw, rh), 0, 0, interp_method); - std::cout << "1111 " << new_im.width() << " " << new_im.height() << std::endl; mat->SetMat(new_im); mat->SetWidth(new_im.width()); mat->SetHeight(new_im.height()); diff --git a/fastdeploy/vision/common/processors/limit_by_stride.h b/fastdeploy/vision/common/processors/limit_by_stride.h index 4937d797a7c..465bc065d41 100644 --- a/fastdeploy/vision/common/processors/limit_by_stride.h +++ b/fastdeploy/vision/common/processors/limit_by_stride.h @@ -28,7 +28,7 @@ class FASTDEPLOY_DECL LimitByStride : public Processor { // Resize Mat* mat to make the size divisible by stride_. bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "LimitByStride"; } diff --git a/fastdeploy/vision/common/processors/limit_long.cc b/fastdeploy/vision/common/processors/limit_long.cc index 1a78e15962d..786b4eea04f 100644 --- a/fastdeploy/vision/common/processors/limit_long.cc +++ b/fastdeploy/vision/common/processors/limit_long.cc @@ -38,7 +38,7 @@ bool LimitLong::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool LimitLong::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); int origin_w = im->width(); diff --git a/fastdeploy/vision/common/processors/limit_long.h b/fastdeploy/vision/common/processors/limit_long.h index e18ff13d205..f8f22750500 100644 --- a/fastdeploy/vision/common/processors/limit_long.h +++ b/fastdeploy/vision/common/processors/limit_long.h @@ -33,7 +33,7 @@ class LimitLong : public Processor { // If the long edge is smaller than min_long_, resize the long edge // to min_long_, while scale the short edge proportionally. bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "LimitLong"; } diff --git a/fastdeploy/vision/common/processors/limit_short.cc b/fastdeploy/vision/common/processors/limit_short.cc index 827ee477b0c..b40c97aa87e 100644 --- a/fastdeploy/vision/common/processors/limit_short.cc +++ b/fastdeploy/vision/common/processors/limit_short.cc @@ -40,7 +40,7 @@ bool LimitShort::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool LimitShort::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); int origin_w = im->width(); diff --git a/fastdeploy/vision/common/processors/limit_short.h b/fastdeploy/vision/common/processors/limit_short.h index 59dbd6c51d2..a1bbe9c8187 100644 --- a/fastdeploy/vision/common/processors/limit_short.h +++ b/fastdeploy/vision/common/processors/limit_short.h @@ -33,7 +33,7 @@ class LimitShort : public Processor { // If the short edge is smaller than min_short_, resize the short edge // to min_short_, while scale the long edge proportionally. bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "LimitShort"; } diff --git a/fastdeploy/vision/common/processors/mat.cc b/fastdeploy/vision/common/processors/mat.cc index efc109f0b4a..bd9da2feccf 100644 --- a/fastdeploy/vision/common/processors/mat.cc +++ b/fastdeploy/vision/common/processors/mat.cc @@ -19,8 +19,8 @@ namespace fastdeploy { namespace vision { void* Mat::Data() { - if (mat_type == ProcLib::FALCONCV) { -#ifdef ENABLE_FALCONCV + if (mat_type == ProcLib::FLYCV) { +#ifdef ENABLE_FLYCV return fcv_mat.data(); #else FDASSERT(false, "FastDeploy didn't compile with FalconCV, but met data type with fcv::Mat."); @@ -52,8 +52,8 @@ bool Mat::CopyToTensor(FDTensor* tensor) { } void Mat::PrintInfo(const std::string& flag) { - if (mat_type == ProcLib::FALCONCV) { -#ifdef ENABLE_FALCONCV + if (mat_type == ProcLib::FLYCV) { +#ifdef ENABLE_FLYCV fcv::Scalar mean = fcv::mean(fcv_mat); std::cout << flag << ": " << "DataType=" << Type() << ", " @@ -85,8 +85,8 @@ void Mat::PrintInfo(const std::string& flag) { FDDataType Mat::Type() { int type = -1; - if (mat_type == ProcLib::FALCONCV) { -#ifdef ENABLE_FALCONCV + if (mat_type == ProcLib::FLYCV) { +#ifdef ENABLE_FLYCV return FalconCVDataTypeToFD(fcv_mat.type()); #else FDASSERT(false, "FastDeploy didn't compile with FalconCV, but met data type with fcv::Mat."); diff --git a/fastdeploy/vision/common/processors/mat.h b/fastdeploy/vision/common/processors/mat.h index 637019a01bf..ba39f9607df 100644 --- a/fastdeploy/vision/common/processors/mat.h +++ b/fastdeploy/vision/common/processors/mat.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -enum ProcLib { DEFAULT, OPENCV, FALCONCV}; +enum ProcLib { DEFAULT, OPENCV, FLYCV}; enum Layout { HWC, CHW }; struct FASTDEPLOY_DECL Mat { @@ -36,8 +36,8 @@ struct FASTDEPLOY_DECL Mat { // this only used if you don't want to write // the original data, and write to a new cv::Mat // then replace the old cv::Mat of this structure - void SetMat(const cv::Mat& mat) { - cpu_mat = mat; + void SetMat(const cv::Mat& mat) { + cpu_mat = mat; mat_type = ProcLib::OPENCV; } @@ -46,14 +46,14 @@ struct FASTDEPLOY_DECL Mat { return &cpu_mat; } -#ifdef ENABLE_FALCONCV - void SetMat(const fcv::Mat& mat) { - fcv_mat = mat; - mat_type = ProcLib::FALCONCV; +#ifdef ENABLE_FLYCV + void SetMat(const fcv::Mat& mat) { + fcv_mat = mat; + mat_type = ProcLib::FLYCV; } inline fcv::Mat* GetFalconCVMat() { - FDASSERT(mat_type == ProcLib::FALCONCV, "Met non fcv::Mat data strucure."); + FDASSERT(mat_type == ProcLib::FLYCV, "Met non fcv::Mat data strucure."); return &fcv_mat; } #endif @@ -66,7 +66,7 @@ struct FASTDEPLOY_DECL Mat { int width; cv::Mat cpu_mat; -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV fcv::Mat fcv_mat; #endif diff --git a/fastdeploy/vision/common/processors/normalize.cc b/fastdeploy/vision/common/processors/normalize.cc index 3199b0e47cc..88d68a65eeb 100644 --- a/fastdeploy/vision/common/processors/normalize.cc +++ b/fastdeploy/vision/common/processors/normalize.cc @@ -64,7 +64,7 @@ bool Normalize::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool Normalize::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); if (im->channels() != 3) { diff --git a/fastdeploy/vision/common/processors/normalize.h b/fastdeploy/vision/common/processors/normalize.h index c0e272d7c84..d97651edf41 100644 --- a/fastdeploy/vision/common/processors/normalize.h +++ b/fastdeploy/vision/common/processors/normalize.h @@ -25,7 +25,7 @@ class FASTDEPLOY_DECL Normalize : public Processor { const std::vector& min = std::vector(), const std::vector& max = std::vector()); bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "Normalize"; } @@ -45,9 +45,10 @@ class FASTDEPLOY_DECL Normalize : public Processor { const std::vector& min = std::vector(), const std::vector& max = std::vector(), ProcLib lib = ProcLib::OPENCV); + private: std::vector alpha_; std::vector beta_; }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/normalize_and_permute.cc b/fastdeploy/vision/common/processors/normalize_and_permute.cc index 76df4c26394..64daf078373 100644 --- a/fastdeploy/vision/common/processors/normalize_and_permute.cc +++ b/fastdeploy/vision/common/processors/normalize_and_permute.cc @@ -73,7 +73,7 @@ bool NormalizeAndPermute::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool NormalizeAndPermute::ImplByFalconCV(Mat* mat) { if (mat->layout != Layout::HWC) { FDERROR << "Only supports input with HWC layout." << std::endl; diff --git a/fastdeploy/vision/common/processors/normalize_and_permute.h b/fastdeploy/vision/common/processors/normalize_and_permute.h index 153ad99e883..75fbd0c328b 100644 --- a/fastdeploy/vision/common/processors/normalize_and_permute.h +++ b/fastdeploy/vision/common/processors/normalize_and_permute.h @@ -20,12 +20,13 @@ namespace fastdeploy { namespace vision { class FASTDEPLOY_DECL NormalizeAndPermute : public Processor { public: - NormalizeAndPermute(const std::vector& mean, const std::vector& std, + NormalizeAndPermute(const std::vector& mean, + const std::vector& std, bool is_scale = true, const std::vector& min = std::vector(), const std::vector& max = std::vector()); bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "NormalizeAndPermute"; } @@ -45,9 +46,10 @@ class FASTDEPLOY_DECL NormalizeAndPermute : public Processor { const std::vector& min = std::vector(), const std::vector& max = std::vector(), ProcLib lib = ProcLib::OPENCV); + private: std::vector alpha_; std::vector beta_; }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/pad.cc b/fastdeploy/vision/common/processors/pad.cc index 383880d1a2c..14a9849fae7 100644 --- a/fastdeploy/vision/common/processors/pad.cc +++ b/fastdeploy/vision/common/processors/pad.cc @@ -52,7 +52,7 @@ bool Pad::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool Pad::ImplByFalconCV(Mat* mat) { if (mat->layout != Layout::HWC) { FDERROR << "Pad: The input data must be Layout::HWC format!" << std::endl; diff --git a/fastdeploy/vision/common/processors/pad.h b/fastdeploy/vision/common/processors/pad.h index 4177ac80245..5405564ec46 100644 --- a/fastdeploy/vision/common/processors/pad.h +++ b/fastdeploy/vision/common/processors/pad.h @@ -30,7 +30,7 @@ class FASTDEPLOY_DECL Pad : public Processor { value_ = value; } bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "Pad"; } @@ -46,5 +46,5 @@ class FASTDEPLOY_DECL Pad : public Processor { int right_; std::vector value_; }; -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/pad_to_size.cc b/fastdeploy/vision/common/processors/pad_to_size.cc index eadf063ed32..a8ad563ad3d 100644 --- a/fastdeploy/vision/common/processors/pad_to_size.cc +++ b/fastdeploy/vision/common/processors/pad_to_size.cc @@ -75,7 +75,7 @@ bool PadToSize::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool PadToSize::ImplByFalconCV(Mat* mat) { if (width_ == -1 || height_ == -1) { return true; diff --git a/fastdeploy/vision/common/processors/pad_to_size.h b/fastdeploy/vision/common/processors/pad_to_size.h index c2008fd92c4..4a0b12fb9c3 100644 --- a/fastdeploy/vision/common/processors/pad_to_size.h +++ b/fastdeploy/vision/common/processors/pad_to_size.h @@ -28,7 +28,7 @@ class PadToSize : public Processor { value_ = value; } bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "PadToSize"; } diff --git a/fastdeploy/vision/common/processors/resize.cc b/fastdeploy/vision/common/processors/resize.cc index 4cad5ee00ab..9f8aa06b623 100644 --- a/fastdeploy/vision/common/processors/resize.cc +++ b/fastdeploy/vision/common/processors/resize.cc @@ -54,7 +54,7 @@ bool Resize::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool Resize::ImplByFalconCV(Mat* mat) { if (mat->layout != Layout::HWC) { FDERROR << "Resize: The format of input is not HWC." << std::endl; diff --git a/fastdeploy/vision/common/processors/resize.h b/fastdeploy/vision/common/processors/resize.h index affd8193eaa..2b4cc4a4619 100644 --- a/fastdeploy/vision/common/processors/resize.h +++ b/fastdeploy/vision/common/processors/resize.h @@ -32,7 +32,7 @@ class Resize : public Processor { } bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "Resize"; } diff --git a/fastdeploy/vision/common/processors/resize_by_short.cc b/fastdeploy/vision/common/processors/resize_by_short.cc index 339b1338c66..2fe60b9ee88 100644 --- a/fastdeploy/vision/common/processors/resize_by_short.cc +++ b/fastdeploy/vision/common/processors/resize_by_short.cc @@ -36,7 +36,7 @@ bool ResizeByShort::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ResizeByShort::ImplByFalconCV(Mat* mat) { fcv::Mat* im = mat->GetFalconCVMat(); int origin_w = im->width(); diff --git a/fastdeploy/vision/common/processors/resize_by_short.h b/fastdeploy/vision/common/processors/resize_by_short.h index a745bdaec62..e2995b7258b 100644 --- a/fastdeploy/vision/common/processors/resize_by_short.h +++ b/fastdeploy/vision/common/processors/resize_by_short.h @@ -29,7 +29,7 @@ class ResizeByShort : public Processor { use_scale_ = use_scale; } bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "ResizeByShort"; } diff --git a/fastdeploy/vision/common/processors/stride_pad.cc b/fastdeploy/vision/common/processors/stride_pad.cc index 73f7cb5480a..f6b82fedadd 100644 --- a/fastdeploy/vision/common/processors/stride_pad.cc +++ b/fastdeploy/vision/common/processors/stride_pad.cc @@ -63,7 +63,7 @@ bool StridePad::ImplByOpenCV(Mat* mat) { return true; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool StridePad::ImplByFalconCV(Mat* mat) { if (mat->layout != Layout::HWC) { FDERROR << "StridePad: The input data must be Layout::HWC format!" diff --git a/fastdeploy/vision/common/processors/stride_pad.h b/fastdeploy/vision/common/processors/stride_pad.h index 2b22beffec0..be8f5dfaab8 100644 --- a/fastdeploy/vision/common/processors/stride_pad.h +++ b/fastdeploy/vision/common/processors/stride_pad.h @@ -27,7 +27,7 @@ class StridePad : public Processor { value_ = value; } bool ImplByOpenCV(Mat* mat); -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV bool ImplByFalconCV(Mat* mat); #endif std::string Name() { return "StridePad"; } diff --git a/fastdeploy/vision/common/processors/utils.cc b/fastdeploy/vision/common/processors/utils.cc index ce0097bfc8a..4e5373ef201 100644 --- a/fastdeploy/vision/common/processors/utils.cc +++ b/fastdeploy/vision/common/processors/utils.cc @@ -41,7 +41,7 @@ FDDataType OpenCVDataTypeToFD(int type) { } } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV FDDataType FalconCVDataTypeToFD(fcv::FCVImageType type) { if (type == fcv::FCVImageType::GRAY_U8) { return FDDataType::UINT8; diff --git a/fastdeploy/vision/common/processors/utils.h b/fastdeploy/vision/common/processors/utils.h index 191f358ae68..57c1309e7fa 100644 --- a/fastdeploy/vision/common/processors/utils.h +++ b/fastdeploy/vision/common/processors/utils.h @@ -18,8 +18,8 @@ #include "opencv2/core/core.hpp" #include "fastdeploy/core/fd_tensor.h" -#ifdef ENABLE_FALCONCV -#include "falconcv.h" +#ifdef ENABLE_FLYCV +#include "flycv.h" // NOLINT #endif namespace fastdeploy { @@ -28,14 +28,14 @@ namespace vision { // Convert data type of opencv to FDDataType FDDataType OpenCVDataTypeToFD(int type); -#ifdef ENABLE_FALCONCV -// Convert data type of falconcv to FDDataType +#ifdef ENABLE_FLYCV +// Convert data type of flycv to FDDataType FDDataType FalconCVDataTypeToFD(fcv::FCVImageType type); -// Create data type of falconcv by FDDataType +// Create data type of flycv by FDDataType fcv::FCVImageType CreateFalconCVDataType(FDDataType type, int channel = 1); // Convert cv::Mat to fcv::Mat fcv::Mat ConvertOpenCVMatToFalconCV(cv::Mat& im); #endif -} // namespace vision -} // namespace fastdeploy +} // namespace vision +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_cast.cc b/tests/vision_preprocess/test_vision_cast.cc index 6f20c468de5..aa4f7f89015 100644 --- a/tests/vision_preprocess/test_vision_cast.cc +++ b/tests/vision_preprocess/test_vision_cast.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_cast) { CheckShape check_shape; CheckData check_data; @@ -34,7 +34,7 @@ TEST(fastdeploy, falconcv_cast) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; diff --git a/tests/vision_preprocess/test_vision_center_crop.cc b/tests/vision_preprocess/test_vision_center_crop.cc index 852f7607f9c..67cbe274c1c 100644 --- a/tests/vision_preprocess/test_vision_center_crop.cc +++ b/tests/vision_preprocess/test_vision_center_crop.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_center_crop1) { CheckShape check_shape; CheckData check_data; @@ -34,9 +34,9 @@ TEST(fastdeploy, falconcv_center_crop1) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); vision::CenterCrop::Run(&mat_opencv, 20, 20, vision::ProcLib::OPENCV); - vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FALCONCV); + vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -61,7 +61,7 @@ TEST(fastdeploy, falconcv_center_crop2) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::CenterCrop::Run(&mat_opencv, 20, 20, vision::ProcLib::OPENCV); - vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FALCONCV); + vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; diff --git a/tests/vision_preprocess/test_vision_colorspace_convert.cc b/tests/vision_preprocess/test_vision_colorspace_convert.cc index 0261940be07..545a40ffd5a 100644 --- a/tests/vision_preprocess/test_vision_colorspace_convert.cc +++ b/tests/vision_preprocess/test_vision_colorspace_convert.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_bgr2rgb) { CheckShape check_shape; CheckData check_data; @@ -34,7 +34,7 @@ TEST(fastdeploy, falconcv_bgr2rgb) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::BGR2RGB::Run(&mat_opencv, vision::ProcLib::OPENCV); - vision::BGR2RGB::Run(&mat_falconcv, vision::ProcLib::FALCONCV); + vision::BGR2RGB::Run(&mat_falconcv, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -59,7 +59,7 @@ TEST(fastdeploy, falconcv_rgb2bgr) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::RGB2BGR::Run(&mat_opencv, vision::ProcLib::OPENCV); - vision::RGB2BGR::Run(&mat_falconcv, vision::ProcLib::FALCONCV); + vision::RGB2BGR::Run(&mat_falconcv, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; diff --git a/tests/vision_preprocess/test_vision_convert.cc b/tests/vision_preprocess/test_vision_convert.cc index afb1d00d486..a2adf03679d 100644 --- a/tests/vision_preprocess/test_vision_convert.cc +++ b/tests/vision_preprocess/test_vision_convert.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_convert1) { CheckShape check_shape; CheckData check_data; @@ -37,7 +37,7 @@ TEST(fastdeploy, falconcv_convert1) { std::vector alpha({0.1, 0.2, 0.3}); std::vector beta({0.24, 0.77, 0.32}); vision::Convert::Run(&mat_opencv, alpha, beta, vision::ProcLib::OPENCV); - vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FALCONCV); + vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -65,9 +65,9 @@ TEST(fastdeploy, falconcv_convert2) { std::vector alpha({0.1, 0.2, 0.3}); std::vector beta({0.24, 0.77, 0.32}); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); vision::Convert::Run(&mat_opencv, alpha, beta, vision::ProcLib::OPENCV); - vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FALCONCV); + vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; diff --git a/tests/vision_preprocess/test_vision_crop.cc b/tests/vision_preprocess/test_vision_crop.cc index 02d8f329d06..e352d1cf753 100644 --- a/tests/vision_preprocess/test_vision_crop.cc +++ b/tests/vision_preprocess/test_vision_crop.cc @@ -21,8 +21,8 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV -TEST(fastdeploy, falconcv_crop1) { +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_crop1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,46 +32,46 @@ TEST(fastdeploy, falconcv_crop1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); vision::Crop::Run(&mat_opencv, 4, 8, 20, 20, vision::ProcLib::OPENCV); - vision::Crop::Run(&mat_falconcv, 4, 8, 20, 20, vision::ProcLib::FALCONCV); + vision::Crop::Run(&mat_flycv, 4, 8, 20, 20, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_center_crop2) { +TEST(fastdeploy, flycv_center_crop2) { CheckShape check_shape; CheckData check_data; CheckType check_type; - cv::Mat mat(64, 64, CV_8UC3); + cv::Mat mat(70, 60, CV_8UC3); cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); - vision::Crop::Run(&mat_opencv, 10, 11, 20, 20, vision::ProcLib::OPENCV); - vision::Crop::Run(&mat_falconcv, 10, 11, 20, 20, vision::ProcLib::FALCONCV); + vision::Mat mat_flycv(mat1); + vision::Crop::Run(&mat_opencv, 9, 16, 13, 23, vision::ProcLib::OPENCV); + vision::Crop::Run(&mat_flycv, 9, 16, 13, 23, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_hwc2chw.cc b/tests/vision_preprocess/test_vision_hwc2chw.cc index 7e589c479d5..e3edab8b815 100644 --- a/tests/vision_preprocess/test_vision_hwc2chw.cc +++ b/tests/vision_preprocess/test_vision_hwc2chw.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_hwc2chw1) { CheckShape check_shape; CheckData check_data; @@ -34,9 +34,9 @@ TEST(fastdeploy, falconcv_hwc2chw1) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); - vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FALCONCV); + vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -61,7 +61,7 @@ TEST(fastdeploy, falconcv_hwc2chw1) { // vision::Mat mat_opencv(mat); // vision::Mat mat_falconcv(mat1); // vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); -// vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FALCONCV); +// vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FLYCV); // // FDTensor opencv; // FDTensor falconcv; diff --git a/tests/vision_preprocess/test_vision_limit_stride.cc b/tests/vision_preprocess/test_vision_limit_stride.cc index 727d360fbc5..0a6a1abd425 100644 --- a/tests/vision_preprocess/test_vision_limit_stride.cc +++ b/tests/vision_preprocess/test_vision_limit_stride.cc @@ -21,8 +21,8 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV -TEST(fastdeploy, falconcv_limit_stride1) { +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_limit_stride1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,21 +32,69 @@ TEST(fastdeploy, falconcv_limit_stride1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); - vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); - vision::LimitByStride::Run(&mat_opencv, 32, 2, vision::ProcLib::OPENCV); - vision::LimitByStride::Run(&mat_falconcv, 32, 2, vision::ProcLib::FALCONCV); + vision::Mat mat_flycv(mat1); +// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); +// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); + vision::LimitByStride::Run(&mat_opencv, 32, 1, vision::ProcLib::OPENCV); + vision::LimitByStride::Run(&mat_flycv, 32, 1, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); -// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + + uint8_t* ptr0 = static_cast(mat_opencv.Data()); + uint8_t* ptr1 = static_cast(mat_flycv.Data()); + for (int i = 0; i < 32 * 32 * 3; ++i) { + if (fabs(ptr0[i] - ptr1[i]) > 1) { + std::cout << "======= " << i << " " << int(ptr0[i]) << " " << int(ptr1[i]) << std::endl; + ASSERT_EQ(1, 0); + break; + } + } + + +// std::vector data0(35 * 35 * 3, 0); +// std::vector data1(35 * 35 * 3, 0); +// for (size_t i = 0; i < 35 * 35 * 3; ++i) { +// data0[i] = static_cast(rand() % 255); +// data1[i] = data0[i]; +// } +// +// fcv::Mat mat_flycv(35, 35, fcv::FCVImageType::PACKAGE_BGR_U8, data0.data()); +// cv::Mat mat_opencv(35, 35, CV_8UC3, data1.data()); +// +// cv::Mat new_im0; +// cv::resize(mat_opencv, new_im0, cv::Size(32, 32), 0, 0, 1); +// +// fcv::Mat new_im1; +// fcv::resize(mat_flycv, new_im1, fcv::Size(32, 32), 0, 0, fcv::InterpolationType::INTER_LINEAR); +// +// uint8_t* ptr0 = static_cast(new_im0.ptr()); +// uint8_t* ptr1 = static_cast(new_im1.data()); +// for (int i = 0; i < 32 * 32 * 3; ++i) { +// if (fabs(ptr0[i] - ptr1[i]) > 1) { +// std::cout << "======= " << i << " " << int(ptr0[i]) << " " << int(ptr1[i]) << std::endl; +// ASSERT_EQ(1, 0); +// break; +// } +// } +// check_data(reinterpret_cast(mat_flycv.data()), reinterpret_cast(mat_opencv.ptr()), 35 * 35 * 3); +// check_data(reinterpret_cast(new_im1.data()), reinterpret_cast(new_im0.ptr()), 32 * 32 * 3); + +// FDTensor opencv; +// FDTensor flycv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_flycv.ShareWithTensor(&flycv); +// +// check_shape(opencv.shape, flycv.shape); +//// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); +// check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_normalize.cc b/tests/vision_preprocess/test_vision_normalize.cc index ff1e94ce7e9..345086225fd 100644 --- a/tests/vision_preprocess/test_vision_normalize.cc +++ b/tests/vision_preprocess/test_vision_normalize.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_norm1) { CheckShape check_shape; CheckData check_data; @@ -39,7 +39,7 @@ TEST(fastdeploy, falconcv_norm1) { std::vector min; std::vector max; vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -69,7 +69,7 @@ TEST(fastdeploy, falconcv_norm2) { std::vector min({1, 2, 3}); std::vector max({300, 400, 500}); vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -99,7 +99,7 @@ TEST(fastdeploy, falconcv_norm3) { std::vector min({1, 2, 3}); std::vector max({300, 400, 500}); vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; diff --git a/tests/vision_preprocess/test_vision_normalize_and_permute.cc b/tests/vision_preprocess/test_vision_normalize_and_permute.cc index 30a7be9fce7..e5f7bdbe207 100644 --- a/tests/vision_preprocess/test_vision_normalize_and_permute.cc +++ b/tests/vision_preprocess/test_vision_normalize_and_permute.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_norm_and_perm0) { CheckShape check_shape; CheckData check_data; @@ -45,7 +45,7 @@ TEST(fastdeploy, falconcv_norm_and_perm0) { vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); vision::NormalizeAndPermute::Run(&mat_opencv1, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::NormalizeAndPermute::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FALCONCV); + vision::NormalizeAndPermute::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor opencv1; diff --git a/tests/vision_preprocess/test_vision_pad.cc b/tests/vision_preprocess/test_vision_pad.cc index 85d5bf890ec..b1a721da9a5 100644 --- a/tests/vision_preprocess/test_vision_pad.cc +++ b/tests/vision_preprocess/test_vision_pad.cc @@ -21,7 +21,7 @@ namespace fastdeploy { -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV TEST(fastdeploy, falconcv_pad1) { CheckShape check_shape; CheckData check_data; @@ -34,9 +34,9 @@ TEST(fastdeploy, falconcv_pad1) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FALCONCV); + vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); vision::Pad::Run(&mat_opencv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::OPENCV); - vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FALCONCV); + vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; @@ -61,7 +61,7 @@ TEST(fastdeploy, falconcv_pad2) { vision::Mat mat_opencv(mat); vision::Mat mat_falconcv(mat1); vision::Pad::Run(&mat_opencv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::OPENCV); - vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FALCONCV); + vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor falconcv; From d4c6e57ed5c5cff2a50328bea27e6bfdb76b0b3c Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Fri, 21 Oct 2022 18:13:30 +0800 Subject: [PATCH 06/16] Fix some name --- fastdeploy/vision/common/processors/mat.h | 4 +- tests/vision_preprocess/test_vision_cast.cc | 16 +++---- .../test_vision_center_crop.cc | 34 ++++++------- .../test_vision_colorspace_convert.cc | 32 ++++++------- .../vision_preprocess/test_vision_convert.cc | 34 ++++++------- .../vision_preprocess/test_vision_hwc2chw.cc | 34 ++++++------- .../test_vision_limit_stride.cc | 2 +- .../test_vision_normalize.cc | 48 +++++++++---------- .../test_vision_normalize_and_permute.cc | 18 +++---- tests/vision_preprocess/test_vision_pad.cc | 34 ++++++------- 10 files changed, 128 insertions(+), 128 deletions(-) diff --git a/fastdeploy/vision/common/processors/mat.h b/fastdeploy/vision/common/processors/mat.h index 2793042c390..84dd219ef02 100644 --- a/fastdeploy/vision/common/processors/mat.h +++ b/fastdeploy/vision/common/processors/mat.h @@ -52,10 +52,10 @@ struct FASTDEPLOY_DECL Mat { return &cpu_mat; } -#ifdef ENABLE_FALCONCV +#ifdef ENABLE_FLYCV void SetMat(const fcv::Mat& mat) { fcv_mat = mat; - mat_type = Proclib::FALCONCV; + mat_type = ProcLib::FLYCV; } inline fcv::Mat* GetFalconCVMat() { diff --git a/tests/vision_preprocess/test_vision_cast.cc b/tests/vision_preprocess/test_vision_cast.cc index aa4f7f89015..55215811e05 100644 --- a/tests/vision_preprocess/test_vision_cast.cc +++ b/tests/vision_preprocess/test_vision_cast.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_cast) { +TEST(fastdeploy, flycv_cast) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,19 +32,19 @@ TEST(fastdeploy, falconcv_cast) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_center_crop.cc b/tests/vision_preprocess/test_vision_center_crop.cc index 67cbe274c1c..dd2f3dc13e2 100644 --- a/tests/vision_preprocess/test_vision_center_crop.cc +++ b/tests/vision_preprocess/test_vision_center_crop.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_center_crop1) { +TEST(fastdeploy, flycv_center_crop1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,24 +32,24 @@ TEST(fastdeploy, falconcv_center_crop1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); vision::CenterCrop::Run(&mat_opencv, 20, 20, vision::ProcLib::OPENCV); - vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FLYCV); + vision::CenterCrop::Run(&mat_flycv, 20, 20, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_center_crop2) { +TEST(fastdeploy, flycv_center_crop2) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -59,19 +59,19 @@ TEST(fastdeploy, falconcv_center_crop2) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::CenterCrop::Run(&mat_opencv, 20, 20, vision::ProcLib::OPENCV); - vision::CenterCrop::Run(&mat_falconcv, 20, 20, vision::ProcLib::FLYCV); + vision::CenterCrop::Run(&mat_flycv, 20, 20, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_colorspace_convert.cc b/tests/vision_preprocess/test_vision_colorspace_convert.cc index 545a40ffd5a..f1253d959ca 100644 --- a/tests/vision_preprocess/test_vision_colorspace_convert.cc +++ b/tests/vision_preprocess/test_vision_colorspace_convert.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_bgr2rgb) { +TEST(fastdeploy, flycv_bgr2rgb) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,22 +32,22 @@ TEST(fastdeploy, falconcv_bgr2rgb) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::BGR2RGB::Run(&mat_opencv, vision::ProcLib::OPENCV); - vision::BGR2RGB::Run(&mat_falconcv, vision::ProcLib::FLYCV); + vision::BGR2RGB::Run(&mat_flycv, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_rgb2bgr) { +TEST(fastdeploy, flycv_rgb2bgr) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -57,19 +57,19 @@ TEST(fastdeploy, falconcv_rgb2bgr) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::RGB2BGR::Run(&mat_opencv, vision::ProcLib::OPENCV); - vision::RGB2BGR::Run(&mat_falconcv, vision::ProcLib::FLYCV); + vision::RGB2BGR::Run(&mat_flycv, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_convert.cc b/tests/vision_preprocess/test_vision_convert.cc index a2adf03679d..25ffe4b1989 100644 --- a/tests/vision_preprocess/test_vision_convert.cc +++ b/tests/vision_preprocess/test_vision_convert.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_convert1) { +TEST(fastdeploy, flycv_convert1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,25 +32,25 @@ TEST(fastdeploy, falconcv_convert1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); std::vector alpha({0.1, 0.2, 0.3}); std::vector beta({0.24, 0.77, 0.32}); vision::Convert::Run(&mat_opencv, alpha, beta, vision::ProcLib::OPENCV); - vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FLYCV); + vision::Convert::Run(&mat_flycv, alpha, beta, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_convert2) { +TEST(fastdeploy, flycv_convert2) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -60,24 +60,24 @@ TEST(fastdeploy, falconcv_convert2) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); std::vector alpha({0.1, 0.2, 0.3}); std::vector beta({0.24, 0.77, 0.32}); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); vision::Convert::Run(&mat_opencv, alpha, beta, vision::ProcLib::OPENCV); - vision::Convert::Run(&mat_falconcv, alpha, beta, vision::ProcLib::FLYCV); + vision::Convert::Run(&mat_flycv, alpha, beta, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_hwc2chw.cc b/tests/vision_preprocess/test_vision_hwc2chw.cc index e3edab8b815..c5fe98c714c 100644 --- a/tests/vision_preprocess/test_vision_hwc2chw.cc +++ b/tests/vision_preprocess/test_vision_hwc2chw.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_hwc2chw1) { +TEST(fastdeploy, flycv_hwc2chw1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,24 +32,24 @@ TEST(fastdeploy, falconcv_hwc2chw1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); - vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FLYCV); + vision::HWC2CHW::Run(&mat_flycv, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -//TEST(fastdeploy, falconcv_hwc2chw2) { +//TEST(fastdeploy, flycv_hwc2chw2) { // CheckShape check_shape; // CheckData check_data; // CheckType check_type; @@ -59,19 +59,19 @@ TEST(fastdeploy, falconcv_hwc2chw1) { // cv::Mat mat1 = mat.clone(); // // vision::Mat mat_opencv(mat); -// vision::Mat mat_falconcv(mat1); +// vision::Mat mat_flycv(mat1); // vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); -// vision::HWC2CHW::Run(&mat_falconcv, vision::ProcLib::FLYCV); +// vision::HWC2CHW::Run(&mat_flycv, vision::ProcLib::FLYCV); // // FDTensor opencv; -// FDTensor falconcv; +// FDTensor flycv; // // mat_opencv.ShareWithTensor(&opencv); -// mat_falconcv.ShareWithTensor(&falconcv); +// mat_flycv.ShareWithTensor(&flycv); // -// check_shape(opencv.shape, falconcv.shape); -// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); -// check_type(opencv.dtype, falconcv.dtype); +// check_shape(opencv.shape, flycv.shape); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); +// check_type(opencv.dtype, flycv.dtype); //} #endif diff --git a/tests/vision_preprocess/test_vision_limit_stride.cc b/tests/vision_preprocess/test_vision_limit_stride.cc index 0a6a1abd425..0d1f0337387 100644 --- a/tests/vision_preprocess/test_vision_limit_stride.cc +++ b/tests/vision_preprocess/test_vision_limit_stride.cc @@ -50,7 +50,7 @@ TEST(fastdeploy, flycv_limit_stride1) { uint8_t* ptr0 = static_cast(mat_opencv.Data()); uint8_t* ptr1 = static_cast(mat_flycv.Data()); for (int i = 0; i < 32 * 32 * 3; ++i) { - if (fabs(ptr0[i] - ptr1[i]) > 1) { + if (fabs(ptr0[i] - ptr1[i]) > 0) { std::cout << "======= " << i << " " << int(ptr0[i]) << " " << int(ptr1[i]) << std::endl; ASSERT_EQ(1, 0); break; diff --git a/tests/vision_preprocess/test_vision_normalize.cc b/tests/vision_preprocess/test_vision_normalize.cc index 345086225fd..44f5e19b4d5 100644 --- a/tests/vision_preprocess/test_vision_normalize.cc +++ b/tests/vision_preprocess/test_vision_normalize.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_norm1) { +TEST(fastdeploy, flycv_norm1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,27 +32,27 @@ TEST(fastdeploy, falconcv_norm1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); std::vector mean({0.25, 0.35, 0.45}); std::vector std({0.33, 0.22, 0.54}); std::vector min; std::vector max; vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); + vision::Normalize::Run(&mat_flycv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_norm2) { +TEST(fastdeploy, flycv_norm2) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -62,27 +62,27 @@ TEST(fastdeploy, falconcv_norm2) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); std::vector mean({0.25, 0.35, 0.45}); std::vector std({0.33, 0.22, 0.54}); std::vector min({1, 2, 3}); std::vector max({300, 400, 500}); vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); + vision::Normalize::Run(&mat_flycv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_norm3) { +TEST(fastdeploy, flycv_norm3) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -92,24 +92,24 @@ TEST(fastdeploy, falconcv_norm3) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); std::vector mean({0.25, 0.35, 0.45}); std::vector std({0.33, 0.22, 0.54}); std::vector min({1, 2, 3}); std::vector max({300, 400, 500}); vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::Normalize::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); + vision::Normalize::Run(&mat_flycv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_normalize_and_permute.cc b/tests/vision_preprocess/test_vision_normalize_and_permute.cc index e5f7bdbe207..3fefe73c4f2 100644 --- a/tests/vision_preprocess/test_vision_normalize_and_permute.cc +++ b/tests/vision_preprocess/test_vision_normalize_and_permute.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_norm_and_perm0) { +TEST(fastdeploy, flycv_norm_and_perm0) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -39,26 +39,26 @@ TEST(fastdeploy, falconcv_norm_and_perm0) { vision::Mat mat_opencv(mat); vision::Mat mat_opencv1(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Normalize::Run(&mat_opencv, mean, std, true, min, max, vision::ProcLib::OPENCV); vision::HWC2CHW::Run(&mat_opencv, vision::ProcLib::OPENCV); vision::NormalizeAndPermute::Run(&mat_opencv1, mean, std, true, min, max, vision::ProcLib::OPENCV); - vision::NormalizeAndPermute::Run(&mat_falconcv, mean, std, true, min, max, vision::ProcLib::FLYCV); + vision::NormalizeAndPermute::Run(&mat_flycv, mean, std, true, min, max, vision::ProcLib::FLYCV); FDTensor opencv; FDTensor opencv1; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); mat_opencv1.ShareWithTensor(&opencv1); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_data(reinterpret_cast(opencv1.Data()), reinterpret_cast(falconcv.Data()), opencv1.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_data(reinterpret_cast(opencv1.Data()), reinterpret_cast(flycv.Data()), opencv1.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif diff --git a/tests/vision_preprocess/test_vision_pad.cc b/tests/vision_preprocess/test_vision_pad.cc index b1a721da9a5..2362462b412 100644 --- a/tests/vision_preprocess/test_vision_pad.cc +++ b/tests/vision_preprocess/test_vision_pad.cc @@ -22,7 +22,7 @@ namespace fastdeploy { #ifdef ENABLE_FLYCV -TEST(fastdeploy, falconcv_pad1) { +TEST(fastdeploy, flycv_pad1) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -32,24 +32,24 @@ TEST(fastdeploy, falconcv_pad1) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); - vision::Cast::Run(&mat_falconcv, "float", vision::ProcLib::FLYCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); vision::Pad::Run(&mat_opencv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::OPENCV); - vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FLYCV); + vision::Pad::Run(&mat_flycv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } -TEST(fastdeploy, falconcv_pad2) { +TEST(fastdeploy, flycv_pad2) { CheckShape check_shape; CheckData check_data; CheckType check_type; @@ -59,19 +59,19 @@ TEST(fastdeploy, falconcv_pad2) { cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); - vision::Mat mat_falconcv(mat1); + vision::Mat mat_flycv(mat1); vision::Pad::Run(&mat_opencv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::OPENCV); - vision::Pad::Run(&mat_falconcv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FLYCV); + vision::Pad::Run(&mat_flycv, 1, 2, 3, 4, {1, 2, 3}, vision::ProcLib::FLYCV); FDTensor opencv; - FDTensor falconcv; + FDTensor flycv; mat_opencv.ShareWithTensor(&opencv); - mat_falconcv.ShareWithTensor(&falconcv); + mat_flycv.ShareWithTensor(&flycv); - check_shape(opencv.shape, falconcv.shape); - check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(falconcv.Data()), opencv.Numel()); - check_type(opencv.dtype, falconcv.dtype); + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); } #endif From 9e8ab293854f4e1019ca49affb21d52e24553bf4 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Mon, 24 Oct 2022 19:33:14 +0800 Subject: [PATCH 07/16] fix some bug --- .../common/processors/limit_by_stride.cc | 4 +- .../vision/common/processors/limit_long.cc | 4 +- .../vision/common/processors/limit_long.h | 2 +- fastdeploy/vision/common/processors/pad.cc | 2 +- .../vision/common/processors/pad_to_size.cc | 3 +- .../vision/common/processors/pad_to_size.h | 2 +- fastdeploy/vision/common/processors/resize.cc | 1 - fastdeploy/vision/common/processors/resize.h | 2 +- .../common/processors/resize_by_short.h | 2 +- .../vision/common/processors/stride_pad.cc | 2 +- .../vision/common/processors/stride_pad.h | 2 +- tests/gtest_utils.h | 22 +++- .../test_vision_limit_long.cc | 108 +++++++++++++++++ .../test_vision_limit_stride.cc | 110 +++++++++++------- .../test_vision_pad_to_size.cc | 78 +++++++++++++ tests/vision_preprocess/test_vision_resize.cc | 104 +++++++++++++++++ .../test_vision_resize_by_short.cc | 104 +++++++++++++++++ .../test_vision_stride_pad.cc | 78 +++++++++++++ 18 files changed, 575 insertions(+), 55 deletions(-) create mode 100644 tests/vision_preprocess/test_vision_limit_long.cc create mode 100644 tests/vision_preprocess/test_vision_pad_to_size.cc create mode 100644 tests/vision_preprocess/test_vision_resize.cc create mode 100644 tests/vision_preprocess/test_vision_resize_by_short.cc create mode 100644 tests/vision_preprocess/test_vision_stride_pad.cc diff --git a/fastdeploy/vision/common/processors/limit_by_stride.cc b/fastdeploy/vision/common/processors/limit_by_stride.cc index 3a137eb8c00..85f3088b804 100644 --- a/fastdeploy/vision/common/processors/limit_by_stride.cc +++ b/fastdeploy/vision/common/processors/limit_by_stride.cc @@ -50,7 +50,7 @@ bool LimitByStride::ImplByFalconCV(Mat* mat) { if (rh == 0) { rh = stride_; } - if (rw != origin_w || rh != origin_w) { + if (rw != origin_w || rh != origin_h) { auto interp_method = fcv::InterpolationType::INTER_LINEAR; if (interp_ == 0) { interp_method = fcv::InterpolationType::INTER_NEAREST; @@ -66,7 +66,9 @@ bool LimitByStride::ImplByFalconCV(Mat* mat) { } fcv::Mat new_im; + FDERROR << "Before " << im->width() << " " << im->height() << std::endl; fcv::resize(*im, new_im, fcv::Size(rw, rh), 0, 0, interp_method); + FDERROR << "After " << new_im.width() << " " << new_im.height() << std::endl; mat->SetMat(new_im); mat->SetWidth(new_im.width()); mat->SetHeight(new_im.height()); diff --git a/fastdeploy/vision/common/processors/limit_long.cc b/fastdeploy/vision/common/processors/limit_long.cc index 786b4eea04f..a77bcb03bdc 100644 --- a/fastdeploy/vision/common/processors/limit_long.cc +++ b/fastdeploy/vision/common/processors/limit_long.cc @@ -56,7 +56,6 @@ bool LimitLong::ImplByFalconCV(Mat* mat) { if (fabs(scale - 1.0) < 1e-06) { return true; } - auto interp_method = fcv::InterpolationType::INTER_LINEAR; if (interp_ == 0) { interp_method = fcv::InterpolationType::INTER_NEAREST; @@ -71,7 +70,10 @@ bool LimitLong::ImplByFalconCV(Mat* mat) { return false; } fcv::Mat new_im; + FDERROR << "origin " << im->width() << " " << im->height() << std::endl; + FDERROR << "scale " << scale << std::endl; fcv::resize(*im, new_im, fcv::Size(), scale, scale, interp_method); + FDERROR << "after " << new_im.width() << " " << new_im.height() << std::endl; mat->SetMat(new_im); mat->SetWidth(new_im.width()); mat->SetHeight(new_im.height()); diff --git a/fastdeploy/vision/common/processors/limit_long.h b/fastdeploy/vision/common/processors/limit_long.h index f8f22750500..af84be2a5b4 100644 --- a/fastdeploy/vision/common/processors/limit_long.h +++ b/fastdeploy/vision/common/processors/limit_long.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class LimitLong : public Processor { +class FASTDEPLOY_DECL LimitLong : public Processor { public: explicit LimitLong(int max_long = -1, int min_long = -1, int interp = 1) { max_long_ = max_long; diff --git a/fastdeploy/vision/common/processors/pad.cc b/fastdeploy/vision/common/processors/pad.cc index 14a9849fae7..7352356d027 100644 --- a/fastdeploy/vision/common/processors/pad.cc +++ b/fastdeploy/vision/common/processors/pad.cc @@ -83,7 +83,7 @@ bool Pad::ImplByFalconCV(Mat* mat) { } fcv::Mat new_im; fcv::copy_make_border(*im, new_im, top_, bottom_, left_, right_, - fcv::FcvBorderTypes::BORDER_CONSTANT, value); + fcv::BorderTypes::BORDER_CONSTANT, value); mat->SetMat(new_im); mat->SetHeight(new_im.height()); mat->SetWidth(new_im.width()); diff --git a/fastdeploy/vision/common/processors/pad_to_size.cc b/fastdeploy/vision/common/processors/pad_to_size.cc index a8ad563ad3d..5956953e044 100644 --- a/fastdeploy/vision/common/processors/pad_to_size.cc +++ b/fastdeploy/vision/common/processors/pad_to_size.cc @@ -129,7 +129,8 @@ bool PadToSize::ImplByFalconCV(Mat* mat) { fcv::Mat new_im; // top, bottom, left, right fcv::copy_make_border(*im, new_im, 0, height_ - origin_h, 0, width_ - origin_w, - fcv::FcvBorderTypes::BORDER_CONSTANT, value); + fcv::BorderTypes::BORDER_CONSTANT, value); + mat->SetMat(new_im); mat->SetHeight(height_); mat->SetWidth(width_); return true; diff --git a/fastdeploy/vision/common/processors/pad_to_size.h b/fastdeploy/vision/common/processors/pad_to_size.h index 4a0b12fb9c3..dff81108915 100644 --- a/fastdeploy/vision/common/processors/pad_to_size.h +++ b/fastdeploy/vision/common/processors/pad_to_size.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class PadToSize : public Processor { +class FASTDEPLOY_DECL PadToSize : public Processor { public: // only support pad with right-bottom padding mode PadToSize(int width, int height, const std::vector& value) { diff --git a/fastdeploy/vision/common/processors/resize.cc b/fastdeploy/vision/common/processors/resize.cc index 9f8aa06b623..eb1932abc0f 100644 --- a/fastdeploy/vision/common/processors/resize.cc +++ b/fastdeploy/vision/common/processors/resize.cc @@ -92,7 +92,6 @@ bool Resize::ImplByFalconCV(Mat* mat) { float scale_h = height_ * 1.0 / origin_h; fcv::resize(*im, new_im, fcv::Size(), scale_w, scale_h, interp_method); } else { - fcv::Mat new_im; fcv::resize(*im, new_im, fcv::Size(width_, height_), 0, 0, interp_method); } mat->SetMat(new_im); diff --git a/fastdeploy/vision/common/processors/resize.h b/fastdeploy/vision/common/processors/resize.h index 2b4cc4a4619..b20f0e468c7 100644 --- a/fastdeploy/vision/common/processors/resize.h +++ b/fastdeploy/vision/common/processors/resize.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class Resize : public Processor { +class FASTDEPLOY_DECL Resize : public Processor { public: Resize(int width, int height, float scale_w = -1.0, float scale_h = -1.0, int interp = 1, bool use_scale = false) { diff --git a/fastdeploy/vision/common/processors/resize_by_short.h b/fastdeploy/vision/common/processors/resize_by_short.h index e2995b7258b..2ea901ee39d 100644 --- a/fastdeploy/vision/common/processors/resize_by_short.h +++ b/fastdeploy/vision/common/processors/resize_by_short.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class ResizeByShort : public Processor { +class FASTDEPLOY_DECL ResizeByShort : public Processor { public: ResizeByShort(int target_size, int interp = 1, bool use_scale = true, const std::vector& max_hw = std::vector()) { diff --git a/fastdeploy/vision/common/processors/stride_pad.cc b/fastdeploy/vision/common/processors/stride_pad.cc index f6b82fedadd..4b71e34fbe2 100644 --- a/fastdeploy/vision/common/processors/stride_pad.cc +++ b/fastdeploy/vision/common/processors/stride_pad.cc @@ -105,7 +105,7 @@ bool StridePad::ImplByFalconCV(Mat* mat) { } fcv::Mat new_im; // top, bottom, left, right - fcv::copy_make_border(*im, new_im, 0, pad_h, 0, pad_w, fcv::FcvBorderTypes::BORDER_CONSTANT, value); + fcv::copy_make_border(*im, new_im, 0, pad_h, 0, pad_w, fcv::BorderTypes::BORDER_CONSTANT, value); mat->SetMat(new_im); mat->SetHeight(new_im.height()); mat->SetWidth(new_im.width()); diff --git a/fastdeploy/vision/common/processors/stride_pad.h b/fastdeploy/vision/common/processors/stride_pad.h index be8f5dfaab8..67fe692d482 100644 --- a/fastdeploy/vision/common/processors/stride_pad.h +++ b/fastdeploy/vision/common/processors/stride_pad.h @@ -19,7 +19,7 @@ namespace fastdeploy { namespace vision { -class StridePad : public Processor { +class FASTDEPLOY_DECL StridePad : public Processor { public: // only support pad with left-top padding mode StridePad(int stride, const std::vector& value) { diff --git a/tests/gtest_utils.h b/tests/gtest_utils.h index 05f3b2ad874..5dc0717b6e0 100644 --- a/tests/gtest_utils.h +++ b/tests/gtest_utils.h @@ -31,17 +31,29 @@ struct CheckShape { struct CheckData { template - void operator()(const T* lhs_ptr, const T* rhs_ptr, int num) { + void operator()(const T* lhs_ptr, const T* rhs_ptr, int num, int atol = 0) { for (int i = 0; i < num; ++i) { - ASSERT_EQ(lhs_ptr[i], rhs_ptr[i]); +// ASSERT_FLOAT_EQ(lhs_ptr[i], rhs_ptr[i]); + int abs_diff = abs(lhs_ptr[i] - rhs_ptr[i]); + if (abs_diff > atol) { + std::cout << "lhs_ptr: " << static_cast(lhs_ptr[i]) + << " rhs_ptr: " << static_cast(rhs_ptr[i]) + << " abs_diff: " << abs_diff << std::endl; + ASSERT_EQ(1, 0); + } + ASSERT_EQ(1, 1); } } - void operator()(const float* lhs_ptr, const float* rhs_ptr, int num, float atol = 1e-06, float rtol = 1e-06) { + void operator()(const float* lhs_ptr, const float* rhs_ptr, + int num, float atol = 1e-06, float rtol = 1e-06) { for (int i = 0; i < num; ++i) { float abs_diff = fabs(lhs_ptr[i] - rhs_ptr[i]); - float rel_diff = abs_diff / (std::max(fabs(lhs_ptr[i]), fabs(rhs_ptr[i])) + 1e-06); + float rel_diff = abs_diff / (std::max(fabs(lhs_ptr[i]), + fabs(rhs_ptr[i])) + 1e-06); if (abs_diff > atol && rel_diff > rtol) { - std::cout << "lhs_ptr: " << lhs_ptr[i] << " rhs_ptr: " << rhs_ptr[i] << " abs_diff: " << abs_diff << " rel_diff: " << rel_diff << std::endl; + std::cout << "lhs_ptr: " << lhs_ptr[i] << " rhs_ptr: " + << rhs_ptr[i] << " abs_diff: " << abs_diff + << " rel_diff: " << rel_diff << std::endl; ASSERT_EQ(1, 0); } ASSERT_EQ(1, 1); diff --git a/tests/vision_preprocess/test_vision_limit_long.cc b/tests/vision_preprocess/test_vision_limit_long.cc new file mode 100644 index 00000000000..33d3fcccd8e --- /dev/null +++ b/tests/vision_preprocess/test_vision_limit_long.cc @@ -0,0 +1,108 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_limit_long1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 69, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::LimitLong::Run(&mat_opencv, 38, -1, vision::ProcLib::OPENCV); + vision::LimitLong::Run(&mat_flycv, 38, -1, vision::ProcLib::FLYCV); + + std::cout << "opencv " << mat_opencv.GetOpenCVMat()->cols << " " << mat_opencv.GetOpenCVMat()->rows << std::endl; + std::cout << "flycv " << mat_flycv.GetFalconCVMat()->width() << " " << mat_flycv.GetFalconCVMat()->height() << std::endl; + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 20); +} + +//TEST(fastdeploy, flycv_limit_long2) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; +// +// cv::Mat mat(35, 69, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); +// +// vision::Mat mat_opencv(mat); +// vision::Mat mat_flycv(mat1); +// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); +// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); +// vision::LimitByStride::Run(&mat_opencv, 38, -1, vision::ProcLib::OPENCV); +// vision::LimitByStride::Run(&mat_flycv, 38, -1, vision::ProcLib::FLYCV); +// +// FDTensor opencv; +// FDTensor flycv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_flycv.ShareWithTensor(&flycv); +// +// check_shape(opencv.shape, flycv.shape); +// check_type(opencv.dtype, flycv.dtype); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 0, 0); +//} +// +//TEST(fastdeploy, flycv_limit_long3) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; +// +// cv::Mat mat(35, 69, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); +// +// vision::Mat mat_opencv(mat); +// vision::Mat mat_flycv(mat1); +// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); +// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); +// vision::LimitByStride::Run(&mat_opencv, 108, 50, vision::ProcLib::OPENCV); +// vision::LimitByStride::Run(&mat_flycv, 108, 50, vision::ProcLib::FLYCV); +// +// FDTensor opencv; +// FDTensor flycv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_flycv.ShareWithTensor(&flycv); +// +// check_shape(opencv.shape, flycv.shape); +// check_type(opencv.dtype, flycv.dtype); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 0, 0); +//} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_limit_stride.cc b/tests/vision_preprocess/test_vision_limit_stride.cc index 0d1f0337387..295178f603c 100644 --- a/tests/vision_preprocess/test_vision_limit_stride.cc +++ b/tests/vision_preprocess/test_vision_limit_stride.cc @@ -27,14 +27,39 @@ TEST(fastdeploy, flycv_limit_stride1) { CheckData check_data; CheckType check_type; - cv::Mat mat(35, 35, CV_8UC3); + cv::Mat mat(35, 69, CV_8UC3); cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); cv::Mat mat1 = mat.clone(); vision::Mat mat_opencv(mat); vision::Mat mat_flycv(mat1); -// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); -// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); + vision::LimitByStride::Run(&mat_opencv, 38, 1, vision::ProcLib::OPENCV); + vision::LimitByStride::Run(&mat_flycv, 38, 1, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +} + +TEST(fastdeploy, flycv_limit_stride2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 69, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); vision::LimitByStride::Run(&mat_opencv, 32, 1, vision::ProcLib::OPENCV); vision::LimitByStride::Run(&mat_flycv, 32, 1, vision::ProcLib::FLYCV); @@ -46,46 +71,52 @@ TEST(fastdeploy, flycv_limit_stride1) { check_shape(opencv.shape, flycv.shape); check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 0, 0); +} - uint8_t* ptr0 = static_cast(mat_opencv.Data()); - uint8_t* ptr1 = static_cast(mat_flycv.Data()); - for (int i = 0; i < 32 * 32 * 3; ++i) { - if (fabs(ptr0[i] - ptr1[i]) > 0) { - std::cout << "======= " << i << " " << int(ptr0[i]) << " " << int(ptr1[i]) << std::endl; - ASSERT_EQ(1, 0); - break; - } - } - - -// std::vector data0(35 * 35 * 3, 0); -// std::vector data1(35 * 35 * 3, 0); -// for (size_t i = 0; i < 35 * 35 * 3; ++i) { -// data0[i] = static_cast(rand() % 255); -// data1[i] = data0[i]; -// } +//TEST(fastdeploy, flycv_limit_stride3) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; // -// fcv::Mat mat_flycv(35, 35, fcv::FCVImageType::PACKAGE_BGR_U8, data0.data()); -// cv::Mat mat_opencv(35, 35, CV_8UC3, data1.data()); +// cv::Mat mat(35, 69, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); // -// cv::Mat new_im0; -// cv::resize(mat_opencv, new_im0, cv::Size(32, 32), 0, 0, 1); +// vision::Mat mat_opencv(mat); +// vision::Mat mat_flycv(mat1); +//// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); +//// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); +// vision::LimitByStride::Run(&mat_opencv, 32, 0, vision::ProcLib::OPENCV); +// vision::LimitByStride::Run(&mat_flycv, 32, 0, vision::ProcLib::FLYCV); // -// fcv::Mat new_im1; -// fcv::resize(mat_flycv, new_im1, fcv::Size(32, 32), 0, 0, fcv::InterpolationType::INTER_LINEAR); +// FDTensor opencv; +// FDTensor flycv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_flycv.ShareWithTensor(&flycv); // -// uint8_t* ptr0 = static_cast(new_im0.ptr()); -// uint8_t* ptr1 = static_cast(new_im1.data()); -// for (int i = 0; i < 32 * 32 * 3; ++i) { -// if (fabs(ptr0[i] - ptr1[i]) > 1) { -// std::cout << "======= " << i << " " << int(ptr0[i]) << " " << int(ptr1[i]) << std::endl; -// ASSERT_EQ(1, 0); -// break; -// } -// } -// check_data(reinterpret_cast(mat_flycv.data()), reinterpret_cast(mat_opencv.ptr()), 35 * 35 * 3); -// check_data(reinterpret_cast(new_im1.data()), reinterpret_cast(new_im0.ptr()), 32 * 32 * 3); +// check_shape(opencv.shape, flycv.shape); +// check_type(opencv.dtype, flycv.dtype); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +//} +//TEST(fastdeploy, flycv_limit_stride4) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; +// +// cv::Mat mat(35, 69, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); +// +// vision::Mat mat_opencv(mat); +// vision::Mat mat_flycv(mat1); +// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); +// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); +// vision::LimitByStride::Run(&mat_opencv, 32, 2, vision::ProcLib::OPENCV); +// vision::LimitByStride::Run(&mat_flycv, 32, 2, vision::ProcLib::FLYCV); +// // FDTensor opencv; // FDTensor flycv; // @@ -93,9 +124,10 @@ TEST(fastdeploy, flycv_limit_stride1) { // mat_flycv.ShareWithTensor(&flycv); // // check_shape(opencv.shape, flycv.shape); -//// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); // check_type(opencv.dtype, flycv.dtype); -} +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 0, 0); +//} + #endif } // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_pad_to_size.cc b/tests/vision_preprocess/test_vision_pad_to_size.cc new file mode 100644 index 00000000000..c378e229c6d --- /dev/null +++ b/tests/vision_preprocess/test_vision_pad_to_size.cc @@ -0,0 +1,78 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_pad_to_size_1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 21, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); + vision::PadToSize::Run(&mat_opencv, 102, 77, {1, 12, 13}, vision::ProcLib::OPENCV); + vision::PadToSize::Run(&mat_flycv, 102, 77, {1, 12, 13}, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); +} + +TEST(fastdeploy, flycv_pad_to_size_2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(64, 21, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::PadToSize::Run(&mat_opencv, 102, 77, {0.5, 12, 13}, vision::ProcLib::OPENCV); + vision::PadToSize::Run(&mat_flycv, 102, 77, {0.5, 12, 13}, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); +} +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_resize.cc b/tests/vision_preprocess/test_vision_resize.cc new file mode 100644 index 00000000000..70d2e48c883 --- /dev/null +++ b/tests/vision_preprocess/test_vision_resize.cc @@ -0,0 +1,104 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_limit_resize1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 69, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::Resize::Run(&mat_opencv, 38, 19, -1, -1, 1, false, vision::ProcLib::OPENCV); + vision::Resize::Run(&mat_flycv, 38, 19, -1, -1, 1, false, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +} + +TEST(fastdeploy, flycv_limit_resize2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 69, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); + vision::Resize::Run(&mat_opencv, 38, 19, -1, -1, 1, false, vision::ProcLib::OPENCV); + vision::Resize::Run(&mat_flycv, 38, 19, -1, -1, 1, false, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +} + +TEST(fastdeploy, flycv_limit_resize3) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 69, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::Resize::Run(&mat_opencv, 38, 19, -1, -1, 0, false, vision::ProcLib::OPENCV); + vision::Resize::Run(&mat_flycv, 38, 19, -1, -1, 0, false, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +} + +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_resize_by_short.cc b/tests/vision_preprocess/test_vision_resize_by_short.cc new file mode 100644 index 00000000000..58c15cd7207 --- /dev/null +++ b/tests/vision_preprocess/test_vision_resize_by_short.cc @@ -0,0 +1,104 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_limit_resize_by_short1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(35, 69, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::ResizeByShort::Run(&mat_opencv, 104, 1, false, {}, vision::ProcLib::OPENCV); + vision::ResizeByShort::Run(&mat_flycv, 104, 1, false, {}, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_type(opencv.dtype, flycv.dtype); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +} + +//TEST(fastdeploy, flycv_limit_resize_by_short2) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; +// +// cv::Mat mat(35, 69, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); +// +// vision::Mat mat_opencv(mat); +// vision::Mat mat_flycv(mat1); +// vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); +// vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); +// vision::Resize::Run(&mat_opencv, 38, 19, -1, -1, 1, false, vision::ProcLib::OPENCV); +// vision::Resize::Run(&mat_flycv, 38, 19, -1, -1, 1, false, vision::ProcLib::FLYCV); +// +// FDTensor opencv; +// FDTensor flycv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_flycv.ShareWithTensor(&flycv); +// +// check_shape(opencv.shape, flycv.shape); +// check_type(opencv.dtype, flycv.dtype); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +//} +// +//TEST(fastdeploy, flycv_limit_resize_by_stride3) { +// CheckShape check_shape; +// CheckData check_data; +// CheckType check_type; +// +// cv::Mat mat(35, 69, CV_8UC3); +// cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); +// cv::Mat mat1 = mat.clone(); +// +// vision::Mat mat_opencv(mat); +// vision::Mat mat_flycv(mat1); +// vision::Resize::Run(&mat_opencv, 38, 19, -1, -1, 0, false, vision::ProcLib::OPENCV); +// vision::Resize::Run(&mat_flycv, 38, 19, -1, -1, 0, false, vision::ProcLib::FLYCV); +// +// FDTensor opencv; +// FDTensor flycv; +// +// mat_opencv.ShareWithTensor(&opencv); +// mat_flycv.ShareWithTensor(&flycv); +// +// check_shape(opencv.shape, flycv.shape); +// check_type(opencv.dtype, flycv.dtype); +// check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel(), 1); +//} + +#endif + +} // namespace fastdeploy diff --git a/tests/vision_preprocess/test_vision_stride_pad.cc b/tests/vision_preprocess/test_vision_stride_pad.cc new file mode 100644 index 00000000000..c8194099d69 --- /dev/null +++ b/tests/vision_preprocess/test_vision_stride_pad.cc @@ -0,0 +1,78 @@ +// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include "fastdeploy/vision.h" +#include "glog/logging.h" +#include "gtest/gtest.h" +#include "gtest_utils.h" + +namespace fastdeploy { + +#ifdef ENABLE_FLYCV +TEST(fastdeploy, flycv_stride_pad_1) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(65, 21, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::Cast::Run(&mat_opencv, "float", vision::ProcLib::OPENCV); + vision::Cast::Run(&mat_flycv, "float", vision::ProcLib::FLYCV); + vision::StridePad::Run(&mat_opencv, 64, {0.5, 12, 13}, vision::ProcLib::OPENCV); + vision::StridePad::Run(&mat_flycv, 64, {0.5, 12, 13}, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); +} + +TEST(fastdeploy, flycv_stride_pad_2) { + CheckShape check_shape; + CheckData check_data; + CheckType check_type; + + cv::Mat mat(65, 21, CV_8UC3); + cv::randu(mat, cv::Scalar::all(0), cv::Scalar::all(255)); + cv::Mat mat1 = mat.clone(); + + vision::Mat mat_opencv(mat); + vision::Mat mat_flycv(mat1); + vision::StridePad::Run(&mat_opencv, 64, {0.5, 12, 13}, vision::ProcLib::OPENCV); + vision::StridePad::Run(&mat_flycv, 64, {0.5, 12, 13}, vision::ProcLib::FLYCV); + + FDTensor opencv; + FDTensor flycv; + + mat_opencv.ShareWithTensor(&opencv); + mat_flycv.ShareWithTensor(&flycv); + + check_shape(opencv.shape, flycv.shape); + check_data(reinterpret_cast(opencv.Data()), reinterpret_cast(flycv.Data()), opencv.Numel()); + check_type(opencv.dtype, flycv.dtype); +} +#endif + +} // namespace fastdeploy From 970f3c532921230601afe56219fb2b0bc53ce9c0 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Tue, 25 Oct 2022 14:44:51 +0800 Subject: [PATCH 08/16] ready to test --- CMakeLists.txt | 1 + FastDeploy.cmake.in | 7 +++ cmake/opencv.cmake | 2 +- fastdeploy/core/config.h.in | 4 +- fastdeploy/vision.h | 24 ++++++++++ fastdeploy/vision/common/processors/base.cc | 2 +- fastdeploy/vision/common/processors/base.h | 2 +- fastdeploy/vision/common/processors/cast.cc | 28 ++++++----- fastdeploy/vision/common/processors/cast.h | 4 ++ fastdeploy/vision/common/processors/mat.cc | 19 ++++++++ fastdeploy/vision/common/processors/mat.h | 4 +- .../vision/common/processors/normalize.h | 7 +++ .../common/processors/normalize_and_permute.h | 12 +++++ .../vision/common/processors/transform.h | 47 +++++++++++++++++++ fastdeploy/vision/detection/ppdet/ppyoloe.cc | 2 + fastdeploy/vision/vision_pybind.cc | 3 ++ python/fastdeploy/vision/__init__.py | 9 ++++ python/setup.py | 1 + 18 files changed, 160 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b2d87e8403..12c9bb74111 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,6 +363,7 @@ endif() if(ENABLE_VISION) add_definitions(-DENABLE_VISION) +# set(ENABLE_VISION_VISUALIZE ON) add_definitions(-DENABLE_VISION_VISUALIZE) if(ENABLE_OPENCV_CUDA) if(NOT WITH_GPU) diff --git a/FastDeploy.cmake.in b/FastDeploy.cmake.in index 524b1e25c98..3ecb2a3f68f 100755 --- a/FastDeploy.cmake.in +++ b/FastDeploy.cmake.in @@ -10,6 +10,7 @@ set(POROS_VERSION @POROS_VERSION@) set(ENABLE_TRT_BACKEND @ENABLE_TRT_BACKEND@) set(ENABLE_PADDLE_FRONTEND @ENABLE_PADDLE_FRONTEND@) set(ENABLE_VISION @ENABLE_VISION@) +set(ENABLE_FLYCV @ENABLE_FLYCV@) set(ENABLE_TEXT @ENABLE_TEXT@) set(BUILD_ON_JETSON @BUILD_ON_JETSON@) set(PADDLEINFERENCE_VERSION @PADDLEINFERENCE_VERSION@) @@ -185,6 +186,12 @@ if(ENABLE_VISION) list(APPEND FASTDEPLOY_INCS ${OpenCV_INCLUDE_DIRS}) list(APPEND FASTDEPLOY_LIBS ${OpenCV_LIBS}) endif() + + if(ENABLE_FLYCV) + include_directories(${CMAKE_CURRENT_LIST_DIR}/third_libs/install/flycv/include) + find_library(FLYCV_LIB flycv_shared ${CMAKE_CURRENT_LIST_DIR}/third_libs/install/flycv/lib NO_DEFAULT_PATH) + list(APPEND FASTDEPLOY_LIBS ${FLYCV_LIB}) + endif() endif() if (ENABLE_TEXT) diff --git a/cmake/opencv.cmake b/cmake/opencv.cmake index 7557e682cbc..b5f8322263a 100644 --- a/cmake/opencv.cmake +++ b/cmake/opencv.cmake @@ -184,7 +184,7 @@ else() if (WIN32) set(OpenCV_DIR ${OpenCV_DIR}/build) endif() - find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR}) + find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR} NO_DEFAULT_PATH) include_directories(${OpenCV_INCLUDE_DIRS}) list(APPEND DEPEND_LIBS opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs) endif() diff --git a/fastdeploy/core/config.h.in b/fastdeploy/core/config.h.in index 1e987279995..21c398af0b5 100755 --- a/fastdeploy/core/config.h.in +++ b/fastdeploy/core/config.h.in @@ -61,8 +61,10 @@ #cmakedefine ENABLE_OPENCV_CUDA #endif +#ifdef ENABLE_VISION #ifndef ENABLE_VISION_VISUALIZE -#cmakedefine ENABLE_VISION_VISUALIZE +#define ENABLE_VISION_VISUALIZE +#endif #endif #ifndef ENABLE_FDTENSOR_FUNC diff --git a/fastdeploy/vision.h b/fastdeploy/vision.h index b83fb0f3dac..f16a722e7ba 100755 --- a/fastdeploy/vision.h +++ b/fastdeploy/vision.h @@ -51,3 +51,27 @@ #endif #include "fastdeploy/vision/visualize/visualize.h" + +namespace fastdeploy { +namespace vision { +/*! @brief Enable using FlyCV to process image while deploy vision models. Currently, FlyCV in only available on ARM(Linux aarch64/Android), so will fallback to using OpenCV in other platform + */ +inline void EnableFlyCV() { +#ifdef ENABLE_FLYCV + Processor::default_lib = ProcLib::FLYCV; + FDINFO << "Will change to use image processing library " + << Processor::default_lib << std::endl; +#else + FDWARNING << "FastDeploy didn't compile with FlyCV, " + "will fallback to use OpenCV instead." + << std::endl; +#endif +} + +/// Disable using FlyCV to process image while deploy vision models. +inline void DisableFlyCV() { + Processor::default_lib = ProcLib::OPENCV; +} + +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/base.cc b/fastdeploy/vision/common/processors/base.cc index 238cf65c715..7c94a03f06d 100644 --- a/fastdeploy/vision/common/processors/base.cc +++ b/fastdeploy/vision/common/processors/base.cc @@ -28,7 +28,7 @@ bool Processor::operator()(Mat* mat, ProcLib lib) { target = default_lib; } - if (lib == ProcLib::FLYCV) { + if (target == ProcLib::FLYCV) { #ifdef ENABLE_FLYCV if (mat->mat_type != ProcLib::FLYCV) { if (mat->layout != Layout::HWC) { diff --git a/fastdeploy/vision/common/processors/base.h b/fastdeploy/vision/common/processors/base.h index b6720563636..9349f9cb964 100644 --- a/fastdeploy/vision/common/processors/base.h +++ b/fastdeploy/vision/common/processors/base.h @@ -22,7 +22,7 @@ namespace fastdeploy { namespace vision { -class Processor { +class FASTDEPLOY_DECL Processor { public: // default_lib has the highest priority // all the function in `processor` will force to use diff --git a/fastdeploy/vision/common/processors/cast.cc b/fastdeploy/vision/common/processors/cast.cc index ce612d962ff..62aad3778ff 100644 --- a/fastdeploy/vision/common/processors/cast.cc +++ b/fastdeploy/vision/common/processors/cast.cc @@ -37,27 +37,29 @@ bool Cast::ImplByOpenCV(Mat* mat) { #ifdef ENABLE_FLYCV bool Cast::ImplByFalconCV(Mat* mat) { + fcv::Mat* im = mat->GetFalconCVMat(); + if (dtype_ == "float" && mat->Type() == FDDataType::FP32) { + return true; + } + if (dtype_ == "double" && mat->Type() == FDDataType::FP64) { + return true; + } if (mat->layout != Layout::HWC) { FDERROR << "While using Falcon to cast image, the image must be layout of HWC." << std::endl; return false; } - fcv::Mat* im = mat->GetFalconCVMat(); if (dtype_ == "float") { - if (mat->Type() != FDDataType::FP32) { - fcv::Mat new_im; - auto fcv_type = CreateFalconCVDataType(FDDataType::FP32, im->channels()); - im->convert_to(new_im, fcv_type); - mat->SetMat(new_im); - } + fcv::Mat new_im; + auto fcv_type = CreateFalconCVDataType(FDDataType::FP32, im->channels()); + im->convert_to(new_im, fcv_type); + mat->SetMat(new_im); } else if (dtype_ == "double") { - if (mat->Type() != FDDataType::FP64) { - fcv::Mat new_im; - auto fcv_type = CreateFalconCVDataType(FDDataType::FP64, im->channels()); - im->convert_to(new_im, fcv_type); - mat->SetMat(new_im); - } + fcv::Mat new_im; + auto fcv_type = CreateFalconCVDataType(FDDataType::FP64, im->channels()); + im->convert_to(new_im, fcv_type); + mat->SetMat(new_im); } else { FDWARNING << "Cast not support for " << dtype_ << " now! will skip this operation." << std::endl; diff --git a/fastdeploy/vision/common/processors/cast.h b/fastdeploy/vision/common/processors/cast.h index 4ac228c4aab..a438fb97430 100644 --- a/fastdeploy/vision/common/processors/cast.h +++ b/fastdeploy/vision/common/processors/cast.h @@ -30,6 +30,10 @@ class FASTDEPLOY_DECL Cast : public Processor { static bool Run(Mat* mat, const std::string& dtype, ProcLib lib = ProcLib::OPENCV); + std::string GetDtype() const { + return dtype_; + } + private: std::string dtype_; }; diff --git a/fastdeploy/vision/common/processors/mat.cc b/fastdeploy/vision/common/processors/mat.cc index bd9da2feccf..a906ff760ac 100644 --- a/fastdeploy/vision/common/processors/mat.cc +++ b/fastdeploy/vision/common/processors/mat.cc @@ -146,6 +146,25 @@ Mat CreateFromTensor(const FDTensor& tensor) { return mat; } +std::ostream& operator<<(std::ostream& out,const ProcLib& p) { + switch (p) { + case ProcLib::DEFAULT: + out << "ProcLib::DEFAULT"; + break; + case ProcLib::OPENCV: + out << "ProcLib::OPENCV"; + break; + case ProcLib::FLYCV: + out << "ProcLib::FLYCV"; + break; + default: + FDASSERT(false, "Unknow type of ProcLib."); + } + return out; +} + + + } // namespace vision } // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/mat.h b/fastdeploy/vision/common/processors/mat.h index 84dd219ef02..20e56211db5 100644 --- a/fastdeploy/vision/common/processors/mat.h +++ b/fastdeploy/vision/common/processors/mat.h @@ -19,9 +19,11 @@ namespace fastdeploy { namespace vision { -enum ProcLib { DEFAULT, OPENCV, FLYCV}; +enum class FASTDEPLOY_DECL ProcLib { DEFAULT, OPENCV, FLYCV}; enum Layout { HWC, CHW }; +FASTDEPLOY_DECL std::ostream& operator<<(std::ostream& out, const ProcLib& p); + struct FASTDEPLOY_DECL Mat { explicit Mat(cv::Mat& mat) { cpu_mat = mat; diff --git a/fastdeploy/vision/common/processors/normalize.h b/fastdeploy/vision/common/processors/normalize.h index d97651edf41..964c19fb2a3 100644 --- a/fastdeploy/vision/common/processors/normalize.h +++ b/fastdeploy/vision/common/processors/normalize.h @@ -46,6 +46,13 @@ class FASTDEPLOY_DECL Normalize : public Processor { const std::vector& max = std::vector(), ProcLib lib = ProcLib::OPENCV); + std::vector GetAlpha() const { + return alpha_; + } + std::vector GetBeta() const { + return beta_; + } + private: std::vector alpha_; std::vector beta_; diff --git a/fastdeploy/vision/common/processors/normalize_and_permute.h b/fastdeploy/vision/common/processors/normalize_and_permute.h index 75fbd0c328b..4a154f71f8a 100644 --- a/fastdeploy/vision/common/processors/normalize_and_permute.h +++ b/fastdeploy/vision/common/processors/normalize_and_permute.h @@ -47,6 +47,18 @@ class FASTDEPLOY_DECL NormalizeAndPermute : public Processor { const std::vector& max = std::vector(), ProcLib lib = ProcLib::OPENCV); + void SetAlpha(const std::vector& alpha) { + alpha_.clear(); + std::vector().swap(alpha_); + alpha_.assign(alpha.begin(), alpha.end()); + } + + void SetBeta(const std::vector& beta) { + beta_.clear(); + std::vector().swap(beta_); + beta_.assign(beta.begin(), beta.end()); + } + private: std::vector alpha_; std::vector beta_; diff --git a/fastdeploy/vision/common/processors/transform.h b/fastdeploy/vision/common/processors/transform.h index e98e4e3074a..69fbe0bf6ce 100644 --- a/fastdeploy/vision/common/processors/transform.h +++ b/fastdeploy/vision/common/processors/transform.h @@ -32,3 +32,50 @@ #include "fastdeploy/vision/common/processors/stride_pad.h" #include "fastdeploy/vision/common/processors/normalize_and_permute.h" #include "fastdeploy/vision/common/processors/warp_affine.h" + +namespace fastdeploy { +namespace vision { + +inline void FuseTransforms( + std::vector>* processors) { + // Fuse Normalize and HWC2CHW + int hwc2chw_index = 0; + for (size_t i = 0; i < processors->size(); ++i) { + if ((*processors)[i]->Name() == "HWC2CHW") { + if (i == 0) { + return; + } + if ((*processors)[i]->Name() != "Normalize") { + return; + } + hwc2chw_index = i; + } + } + + // Get alpha and beta of Normalize + std::vector alpha = dynamic_cast( + (*processors)[hwc2chw_index - 1].get())->GetAlpha(); + std::vector beta = dynamic_cast( + (*processors)[hwc2chw_index - 1].get())->GetBeta(); + + // Delete Normalize and HWC2CHW + processors->erase(processors->begin() + hwc2chw_index); + processors->erase(processors->begin() + hwc2chw_index - 1); + + // Add NormalizeAndPermute + std::vector mean({0.0, 0.0, 0.0}); + std::vector std({1.0, 1.0, 1.0}); + processors->push_back(std::make_shared(mean, std)); + + // Set alpha and beta + auto processor = dynamic_cast( + (*processors)[hwc2chw_index - 1].get()); + + processor->SetAlpha(alpha); + processor->SetBeta(beta); + FDINFO << "Normalize and HWC2CHW are fused to NormalizeAndPermute." + << std::endl; +} + +} // namespace vision +} // namespace fastdeploy diff --git a/fastdeploy/vision/detection/ppdet/ppyoloe.cc b/fastdeploy/vision/detection/ppdet/ppyoloe.cc index 299b1b6651f..eae27aacd6e 100644 --- a/fastdeploy/vision/detection/ppdet/ppyoloe.cc +++ b/fastdeploy/vision/detection/ppdet/ppyoloe.cc @@ -160,6 +160,8 @@ bool PPYOLOE::BuildPreprocessPipelineFromConfig() { processors_.push_back(std::make_shared()); } +// // Fusion will improve performance +// FuseTransforms(&processors); return true; } diff --git a/fastdeploy/vision/vision_pybind.cc b/fastdeploy/vision/vision_pybind.cc index 70f1990a446..8b3a31b7c6c 100644 --- a/fastdeploy/vision/vision_pybind.cc +++ b/fastdeploy/vision/vision_pybind.cc @@ -105,6 +105,9 @@ void BindVision(pybind11::module& m) { .def("__repr__", &vision::KeyPointDetectionResult::Str) .def("__str__", &vision::KeyPointDetectionResult::Str); + m.def("enable_flycv", &vision::EnableFlyCV, "Enable image preprocessing by FlyCV."); + m.def("disable_flycv", &vision::DisableFlyCV, "Disable image preprocessing by FlyCV, change to use OpenCV."); + BindDetection(m); BindClassification(m); BindSegmentation(m); diff --git a/python/fastdeploy/vision/__init__.py b/python/fastdeploy/vision/__init__.py index 28cd0564f6d..88d63890f93 100644 --- a/python/fastdeploy/vision/__init__.py +++ b/python/fastdeploy/vision/__init__.py @@ -25,3 +25,12 @@ from . import evaluation from .utils import fd_result_to_json from .visualize import * +from .. import C + + +def enable_flycv(): + return C.enable_flycv() + + +def disable_flycv(): + return C.disable_flycv() diff --git a/python/setup.py b/python/setup.py index 56a0bc534ac..57436b2a9b3 100755 --- a/python/setup.py +++ b/python/setup.py @@ -56,6 +56,7 @@ setup_configs["ENABLE_POROS_BACKEND"] = os.getenv("ENABLE_POROS_BACKEND", "OFF") setup_configs["ENABLE_VISION"] = os.getenv("ENABLE_VISION", "OFF") +setup_configs["ENABLE_FLYCV"] = os.getenv("ENABLE_FLYCV", "OFF") setup_configs["ENABLE_TEXT"] = os.getenv("ENABLE_TEXT", "OFF") setup_configs["ENABLE_TRT_BACKEND"] = os.getenv("ENABLE_TRT_BACKEND", "OFF") setup_configs["WITH_GPU"] = os.getenv("WITH_GPU", "OFF") From bb64f2b1ef36ec6ec56e33fc4a50f2dbea6e33e8 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Tue, 25 Oct 2022 09:46:37 +0000 Subject: [PATCH 09/16] add fuse --- .../vision/common/processors/transform.h | 52 ++++++++++++++++--- fastdeploy/vision/detection/ppdet/ppyoloe.cc | 11 +++- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/fastdeploy/vision/common/processors/transform.h b/fastdeploy/vision/common/processors/transform.h index 69fbe0bf6ce..37c4944cab9 100644 --- a/fastdeploy/vision/common/processors/transform.h +++ b/fastdeploy/vision/common/processors/transform.h @@ -36,22 +36,52 @@ namespace fastdeploy { namespace vision { -inline void FuseTransforms( - std::vector>* processors) { - // Fuse Normalize and HWC2CHW - int hwc2chw_index = 0; +inline void FuseNormalizeCast(std::vector>* processors) { + // Fuse Normalize and Cast + int cast_index = -1; + for (size_t i = 0; i < processors->size(); ++i) { + if ((*processors)[i]->Name() == "Cast") { + if (i == 0) { + continue; + } + if ((*processors)[i - 1]->Name() != "Normalize" && (*processors)[i - 1]->Name() != "NormalizeAndPermute") { + continue; + } + cast_index = i; + } + } + std::cout << "????? " << cast_index << std::endl; + if (cast_index < 0) { + return; + } + + std::cout << dynamic_cast((*processors)[cast_index].get())->GetDtype() << "-----" << std::endl; + if (dynamic_cast((*processors)[cast_index].get())->GetDtype() != "float") { + return; + } + processors->erase(processors->begin() + cast_index); + FDINFO << (*processors)[cast_index]->Name() << " and Cast are fused to " << (*processors)[cast_index]->Name() << " in preprocessing pipeline." << std::endl; +} + +inline void FuseNormalizeHWC2CHW(std::vector>* processors) { + // Fuse Normalize and HWC2CHW to NormalizeAndPermute + int hwc2chw_index = -1; for (size_t i = 0; i < processors->size(); ++i) { if ((*processors)[i]->Name() == "HWC2CHW") { if (i == 0) { - return; + continue; } if ((*processors)[i]->Name() != "Normalize") { - return; + continue; } hwc2chw_index = i; } } + if (hwc2chw_index < 0) { + return; + } + // Get alpha and beta of Normalize std::vector alpha = dynamic_cast( (*processors)[hwc2chw_index - 1].get())->GetAlpha(); @@ -73,8 +103,14 @@ inline void FuseTransforms( processor->SetAlpha(alpha); processor->SetBeta(beta); - FDINFO << "Normalize and HWC2CHW are fused to NormalizeAndPermute." - << std::endl; + FDINFO << "Normalize and HWC2CHW are fused to NormalizeAndPermute " + " in preprocessing pipeline." << std::endl; +} + +inline void FuseTransforms( + std::vector>* processors) { + FuseNormalizeCast(processors); + FuseNormalizeHWC2CHW(processors); } } // namespace vision diff --git a/fastdeploy/vision/detection/ppdet/ppyoloe.cc b/fastdeploy/vision/detection/ppdet/ppyoloe.cc index eae27aacd6e..9dd688fe0c6 100644 --- a/fastdeploy/vision/detection/ppdet/ppyoloe.cc +++ b/fastdeploy/vision/detection/ppdet/ppyoloe.cc @@ -160,8 +160,15 @@ bool PPYOLOE::BuildPreprocessPipelineFromConfig() { processors_.push_back(std::make_shared()); } -// // Fusion will improve performance -// FuseTransforms(&processors); + for (size_t i = 0; i < processors_.size(); ++i) { + std::cout << "Before " << i << " " << processors_[i]->Name() << std::endl; + } + // Fusion will improve performance + FuseTransforms(&processors_); + for (size_t i = 0; i < processors_.size(); ++i) { + std::cout << "After " << i << " " << processors_[i]->Name() << std::endl; + } + return true; } From 53884246a6e3e27cfe53406aebe168cb09db6284 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Tue, 25 Oct 2022 10:54:58 +0000 Subject: [PATCH 10/16] fix fuse problem --- fastdeploy/vision/common/processors/transform.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fastdeploy/vision/common/processors/transform.h b/fastdeploy/vision/common/processors/transform.h index 37c4944cab9..c6bd7cc2ce2 100644 --- a/fastdeploy/vision/common/processors/transform.h +++ b/fastdeploy/vision/common/processors/transform.h @@ -50,7 +50,6 @@ inline void FuseNormalizeCast(std::vector>* processor cast_index = i; } } - std::cout << "????? " << cast_index << std::endl; if (cast_index < 0) { return; } @@ -60,7 +59,7 @@ inline void FuseNormalizeCast(std::vector>* processor return; } processors->erase(processors->begin() + cast_index); - FDINFO << (*processors)[cast_index]->Name() << " and Cast are fused to " << (*processors)[cast_index]->Name() << " in preprocessing pipeline." << std::endl; + FDINFO << (*processors)[cast_index - 1]->Name() << " and Cast are fused to " << (*processors)[cast_index - 1]->Name() << " in preprocessing pipeline." << std::endl; } inline void FuseNormalizeHWC2CHW(std::vector>* processors) { @@ -69,10 +68,10 @@ inline void FuseNormalizeHWC2CHW(std::vector>* proces for (size_t i = 0; i < processors->size(); ++i) { if ((*processors)[i]->Name() == "HWC2CHW") { if (i == 0) { - continue; + continue; } - if ((*processors)[i]->Name() != "Normalize") { - continue; + if ((*processors)[i - 1]->Name() != "Normalize") { + continue; } hwc2chw_index = i; } From 914e31e8453292c0e4ae28894ae96a277d97e3a4 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Tue, 25 Oct 2022 11:35:40 +0000 Subject: [PATCH 11/16] add debug code --- fastdeploy/vision/detection/ppdet/ppyoloe.cc | 5 +++++ python/fastdeploy/vision/__init__.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fastdeploy/vision/detection/ppdet/ppyoloe.cc b/fastdeploy/vision/detection/ppdet/ppyoloe.cc index 9dd688fe0c6..1ff6530b724 100644 --- a/fastdeploy/vision/detection/ppdet/ppyoloe.cc +++ b/fastdeploy/vision/detection/ppdet/ppyoloe.cc @@ -268,12 +268,17 @@ bool PPYOLOE::Postprocess(std::vector& infer_result, bool PPYOLOE::Predict(cv::Mat* im, DetectionResult* result) { Mat mat(*im); + + TimeCounter tc; + tc.Start(); std::vector processed_data; if (!Preprocess(&mat, &processed_data)) { FDERROR << "Failed to preprocess input data while using model:" << ModelName() << "." << std::endl; return false; } + tc.End(); + std::cout << "Preprocess Time: " << tc.Duration() << std::endl; float* tmp = static_cast(processed_data[1].Data()); std::vector infer_result; diff --git a/python/fastdeploy/vision/__init__.py b/python/fastdeploy/vision/__init__.py index 88d63890f93..bbc0656f71b 100644 --- a/python/fastdeploy/vision/__init__.py +++ b/python/fastdeploy/vision/__init__.py @@ -29,8 +29,8 @@ def enable_flycv(): - return C.enable_flycv() + return C.vision.enable_flycv() def disable_flycv(): - return C.disable_flycv() + return C.vision.disable_flycv() From 7d9646de52da2f530d076d6c78e6daa5e2d5d865 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Tue, 25 Oct 2022 21:24:26 +0800 Subject: [PATCH 12/16] add debug --- cmake/flycv.cmake | 2 +- fastdeploy/vision/common/processors/resize.cc | 2 ++ scripts/fastdeploy_init.sh | 11 +++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cmake/flycv.cmake b/cmake/flycv.cmake index fca80b294fb..4b3bbf386e1 100644 --- a/cmake/flycv.cmake +++ b/cmake/flycv.cmake @@ -43,7 +43,7 @@ else() endif(WIN32) set(FLYCV_URL_BASE "https://bj.bcebos.com/fastdeploy/third_libs/") -set(FLYCV_VERSION "1.0") +set(FLYCV_VERSION "1.0.1025") if(WIN32) message(FATAL_ERROR "FalconCV is not supported on Windows now.") set(FLYCV_FILE "flycv-win-x64-${FLYCV_VERSION}.zip") diff --git a/fastdeploy/vision/common/processors/resize.cc b/fastdeploy/vision/common/processors/resize.cc index eb1932abc0f..5ff416809b9 100644 --- a/fastdeploy/vision/common/processors/resize.cc +++ b/fastdeploy/vision/common/processors/resize.cc @@ -18,6 +18,7 @@ namespace fastdeploy { namespace vision { bool Resize::ImplByOpenCV(Mat* mat) { + std::cout << "imple by opencv" << std::endl; if (mat->layout != Layout::HWC) { FDERROR << "Resize: The format of input is not HWC." << std::endl; return false; @@ -56,6 +57,7 @@ bool Resize::ImplByOpenCV(Mat* mat) { #ifdef ENABLE_FLYCV bool Resize::ImplByFalconCV(Mat* mat) { + std::cout << "impl by flycv" << std::endl; if (mat->layout != Layout::HWC) { FDERROR << "Resize: The format of input is not HWC." << std::endl; return false; diff --git a/scripts/fastdeploy_init.sh b/scripts/fastdeploy_init.sh index e0b7175ae43..af7e4c42955 100644 --- a/scripts/fastdeploy_init.sh +++ b/scripts/fastdeploy_init.sh @@ -50,4 +50,15 @@ if [ -d ${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/paddle_inference echo "MKLML Lib: ${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/paddle_inference/third_party/install/mklml/lib" fi +if [ -d ${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/flycv ]; then + export LD_LIBRARY_PATH=${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/flycv/lib:${LD_LIBRARY_PATH} + echo "Fly Lib: ${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/flycv/lib" +fi + +if [ -d ${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/paddlelite ]; then + export LD_LIBRARY_PATH=${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/paddlelite/lib:${LD_LIBRARY_PATH} + echo "Paddle Lite Lib: ${INSTALLED_PREBUILT_FASTDEPLOY_DIR}/third_libs/install/paddlelite/lib" +fi + + cd ${CURRENT_EXE_DIR} From a9f7fe2e1eebaa346e644a6df011d780113fe109 Mon Sep 17 00:00:00 2001 From: DefTruth <31974251+DefTruth@users.noreply.github.com> Date: Sun, 30 Oct 2022 17:12:07 +0800 Subject: [PATCH 13/16] [Android] integrate flycv to Android (#459) * [Android] integrate flycv into Andorid * Falconcv (#27) * [Bug Fix ]Update ppseg visualize python api && demo (#454) Update ppseg visualize python api && demo * [Model] update pptracking letterboxresize and add some comment (#438) * add override mark * delete some * recovery * recovery * add tracking * add tracking py_bind and example * add pptracking * add pptracking * iomanip head file * add opencv_video lib * add python libs package Signed-off-by: ChaoII <849453582@qq.com> * complete comments Signed-off-by: ChaoII <849453582@qq.com> * add jdeTracker_ member variable Signed-off-by: ChaoII <849453582@qq.com> * add 'FASTDEPLOY_DECL' macro Signed-off-by: ChaoII <849453582@qq.com> * remove kwargs params Signed-off-by: ChaoII <849453582@qq.com> * [Doc]update pptracking docs * delete 'ENABLE_PADDLE_FRONTEND' switch * add pptracking unit test * update pptracking unit test Signed-off-by: ChaoII <849453582@qq.com> * modify test video file path and remove trt test * update unit test model url * remove 'FASTDEPLOY_DECL' macro Signed-off-by: ChaoII <849453582@qq.com> * fix build python packages about pptracking on win32 Signed-off-by: ChaoII <849453582@qq.com> * update comment Signed-off-by: ChaoII <849453582@qq.com> * add pptracking model explain Signed-off-by: ChaoII <849453582@qq.com> Signed-off-by: ChaoII <849453582@qq.com> Co-authored-by: Jason Signed-off-by: ChaoII <849453582@qq.com> Co-authored-by: huangjianhui <852142024@qq.com> Co-authored-by: ChaoII <849453582@qq.com> Co-authored-by: Jason * [cmake] optimize examples CMakeLists.txt Signed-off-by: ChaoII <849453582@qq.com> Co-authored-by: huangjianhui <852142024@qq.com> Co-authored-by: ChaoII <849453582@qq.com> Co-authored-by: Jason --- CMakeLists.txt | 1 + FastDeploy.cmake.in | 12 ++- cmake/flycv.cmake | 89 ++++++++++++++----- cmake/paddlelite.cmake | 12 ++- examples/CMakeLists.txt | 25 +++++- .../vision/tracking/pptracking/model.cc | 1 - 6 files changed, 108 insertions(+), 32 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc963cd20a0..ccff224ab22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ option(ENABLE_OPENVINO_BACKEND "Whether to enable openvino backend." OFF) option(ENABLE_LITE_BACKEND "Whether to enable paddle lite backend." OFF) option(ENABLE_VISION "Whether to enable vision models usage." OFF) option(ENABLE_TEXT "Whether to enable text models usage." OFF) +option(ENABLE_FLYCV "Whether to enable flycv to boost image preprocess." OFF) option(WITH_TESTING "Whether to compile with unittest." OFF) ############################# Options for Android cross compiling ######################### option(WITH_OPENCV_STATIC "Use OpenCV static lib for Android." OFF) diff --git a/FastDeploy.cmake.in b/FastDeploy.cmake.in index 3ecb2a3f68f..e1a1cf2f4af 100755 --- a/FastDeploy.cmake.in +++ b/FastDeploy.cmake.in @@ -189,9 +189,17 @@ if(ENABLE_VISION) if(ENABLE_FLYCV) include_directories(${CMAKE_CURRENT_LIST_DIR}/third_libs/install/flycv/include) - find_library(FLYCV_LIB flycv_shared ${CMAKE_CURRENT_LIST_DIR}/third_libs/install/flycv/lib NO_DEFAULT_PATH) - list(APPEND FASTDEPLOY_LIBS ${FLYCV_LIB}) + set(FLYCV_LIB_DIR ${CMAKE_CURRENT_LIST_DIR}/third_libs/install/flycv/lib) + if(ANDROID) + add_library(flycv_shared STATIC IMPORTED GLOBAL) + set_property(TARGET flycv_shared PROPERTY IMPORTED_LOCATION ${FLYCV_LIB_DIR}/${ANDROID_ABI}/libflycv_shared.so) + list(APPEND FASTDEPLOY_LIBS flycv_shared) + else() + find_library(FLYCV_LIB flycv_shared ${FLYCV_LIB_DIR} NO_DEFAULT_PATH) + list(APPEND FASTDEPLOY_LIBS ${FLYCV_LIB}) + endif() endif() + endif() if (ENABLE_TEXT) diff --git a/cmake/flycv.cmake b/cmake/flycv.cmake index 4b3bbf386e1..52a77fb806a 100644 --- a/cmake/flycv.cmake +++ b/cmake/flycv.cmake @@ -21,13 +21,30 @@ set(FLYCV_INSTALL_DIR ${THIRD_PARTY_PATH}/install/flycv) set(FLYCV_INC_DIR "${FLYCV_INSTALL_DIR}/include" CACHE PATH "flycv include directory." FORCE) -set(FLYCV_LIB_DIR - "${FLYCV_INSTALL_DIR}/lib/" - CACHE PATH "flycv lib directory." FORCE) +if(ANDROID) + set(FLYCV_LIB_DIR + "${FLYCV_INSTALL_DIR}/lib/${ANDROID_ABI}" + CACHE PATH "flycv lib directory." FORCE) +else() + set(FLYCV_LIB_DIR + "${FLYCV_INSTALL_DIR}/lib/" + CACHE PATH "flycv lib directory." FORCE) +endif() set(CMAKE_BUILD_RPATH "${CMAKE_BUILD_RPATH}" "${FLYCV_LIB_DIR}") include_directories(${FLYCV_INC_DIR}) + +# ABI check +if(ANDROID) + if((NOT ANDROID_ABI MATCHES "armeabi-v7a") AND (NOT ANDROID_ABI MATCHES "arm64-v8a")) + message(FATAL_ERROR "FastDeploy with FlyCV only support armeabi-v7a, arm64-v8a now.") + endif() + if(NOT ANDROID_TOOLCHAIN MATCHES "clang") + message(FATAL_ERROR "Currently, only support clang toolchain while cross compiling FastDeploy for Android with FlyCV, but found ${ANDROID_TOOLCHAIN}.") + endif() +endif() + if(WIN32) set(FLYCV_COMPILE_LIB "${FLYCV_INSTALL_DIR}/lib/flycv.lib" @@ -35,7 +52,11 @@ if(WIN32) elseif(APPLE) set(FLYCV_COMPILE_LIB "${FLYCV_INSTALL_DIR}/lib/libflycv.dylib" - CACHE FILEPATH "flycv compile library." FORCE) + CACHE FILEPATH "flycv compile library." FORCE) +elseif(ANDROID) + set(FLYCV_COMPILE_LIB + "${FLYCV_INSTALL_DIR}/lib/${ANDROID_ABI}/libflycv_shared.so" + CACHE FILEPATH "flycv compile library." FORCE) else() set(FLYCV_COMPILE_LIB "${FLYCV_INSTALL_DIR}/lib/libflycv_shared.so" @@ -45,41 +66,63 @@ endif(WIN32) set(FLYCV_URL_BASE "https://bj.bcebos.com/fastdeploy/third_libs/") set(FLYCV_VERSION "1.0.1025") if(WIN32) - message(FATAL_ERROR "FalconCV is not supported on Windows now.") + message(FATAL_ERROR "FlyCV is not supported on Windows now.") set(FLYCV_FILE "flycv-win-x64-${FLYCV_VERSION}.zip") elseif(APPLE) - message(FATAL_ERROR "FalconCV is not supported on Mac OSX now.") + message(FATAL_ERROR "FlyCV is not supported on Mac OSX now.") if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64") set(FLYCV_FILE "flycv-osx-arm64-${FLYCV_VERSION}.tgz") else() set(FLYCV_FILE "flycv-osx-x86_64-${FLYCV_VERSION}.tgz") endif() +elseif(ANDROID) + set(FLYCV_FILE "flycv-android-${FLYCV_VERSION}.tgz") else() if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") set(FLYCV_FILE "flycv-linux-aarch64-${FLYCV_VERSION}.tgz") else() - message(FATAL_ERROR "FalconCV is not supported on Linux x64 now.") + message(FATAL_ERROR "FlyCV is not supported on Linux x64 now.") set(FLYCV_FILE "flycv-linux-x64-${FLYCV_VERSION}.tgz") endif() endif() set(FLYCV_URL "${FLYCV_URL_BASE}${FLYCV_FILE}") -ExternalProject_Add( - ${FLYCV_PROJECT} - ${EXTERNAL_PROJECT_LOG_ARGS} - URL ${FLYCV_URL} - PREFIX ${FLYCV_PREFIX_DIR} - DOWNLOAD_NO_PROGRESS 1 - CONFIGURE_COMMAND "" - BUILD_COMMAND "" - UPDATE_COMMAND "" - INSTALL_COMMAND - ${CMAKE_COMMAND} -E remove_directory ${FLYCV_INSTALL_DIR} && - ${CMAKE_COMMAND} -E make_directory ${FLYCV_INSTALL_DIR} && - ${CMAKE_COMMAND} -E rename ${FLYCV_SOURCE_DIR}/lib/ - ${FLYCV_LIB_DIR} && ${CMAKE_COMMAND} -E copy_directory - ${FLYCV_SOURCE_DIR}/include ${FLYCV_INC_DIR} - BUILD_BYPRODUCTS ${FLYCV_COMPILE_LIB}) +if(ANDROID) + ExternalProject_Add( + ${FLYCV_PROJECT} + ${EXTERNAL_PROJECT_LOG_ARGS} + URL ${FLYCV_URL} + PREFIX ${FLYCV_PREFIX_DIR} + DOWNLOAD_NO_PROGRESS 1 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + UPDATE_COMMAND "" + INSTALL_COMMAND + ${CMAKE_COMMAND} -E remove_directory ${FLYCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E make_directory ${FLYCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E make_directory ${FLYCV_INSTALL_DIR}/lib && + ${CMAKE_COMMAND} -E rename ${FLYCV_SOURCE_DIR}/lib/${ANDROID_ABI} + ${FLYCV_LIB_DIR} && ${CMAKE_COMMAND} -E copy_directory + ${FLYCV_SOURCE_DIR}/include ${FLYCV_INC_DIR} + BUILD_BYPRODUCTS ${FLYCV_COMPILE_LIB}) +else() + ExternalProject_Add( + ${FLYCV_PROJECT} + ${EXTERNAL_PROJECT_LOG_ARGS} + URL ${FLYCV_URL} + PREFIX ${FLYCV_PREFIX_DIR} + DOWNLOAD_NO_PROGRESS 1 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + UPDATE_COMMAND "" + INSTALL_COMMAND + ${CMAKE_COMMAND} -E remove_directory ${FLYCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E make_directory ${FLYCV_INSTALL_DIR} && + ${CMAKE_COMMAND} -E rename ${FLYCV_SOURCE_DIR}/lib/ + ${FLYCV_LIB_DIR} && ${CMAKE_COMMAND} -E copy_directory + ${FLYCV_SOURCE_DIR}/include ${FLYCV_INC_DIR} + BUILD_BYPRODUCTS ${FLYCV_COMPILE_LIB}) +endif() add_library(external_flycv STATIC IMPORTED GLOBAL) set_property(TARGET external_flycv PROPERTY IMPORTED_LOCATION diff --git a/cmake/paddlelite.cmake b/cmake/paddlelite.cmake index a2489c34b32..1f807bfcecf 100644 --- a/cmake/paddlelite.cmake +++ b/cmake/paddlelite.cmake @@ -23,9 +23,15 @@ set(PADDLELITE_INSTALL_DIR ${THIRD_PARTY_PATH}/install/${PADDLELITE_FILENAME}) set(PADDLELITE_INC_DIR "${PADDLELITE_INSTALL_DIR}/include" CACHE PATH "paddlelite include directory." FORCE) -set(PADDLELITE_LIB_DIR - "${PADDLELITE_INSTALL_DIR}/lib/${ANDROID_ABI}" - CACHE PATH "paddlelite lib directory." FORCE) +if(ANDROID) + set(PADDLELITE_LIB_DIR + "${PADDLELITE_INSTALL_DIR}/lib/${ANDROID_ABI}" + CACHE PATH "paddlelite lib directory." FORCE) +else() + set(PADDLELITE_LIB_DIR + "${PADDLELITE_INSTALL_DIR}/lib/" + CACHE PATH "paddlelite lib directory." FORCE) +endif() set(CMAKE_BUILD_RPATH "${CMAKE_BUILD_RPATH}" "${PADDLELITE_LIB_DIR}") set(PADDLELITE_URL_PREFIX "https://bj.bcebos.com/fastdeploy/third_libs") diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7af04b9443b..6f3c65988b6 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -37,6 +37,12 @@ function(config_fastdeploy_executable_link_flags TARGET_NAME) endif() endfunction() +# Usage: add_fastdeploy_executable_cc_files(xxx_var vision detection) +function(add_fastdeploy_executable_cc_files CC_FILES_VAR FIELD SUB_FIELD) + file(GLOB_RECURSE _EXAMPLE_SRCS ${PROJECT_SOURCE_DIR}/examples/${FIELD}/${SUB_FIELD}/*/cpp/*.cc) + set(${CC_FILES_VAR} ${_EXAMPLE_SRCS} PARENT_SCOPE) +endfunction() + set(EXAMPLES_NUM 0) function(add_fastdeploy_executable FIELD CC_FILE) # temp target name/file var in function scope @@ -69,9 +75,22 @@ if(BUILD_EXAMPLES AND ENABLE_VISION) if(EXISTS ${PROJECT_SOURCE_DIR}/examples/vision) message(STATUS "") message(STATUS "*************FastDeploy Vision Examples Summary**********") - file(GLOB_RECURSE ALL_VISION_EXAMPLE_SRCS ${PROJECT_SOURCE_DIR}/examples/vision/*/*/cpp/*.cc) - foreach(_CC_FILE ${ALL_VISION_EXAMPLE_SRCS}) - add_fastdeploy_executable(vision ${_CC_FILE}) + set(ALL_VISION_SUD_FIELDS classification + detection + facedet + faceid + keypointdetection + matting + ocr + segmentation) + if(NOT ANDROID) + list(APPEND ALL_VISION_SUD_FIELDS tracking) + endif() + foreach(_SUB_FIELD ${ALL_VISION_SUD_FIELDS}) + add_fastdeploy_executable_cc_files(_SUB_CC_FILES vision ${_SUB_FIELD}) + foreach(_CC_FILE ${_SUB_CC_FILES}) + add_fastdeploy_executable(vision ${_CC_FILE}) + endforeach() endforeach() message(STATUS " [FastDeploy Executable Path] : ${EXECUTABLE_OUTPUT_PATH}") endif() diff --git a/fastdeploy/vision/tracking/pptracking/model.cc b/fastdeploy/vision/tracking/pptracking/model.cc index 064892889b5..97d4e1ab948 100644 --- a/fastdeploy/vision/tracking/pptracking/model.cc +++ b/fastdeploy/vision/tracking/pptracking/model.cc @@ -14,7 +14,6 @@ #include "fastdeploy/vision/tracking/pptracking/model.h" #include "yaml-cpp/yaml.h" -#include "paddle2onnx/converter.h" namespace fastdeploy { namespace vision { From 430dc0fa8f5793d84160ce8551bbddb2a2848637 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Mon, 31 Oct 2022 06:29:04 +0000 Subject: [PATCH 14/16] remove debug log --- fastdeploy/vision/common/processors/resize.cc | 2 -- fastdeploy/vision/detection/ppdet/ppyoloe.cc | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/fastdeploy/vision/common/processors/resize.cc b/fastdeploy/vision/common/processors/resize.cc index 5ff416809b9..eb1932abc0f 100644 --- a/fastdeploy/vision/common/processors/resize.cc +++ b/fastdeploy/vision/common/processors/resize.cc @@ -18,7 +18,6 @@ namespace fastdeploy { namespace vision { bool Resize::ImplByOpenCV(Mat* mat) { - std::cout << "imple by opencv" << std::endl; if (mat->layout != Layout::HWC) { FDERROR << "Resize: The format of input is not HWC." << std::endl; return false; @@ -57,7 +56,6 @@ bool Resize::ImplByOpenCV(Mat* mat) { #ifdef ENABLE_FLYCV bool Resize::ImplByFalconCV(Mat* mat) { - std::cout << "impl by flycv" << std::endl; if (mat->layout != Layout::HWC) { FDERROR << "Resize: The format of input is not HWC." << std::endl; return false; diff --git a/fastdeploy/vision/detection/ppdet/ppyoloe.cc b/fastdeploy/vision/detection/ppdet/ppyoloe.cc index ae54a13d75b..c041d3ec209 100644 --- a/fastdeploy/vision/detection/ppdet/ppyoloe.cc +++ b/fastdeploy/vision/detection/ppdet/ppyoloe.cc @@ -160,14 +160,8 @@ bool PPYOLOE::BuildPreprocessPipelineFromConfig() { processors_.push_back(std::make_shared()); } - for (size_t i = 0; i < processors_.size(); ++i) { - std::cout << "Before " << i << " " << processors_[i]->Name() << std::endl; - } // Fusion will improve performance FuseTransforms(&processors_); - for (size_t i = 0; i < processors_.size(); ++i) { - std::cout << "After " << i << " " << processors_[i]->Name() << std::endl; - } return true; } @@ -269,16 +263,12 @@ bool PPYOLOE::Postprocess(std::vector& infer_result, bool PPYOLOE::Predict(cv::Mat* im, DetectionResult* result) { Mat mat(*im); - TimeCounter tc; - tc.Start(); std::vector processed_data; if (!Preprocess(&mat, &processed_data)) { FDERROR << "Failed to preprocess input data while using model:" << ModelName() << "." << std::endl; return false; } - tc.End(); - std::cout << "Preprocess Time: " << tc.Duration() << std::endl; float* tmp = static_cast(processed_data[1].Data()); std::vector infer_result; From 54271e3f8ab9a80214b454687c3606201b160836 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Mon, 31 Oct 2022 11:49:28 +0000 Subject: [PATCH 15/16] remove function --- fastdeploy/vision.h | 24 --------------------- fastdeploy/vision/common/processors/base.cc | 18 ++++++++++++++++ fastdeploy/vision/common/processors/base.h | 7 ++++++ 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/fastdeploy/vision.h b/fastdeploy/vision.h index ff308c75ff1..f69129b7612 100755 --- a/fastdeploy/vision.h +++ b/fastdeploy/vision.h @@ -53,27 +53,3 @@ #endif #include "fastdeploy/vision/visualize/visualize.h" - -namespace fastdeploy { -namespace vision { -/*! @brief Enable using FlyCV to process image while deploy vision models. Currently, FlyCV in only available on ARM(Linux aarch64/Android), so will fallback to using OpenCV in other platform - */ -inline void EnableFlyCV() { -#ifdef ENABLE_FLYCV - Processor::default_lib = ProcLib::FLYCV; - FDINFO << "Will change to use image processing library " - << Processor::default_lib << std::endl; -#else - FDWARNING << "FastDeploy didn't compile with FlyCV, " - "will fallback to use OpenCV instead." - << std::endl; -#endif -} - -/// Disable using FlyCV to process image while deploy vision models. -inline void DisableFlyCV() { - Processor::default_lib = ProcLib::OPENCV; -} - -} // namespace vision -} // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/base.cc b/fastdeploy/vision/common/processors/base.cc index 7c94a03f06d..4e26297020f 100644 --- a/fastdeploy/vision/common/processors/base.cc +++ b/fastdeploy/vision/common/processors/base.cc @@ -45,5 +45,23 @@ bool Processor::operator()(Mat* mat, ProcLib lib) { return ImplByOpenCV(mat); } +void EnableFlyCV() { +#ifdef ENABLE_FLYCV + Processor::default_lib = ProcLib::FLYCV; + FDINFO << "Will change to use image processing library " + << Processor::default_lib << std::endl; +#else + FDWARNING << "FastDeploy didn't compile with FlyCV, " + "will fallback to use OpenCV instead." + << std::endl; +#endif +} + +void DisableFlyCV() { + Processor::default_lib = ProcLib::OPENCV; + FDINFO << "Will change to use image processing library " + << Processor::default_lib << std::endl; +} + } // namespace vision } // namespace fastdeploy diff --git a/fastdeploy/vision/common/processors/base.h b/fastdeploy/vision/common/processors/base.h index 9349f9cb964..0ed3d0b6f37 100644 --- a/fastdeploy/vision/common/processors/base.h +++ b/fastdeploy/vision/common/processors/base.h @@ -22,6 +22,13 @@ namespace fastdeploy { namespace vision { +/*! @brief Enable using FlyCV to process image while deploy vision models. Currently, FlyCV in only available on ARM(Linux aarch64/Android), so will fallback to using OpenCV in other platform + */ +void EnableFlyCV(); + +/// Disable using FlyCV to process image while deploy vision models. +void DisableFlyCV(); + class FASTDEPLOY_DECL Processor { public: // default_lib has the highest priority From 9fd32df12a17cba15186d97e539a09ef78f43d56 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Mon, 31 Oct 2022 12:11:17 +0000 Subject: [PATCH 16/16] remove function --- fastdeploy/vision/common/processors/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastdeploy/vision/common/processors/base.h b/fastdeploy/vision/common/processors/base.h index 0ed3d0b6f37..d985f348fcd 100644 --- a/fastdeploy/vision/common/processors/base.h +++ b/fastdeploy/vision/common/processors/base.h @@ -24,10 +24,10 @@ namespace vision { /*! @brief Enable using FlyCV to process image while deploy vision models. Currently, FlyCV in only available on ARM(Linux aarch64/Android), so will fallback to using OpenCV in other platform */ -void EnableFlyCV(); +FASTDEPLOY_DECL void EnableFlyCV(); /// Disable using FlyCV to process image while deploy vision models. -void DisableFlyCV(); +FASTDEPLOY_DECL void DisableFlyCV(); class FASTDEPLOY_DECL Processor { public: