]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Remove OpenMPI specific version detection
authorMatthias Maier <tamiko@43-1.org>
Tue, 1 May 2018 23:30:39 +0000 (18:30 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 1 May 2018 23:30:39 +0000 (18:30 -0500)
cmake/modules/FindMPI.cmake
cmake/setup_write_config.cmake

index e88f0d40539d56e72edc5ca41e760968f7782cfd..5b5efb019523eb0462e7b393a38275f4de682e02 100644 (file)
@@ -102,32 +102,6 @@ IF(NOT MPI_MPI_H MATCHES "-NOTFOUND" AND NOT DEFINED MPI_VERSION)
     SET(MPI_VERSION_MAJOR)
     SET(MPI_VERSION_MINOR)
   ENDIF()
-
-  # OMPI specific version number:
-  FILE(STRINGS ${MPI_MPI_H} OMPI_VERSION_MAJOR_STRING
-    REGEX "#define.*OMPI_MAJOR_VERSION")
-  STRING(REGEX REPLACE "^.*OMPI_MAJOR_VERSION[ ]+([0-9]+).*" "\\1"
-    OMPI_VERSION_MAJOR "${OMPI_VERSION_MAJOR_STRING}"
-    )
-  FILE(STRINGS ${MPI_MPI_H} OMPI_VERSION_MINOR_STRING
-    REGEX "#define.*OMPI_MINOR_VERSION")
-  STRING(REGEX REPLACE "^.*OMPI_MINOR_VERSION[ ]+([0-9]+).*" "\\1"
-    OMPI_VERSION_MINOR "${OMPI_VERSION_MINOR_STRING}"
-    )
-  FILE(STRINGS ${MPI_MPI_H} OMPI_VERSION_RELEASE_STRING
-    REGEX "#define.*OMPI_RELEASE_VERSION")
-  STRING(REGEX REPLACE "^.*OMPI_RELEASE_VERSION[ ]+([0-9]+).*" "\\1"
-    OMPI_VERSION_SUBMINOR "${OMPI_VERSION_RELEASE_STRING}"
-    )
-  SET(OMPI_VERSION
-    "${OMPI_VERSION_MAJOR}.${OMPI_VERSION_MINOR}.${OMPI_VERSION_SUBMINOR}"
-    )
-  IF("${OMPI_VERSION}" STREQUAL "..")
-    SET(OMPI_VERSION)
-    SET(OMPI_VERSION_MAJOR)
-    SET(OMPI_VERSION_MINOR)
-    SET(OMPI_VERSION_SUBMINOR)
-  ENDIF()
 ENDIF()
 
 DEAL_II_PACKAGE_HANDLE(MPI
index 60e6efcd476f89de6b621dd460a3e47a150135cd..d6a98a328c915755710f537b7ea24a91d7dcb350 100644 (file)
@@ -207,9 +207,6 @@ FOREACH(_feature ${_deal_ii_features_sorted})
     IF(_feature MATCHES "THREADS" AND DEFINED TBB_VERSION)
       _detailed("#            TBB_VERSION = ${TBB_VERSION}\n")
     ENDIF()
-    IF(_feature MATCHES "MPI" AND DEFINED OMPI_VERSION)
-      _detailed("#            OMPI_VERSION = ${OMPI_VERSION}\n")
-    ENDIF()
     IF(_feature MATCHES "CUDA" AND DEFINED CUDA_COMPUTE_CAPABILITY)
       _detailed("#            CMAKE_CUDA_COMPILER = ${CMAKE_CUDA_COMPILER}\n")
       _detailed("#            CUDA_COMPUTE_CAPABILITY = ${CUDA_COMPUTE_CAPABILITY_MAJOR}.${CUDA_COMPUTE_CAPABILITY_MINOR}\n")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.