Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…tarcluster.
  • Loading branch information...
commit 4a1f0a6a899da96b888dc046043c4c8c4b87dd09 1 parent f252b3f
Kevin Matzen authored

Showing 2 changed files with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +2 2 warp_killer.sh
  2. +3 3 warp_starter.sh
4 warp_killer.sh
@@ -19,13 +19,13 @@ if [ ! -n "$1" ]
19 19 echo " job_to_kill is MANDATORY"
20 20
21 21 #List unique processes running uner my id
22   - UNIQUE_PROCESSES=`qstat | grep ${USER} | awk '{print $2}' | uniq`
  22 + UNIQUE_PROCESSES=`qstat | grep ${USER} | awk '{print $3}' | uniq`
23 23 echo "job_to_kill must be one of: " $UNIQUE_PROCESSES
24 24 exit
25 25 fi
26 26
27 27 echo "Trying to kill JOB: " $1
28   -MYIDS=`qstat | grep ${USER} | grep $1 | awk -F. '{print $1}'`
  28 +MYIDS=`qstat | grep ${USER} | grep $1 | awk '{print $1}'`
29 29 echo "killing these ids: " $MYIDS
30 30 qdel $MYIDS
31 31
6 warp_starter.sh
@@ -49,7 +49,7 @@ fi
49 49 #-eo means that they are joined
50 50 #-v passes a command line argument into warp_driver.sh (so the driver knows what to execute!)
51 51
52   -LOGDIR=/lustre/${USER}/outputs/
  52 +LOGDIR=/scratch/sgeadmin/logs
53 53
54 54 if [ ! -d ${LOGDIR} ]; then
55 55 echo "Directory ${LOGDIR} not present, creating it"
@@ -57,12 +57,12 @@ if [ ! -d ${LOGDIR} ]; then
57 57 fi
58 58
59 59 #LOGSTRING="-e ${LOGDIR} -o ${LOGDIR} -j oe"
60   -LOGSTRING="-e ${LOGDIR} -o ${LOGDIR} -j oe"
  60 +LOGSTRING="-e ${LOGDIR} -o ${LOGDIR}"
61 61
62 62 #disable logging to try to increase performance
63 63 #LOGSTRING="-o /dev/null"
64 64
65 65 for i in `seq 1 ${REPEAT}`;
66 66 do
67   - qsub -N ${PROCSTRING} -l nodes=1:ppn=${PPN} ${LOGSTRING} -v PROCSTRING=${PROCSTRING} warp_driver.sh
  67 + qsub -pe orte ${PPN} -N ${PROCSTRING} ${LOGSTRING} -v PROCSTRING=${PROCSTRING} warp_driver.sh
68 68 done

0 comments on commit 4a1f0a6

Please sign in to comment.
Something went wrong with that request. Please try again.