Skip to content

Commit

Permalink
Merge pull request #56 from ecmwf/bugfix/crayflag_Gfast
Browse files Browse the repository at this point in the history
Replace no longer supported -Gfast Cray flag
  • Loading branch information
tlmquintino committed Jun 23, 2023
2 parents a5502ea + f4e485e commit 7437239
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/compiler_flags/Cray_C.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# nor does it submit to any jurisdiction.

set( CMAKE_C_FLAGS_RELEASE "-O3 -hfp3 -hscalar3 -hvector3 -DNDEBUG" CACHE STRING "Release C flags" FORCE )
set( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -hfp1 -Gfast -DNDEBUG" CACHE STRING "Release-with-debug-info C flags" FORCE )
set( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -hfp1 -G2 -DNDEBUG" CACHE STRING "Release-with-debug-info C flags" FORCE )
set( CMAKE_C_FLAGS_PRODUCTION "-O2 -hfp1 -G2" CACHE STRING "Production C flags" FORCE )
set( CMAKE_C_FLAGS_BIT "-O2 -hfp1 -G2 -hflex_mp=conservative -DNDEBUG" CACHE STRING "Bit-reproducible C flags" FORCE )
set( CMAKE_C_FLAGS_DEBUG "-O0 -G0" CACHE STRING "Debug Cflags" FORCE )
2 changes: 1 addition & 1 deletion cmake/compiler_flags/Cray_CXX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# nor does it submit to any jurisdiction.

set( CMAKE_CXX_FLAGS_RELEASE "-O3 -hfp3 -hscalar3 -hvector3 -DNDEBUG" CACHE STRING "Release C++ flags" FORCE )
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -hfp1 -Gfast -DNDEBUG" CACHE STRING "Release-with-debug-info C++ flags" FORCE )
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -hfp1 -G2 -DNDEBUG" CACHE STRING "Release-with-debug-info C++ flags" FORCE )
set( CMAKE_CXX_FLAGS_PRODUCTION "-O2 -hfp1" CACHE STRING "Production C++ flags" FORCE )
set( CMAKE_CXX_FLAGS_BIT "-O2 -hfp1 -hflex_mp=conservative -DNDEBUG" CACHE STRING "Bit-reproducible C++ flags" FORCE )
set( CMAKE_CXX_FLAGS_DEBUG "-G0 -O0" CACHE STRING "Debug CXX flags" FORCE )
2 changes: 1 addition & 1 deletion cmake/compiler_flags/Cray_Fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# -emf activates .mods and uses lower case
# -rmoid produces a listing file
set( CMAKE_Fortran_FLAGS_RELEASE "-emf -rmoid -N 1023 -O3 -hfp3 -hscalar3 -hvector3 -DNDEBUG" CACHE STRING "Release Fortran flags" FORCE )
set( CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-emf -rmoid -N 1023 -O2 -hfp1 -Gfast -DNDEBUG" CACHE STRING "Release-with-debug-info Fortran flags" FORCE )
set( CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-emf -rmoid -N 1023 -O2 -hfp1 -G2 -DNDEBUG" CACHE STRING "Release-with-debug-info Fortran flags" FORCE )
set( CMAKE_Fortran_FLAGS_PRODUCTION "-emf -rmoid -N 1023 -O2 -hfp1 -G2" CACHE STRING "Production Fortran flags" FORCE )
set( CMAKE_Fortran_FLAGS_BIT "-emf -rmoid -N 1023 -O2 -hfp1 -G2 -hflex_mp=conservative -hadd_paren -DNDEBUG" CACHE STRING "Bit-reproducible Fortran flags" FORCE )
set( CMAKE_Fortran_FLAGS_DEBUG "-emf -rmoid -N 1023 -O0 -G0" CACHE STRING "Debug Fortran flags" FORCE )

0 comments on commit 7437239

Please sign in to comment.