From d04a810068c6ebfbee37fc194bea0a1d13661ed8 Mon Sep 17 00:00:00 2001 From: Ahmad Nawab Date: Fri, 15 Mar 2024 15:31:45 +0000 Subject: [PATCH] INTEL: restore heap-arrays flag --- cmake/ecwam_compile_flags.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/ecwam_compile_flags.cmake b/cmake/ecwam_compile_flags.cmake index f4685757..d5a37b2e 100644 --- a/cmake/ecwam_compile_flags.cmake +++ b/cmake/ecwam_compile_flags.cmake @@ -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") @@ -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 )