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.

pslite.cmake 801 B

12345678910111213141516171819202122
  1. if (ENABLE_GITEE)
  2. set(REQ_URL "https://gitee.com/mirrors/ps-lite/repository/archive/34fd45cae457d59850fdcb2066467778d0673f21.zip")
  3. set(MD5 "0d1543b8dcb0bc3610637e1643c94eb4")
  4. else()
  5. set(REQ_URL "https://github.com/dmlc/ps-lite/archive/34fd45cae457d59850fdcb2066467778d0673f21.zip")
  6. set(MD5 "393c0e27b68bfaf96718caa3aa96f5a3")
  7. endif ()
  8. set(pslite_USE_STATIC_LIBS ON)
  9. if (${ENABLE_IBVERBS} STREQUAL "ON")
  10. set(pslite_CXXFLAGS "USE_IBVERBS=1")
  11. endif()
  12. mindspore_add_pkg(pslite
  13. LIBS ps
  14. URL ${REQ_URL}
  15. MD5 ${MD5}
  16. PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/pslite/ps_lite.patch001
  17. ONLY_MAKE True
  18. ONLY_MAKE_INCS include/*
  19. ONLY_MAKE_LIBS build/*)
  20. include_directories(${pslite_INC})
  21. add_library(mindspore::pslite ALIAS pslite::ps)