Using a local farm

Script for LX batch

This is the script I use to submit my CMSSW jobs to the lx batch at CERN:

#!/bin/bash
# -----------------------------------------------------------------------------
# submitJob.sh
# wrapper for the submission of cmsRun jobs for the lxbatch
# using the script runTopGen
# Usage: submitJob.sh CONFIG_FILE QUEUE
#        the path to the CONFIG_FILE is assumed  to be under CMSSW_BASE/PedroSilva
#        the QUEUE to use is specified by the 2nd argument (2nd is used by default)
# check: http://batch.web.cern.ch/batch/doc/quick-intro.html
# ------------------------------------------------------------------------------
# Pedro (psilva@cern.ch) 2007-11-08
# ------------------------------------------------------------------------------

export CMSSW_BASE=/afs/cern.ch/user/p/psilva/scratch0/CMSSW_1_6_9/src/
CONFIGFILE=$1
QUEUE=$2
BASEDIR=`pwd`

if [ $# == 0 ]; then
    echo "Must provide a configuration file (~ *.cfg)"
else
        if [ $# == 1 ]; then
                QUEUE="2nd"
        fi
    cd $CMSSW_BASE
    eval `scramv1 runtime -sh`
    echo "Calling cmsRun with ${BASEDIR}/${CONFIGFILE}"
    bsub -q $QUEUE -R "tmp>50&&mem>200&&swp>400&&pool>1000" `echo cmsRun ${BASEDIR}/${CONFIGFILE}`
fi

Script for LIP farm

This is the script I use to submit CMSSW jobs to LIP farm: script. To use it I do:

-- PedroSilva - 12 Mar 2008

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2009-06-03 - PedroSilva
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback