]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove obsolete CMake test for `MPI_SEEK_SET` 14923/head
authorMichael Schlottke-Lakemper <michael@sloede.com>
Mon, 20 Mar 2023 14:31:30 +0000 (15:31 +0100)
committerMichael Schlottke-Lakemper <michael@sloede.com>
Mon, 20 Mar 2023 14:31:30 +0000 (15:31 +0100)
cmake/configure/configure_10_mpi.cmake
cmake/modules/FindDEAL_II_MPI.cmake

index 3b2c1df1cfcd94f07f23d16e7596629aa2097472..d1975e31d3600d6e8a7390ed779924a0102af525 100644 (file)
@@ -30,15 +30,6 @@ macro(feature_mpi_find_external var)
   if(MPI_FOUND)
     set(${var} TRUE)
 
-    if(NOT MPI_HAVE_MPI_SEEK_SET)
-      message(STATUS
-        "Could not find a sufficient MPI version: "
-        "Your MPI implementation must define MPI_SEEK_SET.")
-      set(MPI_ADDITIONAL_ERROR_STRING
-        "Your MPI implementation must define MPI_SEEK_SET.\n")
-      set(${var} FALSE)
-    endif()
-
     if(MPI_VERSION VERSION_LESS "3.0")
       message(STATUS
         "Could not find a sufficient MPI version: "
index 7099787697b00559820a1abeb1bb40ff5c3755d1..48a364dd8bd5370b2a59d1c05c5f359b5c6d56db 100644 (file)
@@ -25,7 +25,6 @@
 #   MPI_VERSION_MAJOR
 #   MPI_VERSION_MINOR
 #   OMPI_VERSION
-#   MPI_HAVE_MPI_SEEK_SET
 #
 
 #
@@ -52,28 +51,6 @@ endif()
 
 find_package(MPI)
 
-#
-# Older versions of MPI may not have MPI_SEEK_SET, which we
-# require. Strangely, unlike MPICH, OpenMPI needs the correct link libraries
-# for this to compile, not *just* the correct include directories.
-#
-
-clear_cmake_required()
-set(CMAKE_REQUIRED_FLAGS ${DEAL_II_CXX_FLAGS_SAVED} ${MPI_CXX_COMPILE_FLAGS} ${MPI_CXX_LINK_FLAGS})
-set(CMAKE_REQUIRED_INCLUDES ${MPI_CXX_INCLUDE_PATH})
-set(CMAKE_REQUIRED_LIBRARIES ${DEAL_II_LINKER_FLAGS_SAVED} ${MPI_LIBRARIES})
-CHECK_CXX_SOURCE_COMPILES(
-  "
-  #include <mpi.h>
-  #ifndef MPI_SEEK_SET
-  #  error
-  #endif
-  int main() {}
-  "
-  MPI_HAVE_MPI_SEEK_SET
-  )
-reset_cmake_required()
-
 #
 # Newer versions of FindMPI.cmake only populate MPI_CXX_* (and MPI_C_*,
 # MPI_Fortran_*) variables. Let's rename these version names
@@ -179,5 +156,4 @@ process_feature(MPI
     MPI_LIB
     MPI_LIBRARY
     MPI_MPI_H
-    MPI_HAVE_MPI_SEEK_SET
   )

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.