Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/exregional_run_fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ case $MACHINE in
ulimit -a
APRUN="srun"
LD_LIBRARY_PATH="${UFS_WTHR_MDL_DIR}/FV3/ccpp/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
OMP_NUM_THREADS=4
;;
#
"JET")
ulimit -s unlimited
ulimit -a
APRUN="srun"
LD_LIBRARY_PATH="${UFS_WTHR_MDL_DIR}/FV3/ccpp/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
OMP_NUM_THREADS=4
;;
#
"ODIN")
Expand Down Expand Up @@ -480,6 +482,7 @@ set_file_param "${model_config_fp}" "nhours_fcst" "${FCST_LEN_HRS}"
set_file_param "${model_config_fp}" "ncores_per_node" "${NCORES_PER_NODE}"
set_file_param "${model_config_fp}" "quilting" "${dot_quilting_dot}"
set_file_param "${model_config_fp}" "print_esmf" "${dot_print_esmf_dot}"
set_file_param "${model_config_fp}" "atmos_nthreads" "${OMP_NUM_THREADS:-1}"
#
#-----------------------------------------------------------------------
#
Expand Down Expand Up @@ -536,8 +539,9 @@ fi
#-----------------------------------------------------------------------
#
export KMP_AFFINITY=scatter
export OMP_NUM_THREADS=1 #Needs to be 1 for dynamic build of CCPP with GFDL fast physics, was 2 before.
export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1} #Needs to be 1 for dynamic build of CCPP with GFDL fast physics, was 2 before.
export OMP_STACKSIZE=1024m

#
#-----------------------------------------------------------------------
#
Expand Down
4 changes: 2 additions & 2 deletions tests/baseline_configs/config.new_JPgrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ JPgrid_WIDE_HALO_WIDTH=6
DT_ATMOS="40"

LAYOUT_X="8"
LAYOUT_Y="6"
BLOCKSIZE="26"
LAYOUT_Y="12"
BLOCKSIZE="13"

if [ "$QUILTING" = "TRUE" ]; then
WRTCMP_write_groups="1"
Expand Down
7 changes: 7 additions & 0 deletions ush/generate_FV3SAR_wflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ settings="\
'queue_hpss_tag': ${QUEUE_HPSS_TAG}
'queue_fcst': ${QUEUE_FCST}
'queue_fcst_tag': ${QUEUE_FCST_TAG}
'machine': ${MACHINE}
#
# Workflow task names.
#
Expand All @@ -127,6 +128,12 @@ settings="\
'nnodes_run_fcst': ${NNODES_RUN_FCST}
'nnodes_run_post': ${NNODES_RUN_POST}
#
# Number of cores used for a task
#
'ncores_run_fcst': ${PE_MEMBER01}
'native_run_fcst': --cpus-per-task 4 --exclusive
'partition_run_fcst': sjet,vjet,kjet,xjet
#
# Number of logical processes per node for each task. If running without
# threading, this is equal to the number of MPI processes per node.
#
Expand Down
16 changes: 8 additions & 8 deletions ush/set_predef_grid_params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ predefined domain:

DT_ATMOS="300"

LAYOUT_X="2"
LAYOUT_X="20"
LAYOUT_Y="2"
BLOCKSIZE="2"
BLOCKSIZE="10"

if [ "$QUILTING" = "TRUE" ]; then
WRTCMP_write_groups="1"
Expand Down Expand Up @@ -460,9 +460,9 @@ predefined domain:

DT_ATMOS="40"

LAYOUT_X="36"
LAYOUT_Y="24"
BLOCKSIZE="26"
LAYOUT_X="18"
LAYOUT_Y="12"
BLOCKSIZE="46"

QUILTING="TRUE"

Expand Down Expand Up @@ -497,9 +497,9 @@ predefined domain:

DT_ATMOS="40"

LAYOUT_X="34"
LAYOUT_Y="24"
BLOCKSIZE="34"
LAYOUT_X="18"
LAYOUT_Y="12"
BLOCKSIZE="46"

if [ "$QUILTING" = "TRUE" ]; then
WRTCMP_write_groups="1"
Expand Down
39 changes: 25 additions & 14 deletions ush/templates/FV3SAR_wflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&MAKE_GRID_TN;" cycledefs="at_start" maxtries="4">
<task name="&MAKE_GRID_TN;" cycledefs="at_start" maxtries="1">

&RSRV_DEFAULT;
<command>&LOAD_MODULES_RUN_TASK_FP; "&MAKE_GRID_TN;" "&JOBSDIR;/JREGIONAL_MAKE_GRID"</command>
Expand All @@ -131,7 +131,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&MAKE_OROG_TN;" cycledefs="at_start" maxtries="4">
<task name="&MAKE_OROG_TN;" cycledefs="at_start" maxtries="1">

&RSRV_DEFAULT;
<command>&LOAD_MODULES_RUN_TASK_FP; "&MAKE_OROG_TN;" "&JOBSDIR;/JREGIONAL_MAKE_OROG"</command>
Expand Down Expand Up @@ -159,7 +159,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&MAKE_SFC_CLIMO_TN;" cycledefs="at_start" maxtries="2">
<task name="&MAKE_SFC_CLIMO_TN;" cycledefs="at_start" maxtries="1">

&RSRV_DEFAULT;
<command>&LOAD_MODULES_RUN_TASK_FP; "&MAKE_SFC_CLIMO_TN;" "&JOBSDIR;/JREGIONAL_MAKE_SFC_CLIMO"</command>
Expand Down Expand Up @@ -193,7 +193,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&GET_EXTRN_ICS_TN;" maxtries="3">
<task name="&GET_EXTRN_ICS_TN;" maxtries="1">

&RSRV_HPSS;
<command>&LOAD_MODULES_RUN_TASK_FP; "&GET_EXTRN_ICS_TN;" "&JOBSDIR;/JREGIONAL_GET_EXTRN_MDL_FILES"</command>
Expand All @@ -215,7 +215,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&GET_EXTRN_LBCS_TN;" maxtries="3">
<task name="&GET_EXTRN_LBCS_TN;" maxtries="1">

&RSRV_HPSS;
<command>&LOAD_MODULES_RUN_TASK_FP; "&GET_EXTRN_LBCS_TN;" "&JOBSDIR;/JREGIONAL_GET_EXTRN_MDL_FILES"</command>
Expand All @@ -237,7 +237,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&MAKE_ICS_TN;" maxtries="3">
<task name="&MAKE_ICS_TN;" maxtries="1">

&RSRV_DEFAULT;
<command>&LOAD_MODULES_RUN_TASK_FP; "&MAKE_ICS_TN;" "&JOBSDIR;/JREGIONAL_MAKE_ICS"</command>
Expand Down Expand Up @@ -278,7 +278,7 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&MAKE_LBCS_TN;" maxtries="3">
<task name="&MAKE_LBCS_TN;" maxtries="1">

&RSRV_DEFAULT;
<command>&LOAD_MODULES_RUN_TASK_FP; "&MAKE_LBCS_TN;" "&JOBSDIR;/JREGIONAL_MAKE_LBCS"</command>
Expand Down Expand Up @@ -319,13 +319,21 @@ MODULES_RUN_TASK_FP script.
************************************************************************
************************************************************************
-->
<task name="&RUN_FCST_TN;" maxtries="3">
<task name="&RUN_FCST_TN;" maxtries="1">

&RSRV_FCST;
<command>&LOAD_MODULES_RUN_TASK_FP; "&RUN_FCST_TN;" "&JOBSDIR;/JREGIONAL_RUN_FCST"</command>
{% if machine in ["JET", "HERA"] %}
<cores>{{ ncores_run_fcst }}</cores>
<native>{{ native_run_fcst }}</native>
{% if machine == "JET" %}
<partition>{{ partition_run_fcst }} </partition>
{% endif %}
{% else %}
<nodes>{{ nnodes_run_fcst }}:ppn={{ ppn_run_fcst }}</nodes>
<walltime>{{ wtime_run_fcst }}</walltime>
<nodesize>&NCORES_PER_NODE;</nodesize>
{% endif %}
<walltime>{{ wtime_run_fcst }}</walltime>
<jobname>&RUN_FCST_TN;</jobname>
<join><cyclestr>&LOGDIR;/&RUN_FCST_TN;_@Y@m@d@H.log</cyclestr></join>

Expand All @@ -350,7 +358,7 @@ MODULES_RUN_TASK_FP script.

<var name="fhr"> {% for h in range(0, fcst_len_hrs+1) %}{{ " %02d" % h }}{% endfor %} </var>

<task name="&RUN_POST_TN;_#fhr#" maxtries="2">
<task name="&RUN_POST_TN;_#fhr#" maxtries="1">

&RSRV_DEFAULT;
<command>&LOAD_MODULES_RUN_TASK_FP; "&RUN_POST_TN;" "&JOBSDIR;/JREGIONAL_RUN_POST"</command>
Expand All @@ -368,10 +376,13 @@ MODULES_RUN_TASK_FP script.
<envar><name>fhr</name><value>#fhr#</value></envar>

<dependency>
<and>
<datadep age="05:00"><cyclestr>&CYCLE_BASEDIR;/@Y@m@d@H/dynf0#fhr#.nc</cyclestr></datadep>
<datadep age="05:00"><cyclestr>&CYCLE_BASEDIR;/@Y@m@d@H/phyf0#fhr#.nc</cyclestr></datadep>
</and>
<or>
<taskdep task="&RUN_FCST_TN;"/>
<and>
<datadep age="05:00"><cyclestr>&CYCLE_BASEDIR;/@Y@m@d@H/dynf0#fhr#.nc</cyclestr></datadep>
<datadep age="05:00"><cyclestr>&CYCLE_BASEDIR;/@Y@m@d@H/phyf0#fhr#.nc</cyclestr></datadep>
</and>
</or>
</dependency>

</task>
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_CPT_v0
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_GFS_2017_gfdlmp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_GFS_v15p2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_GFS_v16beta
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_GSD_SAR
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_GSD_SAR_v1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_GSD_v0
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down
2 changes: 1 addition & 1 deletion ush/templates/model_configure.FV3_RRFS_v0
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dt_atmos: <dt_atmos>
cpl: .false.
calendar: 'julian'
memuse_verbose: .false.
atmos_nthreads: 2
atmos_nthreads: <threads>
use_hyper_thread: .false.
ncores_per_node: <ncores_per_node>
debug_affinity: .true.
Expand Down