Skip to content

Commit 2166062

Browse files
authored
Merge pull request #681 from GEOS-ESM/feature/mathomp4/v11-cas-sles
v11: Add Cas for SLES15; Add back IMPI flags on SLES15
2 parents b6a61d5 + 7da964d commit 2166062

File tree

4 files changed

+56
-4
lines changed

4 files changed

+56
-4
lines changed

gcm_setup

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,28 @@ if ( $SITE == 'NCCS' ) then
420420
if ("$BUILT_ON_SLES15" == "TRUE") then
421421
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
422422
echo " ${C2}mil (Milan)${CN} (default)"
423+
echo " ${C2}cas (Cascade Lake)${CN}"
423424
echo " "
424425
set MODEL = `echo $<`
425426
set MODEL = `echo $MODEL | tr "[:upper:]" "[:lower:]"`
426427
if ( .$MODEL == .) then
427428
set MODEL = 'mil'
428429
endif
429430

430-
if( $MODEL != 'mil' ) goto ASKPROC
431+
if( $MODEL != 'mil' & \
432+
$MODEL != 'cas' ) goto ASKPROC
431433

432434
if ($MODEL == 'mil') then
433435
# We save a couple processes for the kernel
434436
set NCPUS_PER_NODE = 126
437+
else if ($MODEL == 'cas') then
438+
# NCCS currently recommends that users do not run with
439+
# 48 cores per node on SCU16 due to OS issues and
440+
# recommends that CPU-intensive works run with 46 or less
441+
# cores. As 45 is a multiple of 3, it's the best value
442+
# that doesn't waste too much
443+
#set NCPUS_PER_NODE = 48
444+
set NCPUS_PER_NODE = 45
435445
endif
436446
else
437447
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
@@ -2279,6 +2289,9 @@ if ( $SITE == 'NCCS' ) then
22792289

22802290
if ("$BUILT_ON_SLES15" == "TRUE") then
22812291
cat >> $HOMDIR/SETENV.commands << EOF
2292+
setenv I_MPI_ADJUST_ALLREDUCE 12
2293+
setenv I_MPI_ADJUST_GATHERV 3
2294+
22822295
setenv I_MPI_FABRICS shm:ofi
22832296
setenv I_MPI_OFI_PROVIDER psm3
22842297
EOF

geoschemchem_setup

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,28 @@ if ( $SITE == 'NCCS' ) then
420420
if ("$BUILT_ON_SLES15" == "TRUE") then
421421
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
422422
echo " ${C2}mil (Milan)${CN} (default)"
423+
echo " ${C2}cas (Cascade Lake)${CN}"
423424
echo " "
424425
set MODEL = `echo $<`
425426
set MODEL = `echo $MODEL | tr "[:upper:]" "[:lower:]"`
426427
if ( .$MODEL == .) then
427428
set MODEL = 'mil'
428429
endif
429430

430-
if( $MODEL != 'mil' ) goto ASKPROC
431+
if( $MODEL != 'mil' & \
432+
$MODEL != 'cas' ) goto ASKPROC
431433

432434
if ($MODEL == 'mil') then
433435
# We save a couple processes for the kernel
434436
set NCPUS_PER_NODE = 126
437+
else if ($MODEL == 'cas') then
438+
# NCCS currently recommends that users do not run with
439+
# 48 cores per node on SCU16 due to OS issues and
440+
# recommends that CPU-intensive works run with 46 or less
441+
# cores. As 45 is a multiple of 3, it's the best value
442+
# that doesn't waste too much
443+
#set NCPUS_PER_NODE = 48
444+
set NCPUS_PER_NODE = 45
435445
endif
436446
else
437447
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
@@ -2309,6 +2319,9 @@ if ( $SITE == 'NCCS' ) then
23092319

23102320
if ("$BUILT_ON_SLES15" == "TRUE") then
23112321
cat >> $HOMDIR/SETENV.commands << EOF
2322+
setenv I_MPI_ADJUST_ALLREDUCE 12
2323+
setenv I_MPI_ADJUST_GATHERV 3
2324+
23122325
setenv I_MPI_FABRICS shm:ofi
23132326
setenv I_MPI_OFI_PROVIDER psm3
23142327
EOF

gmichem_setup

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,28 @@ if ( $SITE == 'NCCS' ) then
420420
if ("$BUILT_ON_SLES15" == "TRUE") then
421421
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
422422
echo " ${C2}mil (Milan)${CN} (default)"
423+
echo " ${C2}cas (Cascade Lake)${CN}"
423424
echo " "
424425
set MODEL = `echo $<`
425426
set MODEL = `echo $MODEL | tr "[:upper:]" "[:lower:]"`
426427
if ( .$MODEL == .) then
427428
set MODEL = 'mil'
428429
endif
429430

430-
if( $MODEL != 'mil' ) goto ASKPROC
431+
if( $MODEL != 'mil' & \
432+
$MODEL != 'cas' ) goto ASKPROC
431433

432434
if ($MODEL == 'mil') then
433435
# We save a couple processes for the kernel
434436
set NCPUS_PER_NODE = 126
437+
else if ($MODEL == 'cas') then
438+
# NCCS currently recommends that users do not run with
439+
# 48 cores per node on SCU16 due to OS issues and
440+
# recommends that CPU-intensive works run with 46 or less
441+
# cores. As 45 is a multiple of 3, it's the best value
442+
# that doesn't waste too much
443+
#set NCPUS_PER_NODE = 48
444+
set NCPUS_PER_NODE = 45
435445
endif
436446
else
437447
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
@@ -2481,6 +2491,9 @@ if ( $SITE == 'NCCS' ) then
24812491

24822492
if ("$BUILT_ON_SLES15" == "TRUE") then
24832493
cat >> $HOMDIR/SETENV.commands << EOF
2494+
setenv I_MPI_ADJUST_ALLREDUCE 12
2495+
setenv I_MPI_ADJUST_GATHERV 3
2496+
24842497
setenv I_MPI_FABRICS shm:ofi
24852498
setenv I_MPI_OFI_PROVIDER psm3
24862499
EOF

stratchem_setup

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,28 @@ if ( $SITE == 'NCCS' ) then
420420
if ("$BUILT_ON_SLES15" == "TRUE") then
421421
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
422422
echo " ${C2}mil (Milan)${CN} (default)"
423+
echo " ${C2}cas (Cascade Lake)${CN}"
423424
echo " "
424425
set MODEL = `echo $<`
425426
set MODEL = `echo $MODEL | tr "[:upper:]" "[:lower:]"`
426427
if ( .$MODEL == .) then
427428
set MODEL = 'mil'
428429
endif
429430

430-
if( $MODEL != 'mil' ) goto ASKPROC
431+
if( $MODEL != 'mil' & \
432+
$MODEL != 'cas' ) goto ASKPROC
431433

432434
if ($MODEL == 'mil') then
433435
# We save a couple processes for the kernel
434436
set NCPUS_PER_NODE = 126
437+
else if ($MODEL == 'cas') then
438+
# NCCS currently recommends that users do not run with
439+
# 48 cores per node on SCU16 due to OS issues and
440+
# recommends that CPU-intensive works run with 46 or less
441+
# cores. As 45 is a multiple of 3, it's the best value
442+
# that doesn't waste too much
443+
#set NCPUS_PER_NODE = 48
444+
set NCPUS_PER_NODE = 45
435445
endif
436446
else
437447
echo "Enter the ${C1}Processor Type${CN} you wish to run on:"
@@ -2294,6 +2304,9 @@ if ( $SITE == 'NCCS' ) then
22942304

22952305
if ("$BUILT_ON_SLES15" == "TRUE") then
22962306
cat >> $HOMDIR/SETENV.commands << EOF
2307+
setenv I_MPI_ADJUST_ALLREDUCE 12
2308+
setenv I_MPI_ADJUST_GATHERV 3
2309+
22972310
setenv I_MPI_FABRICS shm:ofi
22982311
setenv I_MPI_OFI_PROVIDER psm3
22992312
EOF

0 commit comments

Comments
 (0)