You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

dependency_ms.cmake 840 B

123456789101112131415161718192021222324
  1. # Compile MindSpore
  2. message(STATUS "**********begin to compile MindSpore**********")
  3. set(MS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/third_party/mindspore)
  4. message(STATUS "MindSpore dir: ${MS_SOURCE_DIR}")
  5. message(STATUS "MindSpore compile method: -e${MS_BACKEND}")
  6. message(STATUS "MindSpore compile thread num: -j${THREAD_NUM}")
  7. message(STATUS "MindSpore version: -V${MS_VERSION}")
  8. if(MS_VERSION)
  9. set(MS_VERSION_OPTION -V${MS_VERSION})
  10. endif()
  11. set(EXEC_COMMAND bash ${MS_SOURCE_DIR}/build.sh -e${MS_BACKEND} ${MS_VERSION_OPTION} -j${THREAD_NUM})
  12. execute_process(
  13. COMMAND ${EXEC_COMMAND}
  14. WORKING_DIRECTORY ${MS_SOURCE_DIR}
  15. RESULT_VARIABLE RESULT
  16. )
  17. if(NOT RESULT EQUAL "0")
  18. message(FATAL_ERROR "error! when ${EXEC_COMMAND} in ${MS_SOURCE_DIR}")
  19. endif()
  20. message(STATUS "**********end to compile MindSpore**********")

A lightweight and high-performance service module that helps MindSpore developers efficiently deploy online inference services in the production environment.