Skip to content

Commit

Permalink
INTEL: restore heap-arrays flag
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Mar 15, 2024
1 parent 9b0a36b commit d04a810
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/ecwam_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(vectorization_flags "-march=core-avx2 -no-fma")
set(fpmodel_flags "-fp-model precise -fp-speculation=safe")
set(transcendentals_flags "-fast-transcendentals")
set(heap_arrays_flags "-heap-arrays 32")

elseif(CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC")
set(autopromote_flags "-r8")
Expand Down Expand Up @@ -58,6 +59,9 @@ endif()
if( DEFINED transcendentals_flags )
ecbuild_add_fortran_flags( "${transcendentals_flags}" NAME transcendentals )
endif()
if( DEFINED heap_arrays_flags )
ecbuild_add_fortran_flags( "${heap_arrays_flags}" NAME heap_arrays )
endif()

if( CMAKE_BUILD_TYPE MATCHES "Debug" )
foreach( debug_flag fpe initsnan checkbounds )
Expand Down

0 comments on commit d04a810

Please sign in to comment.