download ompi from gitee

This commit is contained in:
ZPaC 2020-10-16 14:31:47 +08:00
parent fa37f8fde3
commit 07f77eb4b6
1 changed files with 9 additions and 2 deletions

View File

@ -1,10 +1,17 @@
if (ENABLE_GITEE)
set(REQ_URL "https://gitee.com/mirrors/ompi/repository/archive/v4.0.3.tar.gz")
set(MD5 "f76abc92ae870feff186d790f40ae762")
else()
set(REQ_URL "https://github.com/open-mpi/ompi/archive/v4.0.3.tar.gz")
set(MD5 "86cb724e8fe71741ad3be4e7927928a2")
endif ()
set(ompi_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2") set(ompi_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
mindspore_add_pkg(ompi mindspore_add_pkg(ompi
VER 4.0.3 VER 4.0.3
LIBS mpi LIBS mpi
URL https://github.com/open-mpi/ompi/archive/v4.0.3.tar.gz URL ${REQ_URL}
MD5 86cb724e8fe71741ad3be4e7927928a2 MD5 ${MD5}
PRE_CONFIGURE_COMMAND ./autogen.pl PRE_CONFIGURE_COMMAND ./autogen.pl
CONFIGURE_COMMAND ./configure) CONFIGURE_COMMAND ./configure)
include_directories(${ompi_INC}) include_directories(${ompi_INC})