Skip to content

Commit

Permalink
Merge pull request #617 from ajaypanyala/master
Browse files Browse the repository at this point in the history
use integer64 flag for Cray Fortran compiler
  • Loading branch information
weslleyspereira authored Apr 12, 2022
2 parents 2821ead + f3e8010 commit 5559978
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMAKE/CheckLAPACKCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ if ( FORTRAN_ILP )
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -integer-size 64")
endif()
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-integer-8")
set(CPE_ENV $ENV{PE_ENV})
if(CPE_ENV STREQUAL "CRAY")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -sinteger64")
elseif(CPE_ENV STREQUAL "NVIDIA")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -i8")
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-integer-8")
endif()
endif()
endif()

Expand Down

0 comments on commit 5559978

Please sign in to comment.