Skip to content

Commit

Permalink
update onyx batch settings (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
apcraig authored Apr 10, 2021
1 parent 2378740 commit 4d9cf31
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion configuration/scripts/cice.batch.csh
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,20 @@ cat >> ${jobfile} << EOFB
EOFB

else if (${ICE_MACHINE} =~ onyx*) then
# special for onyx with 44 cores per node and constraint on mpiprocs
set tpn1 = ${taskpernode}
if (${taskpernode} < 44) set tpn1 = 22
if (${taskpernode} < 22) set tpn1 = 11
if (${taskpernode} < 11) set tpn1 = 4
if (${taskpernode} < 4) set tpn1 = 2
if (${taskpernode} < 2) set tpn1 = 1
@ nn1 = ${ntasks} / ${tpn1}
if (${nn1} * ${tpn1} < ${ntasks}) @ nn1 = $nn1 + 1
cat >> ${jobfile} << EOFB
#PBS -N ${ICE_CASENAME}
#PBS -q ${queue}
#PBS -A ${acct}
#PBS -l select=${nnodes}:ncpus=${maxtpn}:mpiprocs=${taskpernode}
#PBS -l select=${nn1}:ncpus=${maxtpn}:mpiprocs=${tpn1}
#PBS -l walltime=${batchtime}
#PBS -j oe
###PBS -M [email protected]
Expand Down

0 comments on commit 4d9cf31

Please sign in to comment.