Permalink
Browse files

Not sure what all of these mean, but I had to tweak them to work on s…

…tarcluster.
  • Loading branch information...
1 parent f252b3f commit 4a1f0a6a899da96b888dc046043c4c8c4b87dd09 @kmatzen committed Sep 9, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 warp_killer.sh
  2. +3 −3 warp_starter.sh
View
4 warp_killer.sh
@@ -19,13 +19,13 @@ if [ ! -n "$1" ]
echo " job_to_kill is MANDATORY"
#List unique processes running uner my id
- UNIQUE_PROCESSES=`qstat | grep ${USER} | awk '{print $2}' | uniq`
+ UNIQUE_PROCESSES=`qstat | grep ${USER} | awk '{print $3}' | uniq`
echo "job_to_kill must be one of: " $UNIQUE_PROCESSES
exit
fi
echo "Trying to kill JOB: " $1
-MYIDS=`qstat | grep ${USER} | grep $1 | awk -F. '{print $1}'`
+MYIDS=`qstat | grep ${USER} | grep $1 | awk '{print $1}'`
echo "killing these ids: " $MYIDS
qdel $MYIDS
View
6 warp_starter.sh
@@ -49,20 +49,20 @@ fi
#-eo means that they are joined
#-v passes a command line argument into warp_driver.sh (so the driver knows what to execute!)
-LOGDIR=/lustre/${USER}/outputs/
+LOGDIR=/scratch/sgeadmin/logs
if [ ! -d ${LOGDIR} ]; then
echo "Directory ${LOGDIR} not present, creating it"
mkdir $LOGDIR
fi
#LOGSTRING="-e ${LOGDIR} -o ${LOGDIR} -j oe"
-LOGSTRING="-e ${LOGDIR} -o ${LOGDIR} -j oe"
+LOGSTRING="-e ${LOGDIR} -o ${LOGDIR}"
#disable logging to try to increase performance
#LOGSTRING="-o /dev/null"
for i in `seq 1 ${REPEAT}`;
do
- qsub -N ${PROCSTRING} -l nodes=1:ppn=${PPN} ${LOGSTRING} -v PROCSTRING=${PROCSTRING} warp_driver.sh
+ qsub -pe orte ${PPN} -N ${PROCSTRING} ${LOGSTRING} -v PROCSTRING=${PROCSTRING} warp_driver.sh
done

0 comments on commit 4a1f0a6

Please sign in to comment.