Browse Source

Add support for system pkgs: ompi

feature/build-system-rewrite
Damien Nguyen 4 years ago
parent
commit
ac9b9e7743
No known key found for this signature in database GPG Key ID: 1E9F14CEB9969EF8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      cmake/external_libs/ompi.cmake

+ 4
- 4
cmake/external_libs/ompi.cmake View File

@@ -8,13 +8,13 @@ endif()

set(ompi_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
mindspore_add_pkg(
ompi
VER 4.0.3
MPI
VER 3.0 # NB: in the case of MPI, this is the MPI standard version, not the actual library version
LIBS mpi
LIBS_CMAKE_NAMES C
URL ${REQ_URL}
MD5 ${MD5}
PRE_CONFIGURE_COMMAND ./autogen.pl
CONFIGURE_COMMAND ./configure
TARGET_ALIAS mindspore::ompi ompi::mpi
)
TARGET_ALIAS mindspore::ompi MPI::MPI_C)
include_directories(${ompi_INC})

Loading…
Cancel
Save