Ignore:
Timestamp:
10/05/10 10:27:40 (14 years ago)
Author:
Daniela Dorner
Message:
implemented usage of cluster in Dortmund (phido), i.e. usage of pbs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/datacenter/scripts/jobmanager

    r9604 r10004  
    2020#   Author(s): Daniela Dorner  05/2006 <mailto:dorner@astro.uni-wuerzburg.de>
    2121#
    22 #   Copyright: MAGIC Software Development, 2000-2009
     22#   Copyright: MAGIC Software Development, 2000-2010
    2323#
    2424#
     
    2626#
    2727# This a script, which launches other scripts (all scripts, that are run
    28 # on primary basis
     28# on primary basis)
    2929#
    3030
     
    5757            # FIXME: get complete scriptname (including command line option), needed for runstereo
    5858            alias 'checkqueue'="/opt/gridengine/bin/lx26-amd64/qstat \`echo \$noderequirementstat\`  | awk ' { print \"Owner\"\$4\" \" \$3\"Jobstatus\"\$5 } '"
     59            break
     60            ;;
     61      pbs)  echo " on queuing system 'pbs'" >> $jmscriptlog 2>&1
     62            alias 'queuesubmit'='$pbspath/qsub -l walltime=$walltime -l pmem=$pmem -v AUTOMATIONSETUP=$AUTOMATIONSETUP,SOURCEFILEPATH=$SOURCEFILEPATH -e `echo $runlogpath`/error-`echo $date`.log -o `echo $runlogpath`/log-`echo $date`.log `echo $noderequirementsub` `echo $scriptspath`/`echo ${scripts[$i]}` '
     63            alias 'checkqueue'="$pbspath/qstat -a | awk ' { print \"Owner\"\$2\" \" \$4\"Jobstatus\"\$10 } '"
    5964            break
    6065            ;;
     
    9095      step=${scriptscolname[$i]}
    9196      getstepinfo
     97      # check if walltime has to be set
     98      if [ "$setwalltime" = "yes" ]
     99      then
     100         walltime=${walltimes[$i]}
     101      fi
     102      # check if memory has to be set
     103      if [ "$setpmem" = "yes" ]
     104      then
     105         pmem=${pmems[$i]}
     106      fi
     107      # check if the script is restricted to one node
     108      #   (i.e. where output of previous step(s) is stored)
     109      # this information is taken from the steps.rc file
    92110      if [ "$noderestricted" = "yes" ]
    93111      then
     
    163181      queuedscript=${#q2[@]}
    164182      # get running scripts
    165       q3=( `echo ${q[@]} | egrep -o \("${scripts[$i]}"Jobstatus2\|"${scripts[$i]}"Jobstatusr\)` )
     183      #   condor: 2
     184      #   sge: r
     185      #   pbs: R
     186      q3=( `echo ${q[@]} | egrep -o \("${scripts[$i]}"Jobstatus2\|"${scripts[$i]}"Jobstatusr\|"${scripts[$i]}"JobstatusR\)` )
    166187      runningscript=${#q3[@]}
    167188      stillinqueue=`echo $queuedscript - $runningscript | bc `
Note: See TracChangeset for help on using the changeset viewer.