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
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")