From 5df8a47eea2da929bcef75eea948b2773eb067ad Mon Sep 17 00:00:00 2001 From: Philippe Blain Date: Tue, 24 May 2022 10:53:01 -0400 Subject: [PATCH] machines: eccc: set OMP_STACKSIZE Since d1e972a (Update OMP (CICE-Consortium#680), 2022-02-18), OpenMP threading is active in 'ice_transport_remap.F90', and the default OpenMP stack size needs to be adjusted to avoid stack overflows. Add that variable for the new machines, setting it to a 64 Mb size as used for other machines. --- configuration/scripts/machines/env.ppp5_intel | 3 +++ configuration/scripts/machines/env.ppp6_intel | 3 +++ configuration/scripts/machines/env.robert_intel | 3 +++ configuration/scripts/machines/env.underhill_intel | 3 +++ 4 files changed, 12 insertions(+) diff --git a/configuration/scripts/machines/env.ppp5_intel b/configuration/scripts/machines/env.ppp5_intel index d1b1957ea..3ad39ed1d 100644 --- a/configuration/scripts/machines/env.ppp5_intel +++ b/configuration/scripts/machines/env.ppp5_intel @@ -20,6 +20,9 @@ source /fs/ssm/main/opt/ssmuse/ssmuse-1.11/ssmuse_1.11_all/bin/ssmuse-boot.csh > set ssmuse=`which ssmuse-csh` source $ssmuse -d main/opt/hdf5-netcdf4/serial/shared/inteloneapi-2022.1.2/01 +# OpenMP +setenv OMP_STACKSIZE 64M + endif setenv ICE_MACHINE_MACHNAME ppp5 diff --git a/configuration/scripts/machines/env.ppp6_intel b/configuration/scripts/machines/env.ppp6_intel index 7aab171d4..e5deb7ffe 100644 --- a/configuration/scripts/machines/env.ppp6_intel +++ b/configuration/scripts/machines/env.ppp6_intel @@ -20,6 +20,9 @@ source /fs/ssm/main/opt/ssmuse/ssmuse-1.11/ssmuse_1.11_all/bin/ssmuse-boot.csh > set ssmuse=`which ssmuse-csh` source $ssmuse -d main/opt/hdf5-netcdf4/serial/shared/inteloneapi-2022.1.2/01 +# OpenMP +setenv OMP_STACKSIZE 64M + endif setenv ICE_MACHINE_MACHNAME ppp6 diff --git a/configuration/scripts/machines/env.robert_intel b/configuration/scripts/machines/env.robert_intel index e7ed62193..97d914aab 100644 --- a/configuration/scripts/machines/env.robert_intel +++ b/configuration/scripts/machines/env.robert_intel @@ -20,6 +20,9 @@ source /fs/ssm/main/opt/ssmuse/ssmuse-1.11/ssmuse_1.11_all/bin/ssmuse-boot.csh > set ssmuse=`which ssmuse-csh` source $ssmuse -d main/opt/hdf5-netcdf4/serial/shared/inteloneapi-2022.1.2/01 +# OpenMP +setenv OMP_STACKSIZE 64M + endif setenv ICE_MACHINE_MACHNAME robert diff --git a/configuration/scripts/machines/env.underhill_intel b/configuration/scripts/machines/env.underhill_intel index 4391ea0cf..7f15c4d0d 100644 --- a/configuration/scripts/machines/env.underhill_intel +++ b/configuration/scripts/machines/env.underhill_intel @@ -20,6 +20,9 @@ source /fs/ssm/main/opt/ssmuse/ssmuse-1.11/ssmuse_1.11_all/bin/ssmuse-boot.csh > set ssmuse=`which ssmuse-csh` source $ssmuse -d main/opt/hdf5-netcdf4/serial/shared/inteloneapi-2022.1.2/01 +# OpenMP +setenv OMP_STACKSIZE 64M + endif setenv ICE_MACHINE_MACHNAME underhill