Skip to content

Commit 9c2380c

Browse files
committed
integer type flag for nvfortran
1 parent a5e7d99 commit 9c2380c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ if(BUILD_INDEX64)
5656
set(CPE_ENV $ENV{PE_ENV})
5757
if(CPE_ENV STREQUAL "CRAY")
5858
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -sinteger64")
59+
elseif(CPE_ENV STREQUAL "NVIDIA")
60+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -i8")
5961
else()
6062
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-integer-8")
6163
endif()

0 commit comments

Comments
 (0)