On 2/6/20 6:18 AM, Daniel Arndt wrote:
>
> You can probably tell better than any of us if this works. Just try. It might
> quite well be that the compiler doesn't need any extra flags for MPI. Also, it
> looks like the MPI version could not be detected. This implies that the
> library doesn't use newer features but should still work. If you know to which
> standard the MPI installation is conforming, you could try to set it via
>
> cmake -DMPI_VERSION=...
>
> yourself.
> If there any more problems, feel free to tell us.
But separately, we try to obtain the MPI version from the file mpi.h via the
following cmake code in cmake/modules/FindMPI.h:
DEAL_II_FIND_FILE(MPI_MPI_H
NAMES mpi.h
HINTS ${MPI_CXX_INCLUDE_PATH} ${MPI_C_INCLUDE_PATH}
)
IF(NOT MPI_MPI_H MATCHES "-NOTFOUND" AND NOT DEFINED MPI_VERSION)
FILE(STRINGS "${MPI_MPI_H}" MPI_VERSION_MAJOR_STRING
REGEX "#define.*MPI_VERSION")
STRING(REGEX REPLACE "^.*MPI_VERSION[ ]+([0-9]+).*" "\\1"
MPI_VERSION_MAJOR "${MPI_VERSION_MAJOR_STRING}"
)
FILE(STRINGS ${MPI_MPI_H} MPI_VERSION_MINOR_STRING
REGEX "#define.*MPI_SUBVERSION")
STRING(REGEX REPLACE "^.*MPI_SUBVERSION[ ]+([0-9]+).*" "\\1"
MPI_VERSION_MINOR "${MPI_VERSION_MINOR_STRING}"
)
SET(MPI_VERSION "${MPI_VERSION_MAJOR}.${MPI_VERSION_MINOR}")
ENDIF()
It would be interesting to see why that files. Can you try and find out which
mpi.h on your system is being used, and attach it to a reply?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/