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
Location:
trunk/Mars/datacenter/scripts
Files:
1 added
3 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 `
  • trunk/Mars/datacenter/scripts/runcorsika

    r9927 r10004  
    2828#
    2929
    30 source `dirname $0`/sourcefile
     30if [ "$SOURCEFILEPATH" = "" ]
     31then
     32   source `dirname $0`/sourcefile
     33else
     34   source $SOURCEFILEPATH/sourcefile
     35fi
    3136printprocesslog "INFO starting $0"
    3237program=corsika
  • trunk/Mars/datacenter/scripts/sourcefile

    r9886 r10004  
    4444fi
    4545
     46if [ "$SOURCEFILEPATH" = "" ]
     47then
     48   export SOURCEFILEPATH=`dirname $0`
     49fi
     50
    4651# possible solution for $0 problem:
    4752# ${BASH_SOURCE[0]}
    4853# but has to be checked and tested more carefully
    4954# should solve at least problem with login-shell and with source
    50 source `dirname $0`/setup.$AUTOMATIONSETUP
     55source $SOURCEFILEPATH/setup.$AUTOMATIONSETUP
    5156
    5257datetime=`date +%F-%H-%M-%S`
Note: See TracChangeset for help on using the changeset viewer.