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.

ompi.cmake 590 B

123456789101112131415161718
  1. if(ENABLE_GITEE)
  2. set(REQ_URL "https://gitee.com/mirrors/ompi/repository/archive/v4.0.3.tar.gz")
  3. set(MD5 "f76abc92ae870feff186d790f40ae762")
  4. else()
  5. set(REQ_URL "https://github.com/open-mpi/ompi/archive/v4.0.3.tar.gz")
  6. set(MD5 "86cb724e8fe71741ad3be4e7927928a2")
  7. endif()
  8. set(ompi_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
  9. mindspore_add_pkg(ompi
  10. VER 4.0.3
  11. LIBS mpi
  12. URL ${REQ_URL}
  13. MD5 ${MD5}
  14. PRE_CONFIGURE_COMMAND ./autogen.pl
  15. CONFIGURE_COMMAND ./configure)
  16. include_directories(${ompi_INC})
  17. add_library(mindspore::ompi ALIAS ompi::mpi)