Skip to content

Commit

Permalink
Removed SUMMIT hack from gacode_qsub
Browse files Browse the repository at this point in the history
  • Loading branch information
jcandy committed Feb 14, 2024
1 parent c1c5bda commit a5f1ffb
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions shared/bin/gacode_qsub
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ then
echo " Run <code> using input.<code> in <simdir>."
echo
echo " -code <code>"
echo " <code>=tgyro,gyro,neo"
echo " <code>=tgyro,cgyro,neo"
echo
echo " -n <MPI tasks>"
echo " Number of MPI tasks."
Expand Down Expand Up @@ -75,6 +75,7 @@ SUB_FLAG=0
NO_LOGIN=0
QUEUE=null_queue
WALLTIME=0:59:00

if hash getnim 2> /dev/null; then
# NERSC
x=`getnim -U $user -D`
Expand Down Expand Up @@ -167,14 +168,6 @@ fi
SIMDIR=$SIMROOT/$LOCDIR
#=============================================================

# Manage execution on ORNL SUMMIT
if [[ $GACODE_PLATFORM == SUMMI* ]]; then
. $GACODE_ROOT/platform/qsub/qsub.$GACODE_PLATFORM
cat $SIMDIR/batch.src
$GACODE_ROOT/platform/exec/exec.$GACODE_PLATFORM $SIMDIR $nmpi $CODE 0 1 $mpinuma
exit 0
fi

echo $SIMDIR
# Extract CORES_PER_NODE and NUMAS_PER_NODE
export `grep _NODE $GACODE_ROOT/platform/build/make.inc.$GACODE_PLATFORM`
Expand All @@ -191,7 +184,6 @@ echo " cores used : $cores_used"
echo " total MPI tasks : $nmpi"
echo " MPI tasks/node : $mpinode"
echo " OpenMP threads/MPI task : $nomp"
echo " MPI tasks per numa node : $mpinuma"
echo
. $GACODE_ROOT/platform/qsub/qsub.$GACODE_PLATFORM

Expand Down Expand Up @@ -235,8 +227,6 @@ else
sbatch $bfile
elif hash qsub 2> /dev/null ; then
qsub $bfile
elif hash bsub 2> /dev/null ; then
bsub $bfile
else
echo "ERROR: (gacode_qsub) No batch command recognized."
fi
Expand Down

0 comments on commit a5f1ffb

Please sign in to comment.