summary.cmake 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. function(ultra_infer_summary)
  15. message(STATUS "")
  16. message(STATUS "*************UltraInfer Building Summary**********")
  17. message(STATUS " CMake version : ${CMAKE_VERSION}")
  18. message(STATUS " CMake command : ${CMAKE_COMMAND}")
  19. message(STATUS " System : ${CMAKE_SYSTEM_NAME}")
  20. message(STATUS " C++ compiler : ${CMAKE_CXX_COMPILER}")
  21. message(STATUS " C++ standard : ${CMAKE_CXX_STANDARD}")
  22. message(STATUS " C++ cuda standard : ${CMAKE_CUDA_STANDARD}")
  23. message(STATUS " C++ compiler version : ${CMAKE_CXX_COMPILER_VERSION}")
  24. message(STATUS " CXX flags : ${CMAKE_CXX_FLAGS}")
  25. message(STATUS " EXE linker flags : ${CMAKE_EXE_LINKER_FLAGS}")
  26. message(STATUS " Shared linker flags : ${CMAKE_SHARED_LINKER_FLAGS}")
  27. message(STATUS " Build type : ${CMAKE_BUILD_TYPE}")
  28. get_directory_property(tmp DIRECTORY ${PROJECT_SOURCE_DIR} COMPILE_DEFINITIONS)
  29. message(STATUS " Compile definitions : ${tmp}")
  30. message(STATUS " CMAKE_PREFIX_PATH : ${CMAKE_PREFIX_PATH}")
  31. message(STATUS " CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
  32. message(STATUS " CMAKE_MODULE_PATH : ${CMAKE_MODULE_PATH}")
  33. message(STATUS "")
  34. message(STATUS " UltraInfer version : ${ULTRAINFER_VERSION}")
  35. message(STATUS " ENABLE_ORT_BACKEND : ${ENABLE_ORT_BACKEND}")
  36. message(STATUS " ENABLE_RKNPU2_BACKEND : ${ENABLE_RKNPU2_BACKEND}")
  37. message(STATUS " ENABLE_HORIZON_BACKEND : ${ENABLE_HORIZON_BACKEND}")
  38. message(STATUS " ENABLE_SOPHGO_BACKEND : ${ENABLE_SOPHGO_BACKEND}")
  39. message(STATUS " ENABLE_PADDLE_BACKEND : ${ENABLE_PADDLE_BACKEND}")
  40. message(STATUS " ENABLE_LITE_BACKEND : ${ENABLE_LITE_BACKEND}")
  41. message(STATUS " ENABLE_POROS_BACKEND : ${ENABLE_POROS_BACKEND}")
  42. message(STATUS " ENABLE_TRT_BACKEND : ${ENABLE_TRT_BACKEND}")
  43. message(STATUS " ENABLE_OPENVINO_BACKEND : ${ENABLE_OPENVINO_BACKEND}")
  44. message(STATUS " ENABLE_TVM_BACKEND : ${ENABLE_TVM_BACKEND}")
  45. message(STATUS " ENABLE_BENCHMARK : ${ENABLE_BENCHMARK}")
  46. message(STATUS " ENABLE_VISION : ${ENABLE_VISION}")
  47. message(STATUS " ENABLE_TEXT : ${ENABLE_TEXT}")
  48. message(STATUS " ENABLE_FLYCV : ${ENABLE_FLYCV}")
  49. message(STATUS " ENABLE_CVCUDA : ${ENABLE_CVCUDA}")
  50. message(STATUS " WITH_GPU : ${WITH_GPU}")
  51. message(STATUS " WITH_IPU : ${WITH_IPU}")
  52. message(STATUS " WITH_OPENCL : ${WITH_OPENCL}")
  53. message(STATUS " WITH_TESTING : ${WITH_TESTING}")
  54. message(STATUS " WITH_ASCEND : ${WITH_ASCEND}")
  55. message(STATUS " WITH_DIRECTML : ${WITH_DIRECTML}")
  56. message(STATUS " WITH_TIMVX : ${WITH_TIMVX}")
  57. message(STATUS " WITH_KUNLUNXIN : ${WITH_KUNLUNXIN}")
  58. message(STATUS " WITH_CAPI : ${WITH_CAPI}")
  59. message(STATUS " WITH_CSHARPAPI : ${WITH_CSHARPAPI}")
  60. if(ENABLE_ORT_BACKEND)
  61. message(STATUS " ONNXRuntime version : ${ONNXRUNTIME_VERSION}")
  62. endif()
  63. if(ENABLE_PADDLE_BACKEND)
  64. message(STATUS " Paddle Inference version : ${PADDLEINFERENCE_VERSION}")
  65. endif()
  66. if(ENABLE_POROS_BACKEND)
  67. message(STATUS " Poros version : ${POROS_VERSION}")
  68. endif()
  69. if(ENABLE_OPENVINO_BACKEND)
  70. message(STATUS " OpenVINO version : ${OPENVINO_VERSION}")
  71. endif()
  72. if(WITH_GPU)
  73. message(STATUS " CUDA_DIRECTORY : ${CUDA_DIRECTORY}")
  74. message(STATUS " TRT_DRECTORY : ${TRT_DIRECTORY}")
  75. endif()
  76. if (${BUILD_ULTRAINFER_PYTHON})
  77. message(STATUS " Python executable : ${PYTHON_EXECUTABLE}")
  78. message(STATUS " Python includes : ${PYTHON_INCLUDE_DIR}")
  79. endif()
  80. if(ENABLE_LITE_BACKEND)
  81. message(STATUS " Paddle Lite version : ${PADDLELITE_VERSION}")
  82. endif()
  83. endfunction()