We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06948e commit 684c266Copy full SHA for 684c266
CMAKE/CheckBLACSCompilerFlags.cmake
@@ -80,6 +80,12 @@ if( "${CMAKE_Fortran_FLAGS_RELEASE}" MATCHES "O[3-9]" )
80
"${CMAKE_Fortran_FLAGS_RELEASE}" )
81
set( CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE}"
82
CACHE STRING "Flags used by the compiler during release builds" FORCE )
83
+elseif ( "${CMAKE_Fortran_FLAGS_RELEASE}" MATCHES "Ofast" )
84
+ message( STATUS "Reducing RELEASE optimization level to O2" )
85
+ string( REGEX REPLACE "Ofast" "O2" CMAKE_Fortran_FLAGS_RELEASE
86
+ "${CMAKE_Fortran_FLAGS_RELEASE}" )
87
+ set( CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE}"
88
+ CACHE STRING "Flags used by the compiler during release builds" FORCE )
89
endif()
90
91
0 commit comments