Skip to content

Commit 2e68836

Browse files
MPMD variable updates and fix (#1124)
* Correct wave_mpmd setting in JGLOBAL_WAVE_INIT * Update Jet and S4 env files for mpmd_opt * Rename mpmd to mpmd_opt in WCOSS2 env file
1 parent 196e928 commit 2e68836

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

env/JET.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ elif [[ "$PARTITION_BATCH" = "vjet" ]]; then
2020
export npe_node_max=16
2121
fi
2222
export launcher="srun -l --export=ALL"
23+
export mpmd_opt="--multi-prog"
2324

2425
# Configure STACK
2526
export OMP_STACKSIZE=2048000
@@ -43,7 +44,7 @@ elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $ste
4344

4445
if [ $step = "waveprep" ]; then export MP_PULSE=0 ; fi
4546
export wavempexec=${launcher}
46-
export wave_mpmd=${mpmd}
47+
export wave_mpmd=${mpmd_opt}
4748

4849
elif [ $step = "atmanalrun" ]; then
4950

env/S4.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ elif [[ ${PARTITION_BATCH} = "ivy" ]]; then
2121
export npe_node_max=20
2222
fi
2323
export launcher="srun -l --export=ALL"
24+
export mpmd_opt="--multi-prog"
2425

2526
# Configure MPI environment
2627
export OMP_STACKSIZE=2048000
@@ -45,11 +46,10 @@ if [[ ${step} = "prep" || ${step} = "prepbufr" ]]; then
4546

4647
elif [[ ${step} = "waveinit" || ${step} = "waveprep" || ${step} = "wavepostsbs" || ${step} = "wavepostbndpnt" || ${step} = "wavepostbndpntbll" || ${step} = "wavepostpnt" ]]; then
4748

48-
export mpmd="--multi-prog"
4949
export CFP_MP="YES"
5050
if [[ ${step} = "waveprep" ]]; then export MP_PULSE=0 ; fi
5151
export wavempexec=${launcher}
52-
export wave_mpmd=${mpmd}
52+
export wave_mpmd=${mpmd_opt}
5353

5454
elif [[ ${step} = "atmanalrun" ]]; then
5555

env/WCOSS2.env

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ step=$1
1717

1818
# WCOSS2 information
1919
export launcher="mpiexec -l"
20-
export mpmd="--cpu-bind verbose,core cfp"
20+
export mpmd_opt="--cpu-bind verbose,core cfp"
2121

2222
export npe_node_max=128
2323

@@ -37,13 +37,13 @@ elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $ste
3737

3838
if [ $step = "waveprep" -a $CDUMP = "gfs" ]; then NTASKS=$NTASKS_gfs ; fi
3939
export wavempexec="$launcher -np"
40-
export wave_mpmd=${mpmd}
40+
export wave_mpmd=${mpmd_opt}
4141

4242
elif [ $step = "atmanalrun" ]; then
4343

4444
export CFP_MP=${CFP_MP:-"YES"}
4545
export USE_CFP=${USE_CFP:-"YES"}
46-
export APRUNCFP="$launcher -np \$ncmd $mpmd"
46+
export APRUNCFP="$launcher -np \$ncmd ${mpmd_opt}"
4747

4848
nth_max=$(($npe_node_max / $npe_node_atmanalrun))
4949

@@ -55,7 +55,7 @@ elif [ $step = "atmensanalrun" ]; then
5555

5656
export CFP_MP=${CFP_MP:-"YES"}
5757
export USE_CFP=${USE_CFP:-"YES"}
58-
export APRUNCFP="$launcher -np \$ncmd $mpmd"
58+
export APRUNCFP="$launcher -np \$ncmd ${mpmd_opt}"
5959

6060
nth_max=$(($npe_node_max / $npe_node_atmensanalrun))
6161

@@ -65,7 +65,7 @@ elif [ $step = "atmensanalrun" ]; then
6565

6666
elif [ $step = "aeroanlrun" ]; then
6767

68-
export APRUNCFP="$launcher -np \$ncmd $mpmd"
68+
export APRUNCFP="$launcher -np \$ncmd ${mpmd_opt}"
6969

7070
nth_max=$(($npe_node_max / $npe_node_aeroanlrun))
7171

@@ -108,7 +108,7 @@ elif [ $step = "anal" -o $step = "analcalc" ]; then
108108

109109
export CFP_MP=${CFP_MP:-"NO"}
110110
export USE_CFP=${USE_CFP:-"YES"}
111-
export APRUNCFP="$launcher -np \$ncmd $mpmd"
111+
export APRUNCFP="$launcher -np \$ncmd ${mpmd_opt}"
112112

113113
elif [ $step = "sfcanl" ]; then
114114

@@ -138,7 +138,7 @@ elif [ $step = "gldas" ]; then
138138
# periods being processed.
139139
export USE_CFP=${USE_CFP:-"YES"}
140140
npe_gldas_data_proc=$(($gldas_spinup_hours + 12))
141-
export APRUN_GLDAS_DATA_PROC="$launcher -np $npe_gldas_data_proc $mpmd"
141+
export APRUN_GLDAS_DATA_PROC="$launcher -np $npe_gldas_data_proc ${mpmd_opt}"
142142

143143
elif [ $step = "eobs" ]; then
144144

@@ -154,7 +154,7 @@ elif [ $step = "eobs" ]; then
154154

155155
export CFP_MP=${CFP_MP:-"NO"}
156156
export USE_CFP=${USE_CFP:-"YES"}
157-
export APRUNCFP="$launcher -np \$ncmd $mpmd"
157+
export APRUNCFP="$launcher -np \$ncmd ${mpmd_opt}"
158158

159159
elif [ $step = "eupd" ]; then
160160

@@ -171,7 +171,7 @@ elif [ $step = "eupd" ]; then
171171

172172
export CFP_MP=${CFP_MP:-"NO"}
173173
export USE_CFP=${USE_CFP:-"YES"}
174-
export APRUNCFP="$launcher -np \$ncmd $mpmd"
174+
export APRUNCFP="$launcher -np \$ncmd ${mpmd_opt}"
175175

176176
elif [ $step = "fcst" ]; then
177177

@@ -231,7 +231,7 @@ elif [ $step = "post" ]; then
231231

232232
export NTHREADS_DWN=${nth_dwn:-1}
233233
[[ $NTHREADS_DWN -gt $nth_max ]] && export NTHREADS_DWN=$nth_max
234-
export APRUN_DWN="$launcher -np $npe_dwn $mpmd"
234+
export APRUN_DWN="$launcher -np $npe_dwn ${mpmd_opt}"
235235

236236
elif [ $step = "ecen" ]; then
237237

@@ -290,23 +290,23 @@ elif [ $step = "postsnd" ]; then
290290

291291
export NTHREADS_POSTSNDCFP=${nth_postsndcfp:-1}
292292
[[ $NTHREADS_POSTSNDCFP -gt $nth_max ]] && export NTHREADS_POSTSNDCFP=$nth_max
293-
export APRUN_POSTSNDCFP="$launcher -np $npe_postsndcfp $mpmd"
293+
export APRUN_POSTSNDCFP="$launcher -np $npe_postsndcfp ${mpmd_opt}"
294294

295295
elif [ $step = "awips" ]; then
296296

297297
nth_max=$(($npe_node_max / $npe_node_awips))
298298

299299
export NTHREADS_AWIPS=${nth_awips:-2}
300300
[[ $NTHREADS_AWIPS -gt $nth_max ]] && export NTHREADS_AWIPS=$nth_max
301-
export APRUN_AWIPSCFP="$launcher -np $npe_awips $mpmd"
301+
export APRUN_AWIPSCFP="$launcher -np $npe_awips ${mpmd_opt}"
302302

303303
elif [ $step = "gempak" ]; then
304304

305305
nth_max=$(($npe_node_max / $npe_node_gempak))
306306

307307
export NTHREADS_GEMPAK=${nth_gempak:-1}
308308
[[ $NTHREADS_GEMPAK -gt $nth_max ]] && export NTHREADS_GEMPAK=$nth_max
309-
export APRUN_GEMPAKCFP="$launcher -np $npe_gempak $mpmd"
309+
export APRUN_GEMPAKCFP="$launcher -np $npe_gempak ${mpmd_opt}"
310310

311311
elif [ $step = "waveawipsbulls" ]; then
312312

jobs/JGLOBAL_WAVE_INIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fi
6464

6565
# Set mpi serial command
6666
export wavempexec=${wavempexec:-"mpirun -n"}
67-
export wave_mpmd=${mpmd:-"cfp"}
67+
export wave_mpmd=${wave_mpmd:-"cfp"}
6868

6969
# Execute the Script
7070
$HOMEgfs/scripts/exgfs_wave_init.sh

0 commit comments

Comments
 (0)