Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow argument mismatch in older MPI API for new versions of GCC #25

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow argument mismatch in older MPI API for new versions of GCC
  • Loading branch information
matthewsucar committed Oct 12, 2022
commit d5db6b4ad1442519e01009bc38f2fe4f9d69662c
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ ENDIF(CMAKE_SYSTEM_NAME MATCHES BlueGeneQ-static)
# stuff for C/C++ calls to Fortran -- still needs to be done properly...
IF(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffixed-form -ffixed-line-length-132 -cpp " )
IF(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 9.5.0)
#This feature was introduced in gfortran 10
#the last public release prior was 9.5 and
#version_greater_equal was introduced recently so we implement
#for compatibility.
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
ENDIF(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 9.5.0)
ENDIF(CMAKE_Fortran_COMPILER_ID MATCHES GNU)

IF(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
Expand Down