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