From 3d2273e482fe20ee4fee00770d0215b9784b1167 Mon Sep 17 00:00:00 2001 From: "Patrick L.S. Connor" <connorpa@mail.desy.de> Date: Mon, 12 Apr 2021 16:47:36 +0200 Subject: [PATCH] improving submission to handle different job running times --- job | 2 ++ parallel | 3 ++- submit | 19 +++++++++++++++---- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/job b/job index 1a1a0f1..d97e5dc 100644 --- a/job +++ b/job @@ -7,4 +7,6 @@ output = $(ProcId)/out error = $(ProcId)/err log = $(ProcId)/log ++JobFlavour = $ENV(FLAVOUR) + queue $ENV(NJOBS) diff --git a/parallel b/parallel index 160f634..ae33479 100755 --- a/parallel +++ b/parallel @@ -1,6 +1,7 @@ #!/bin/zsh +set -e -export NJOBS=2 +export NJOBS=`nproc` for i in {1..$NJOBS} do diff --git a/submit b/submit index 338c81f..5640966 100755 --- a/submit +++ b/submit @@ -1,11 +1,22 @@ #!/bin/zsh +set -e -#eval `/usr/bin/modulecmd zsh use -a /afs/desy.de/group/cms/modulefiles/` -#eval `/usr/bin/modulecmd zsh load cmssw` -#eval `scramv1 runtime -sh` +if [[ $# == 0 ]] +then + echo $0 JobFlavour + echo 'For FastSim, `espresso` might be enough, but use `microcentury` just to have a safe margin' + echo 'For FullSim, `longlunch` is certainly not enough, try `workday` or even `tomorrow`' + echo 'See also https://batchdocs.web.cern.ch/local/submit.html' + exit 1 +fi + +eval `/usr/bin/modulecmd zsh use -a /afs/desy.de/group/cms/modulefiles/` +eval `/usr/bin/modulecmd zsh load cmssw` +eval `scramv1 runtime -sh` export LD_LIBRARY_PATH_STORED=$LD_LIBRARY_PATH -export NJOBS=1000 +export NJOBS=5000 +export FLAVOUR=$1 for i in {1..$NJOBS} do -- GitLab