|
|
|||
File indexing completed on 2026-10-15 08:17:26
0001 #!/bin/bash 0002 # Submit the single full-statistics corral job for a dataset (all its events in one job; this is also 0003 # the reference Finalize compares against). 0004 # Usage: ./run_m.bash <dataset> [nev] (nev: events, default 0 = all) 0005 # Reads lists/<dataset>/list_all.txt (made by lists/make_lists.bash). 0006 # CORRAL_VARIANT=<name> CORRAL_RS=<runstring> ./run_m.bash <dataset> a VARIANT (as run_m_array.bash): outputs under <dataset>_<name>/ 0007 # Snapshots the current corral to log/<out>/corral.snapshot (a rebuild cannot change a pending job). 0008 # Outputs (<out> = <dataset>, or <dataset>_<CORRAL_VARIANT>): root/<out>/corral.root, pdf/<out>/corral.pdf, log/<out>/corral.log 0009 # project directory = $CORRAL_DIR if set, else the directory this script lives in (passed on to the job) 0010 export CORRAL_DIR=${CORRAL_DIR:-$(cd "$(dirname "$(readlink -f "$0")")" && pwd)} 0011 cd $CORRAL_DIR || exit 1 0012 0013 SET=$1 0014 thisNEV=${2:-0} 0015 if [ -z "$SET" ] || [ ! -f $CORRAL_DIR/lists/$SET/list_all.txt ]; then 0016 echo "usage: $0 <dataset> [nev] (no lists/$SET/list_all.txt -- run lists/make_lists.bash first)"; exit 1 0017 fi 0018 OUT=$SET 0019 VAR=$CORRAL_VARIANT 0020 CRS=$CORRAL_RS 0021 if [ -n "$CRS" ] && [ -z "$VAR" ]; then echo "CORRAL_RS='$CRS' needs a CORRAL_VARIANT=<name> (outputs go to <set>_<name>/)"; exit 1; fi 0022 if [ -n "$VAR" ]; then 0023 [ -z "$CRS" ] && echo "variant $VAR: the code defaults (no run string), e.g. a new code version next to the old outputs" 0024 OUT=${SET}_$VAR 0025 [ -e $CORRAL_DIR/lists/$OUT ] || ln -s $SET $CORRAL_DIR/lists/$OUT 0026 fi 0027 mkdir -p $CORRAL_DIR/root/$OUT $CORRAL_DIR/pdf/$OUT $CORRAL_DIR/log/$OUT 0028 cp -v $CORRAL_DIR/corral $CORRAL_DIR/log/$OUT/corral.snapshot 0029 0030 #EXCL=dad1,dad2,dad3,dad4,dad5,dad6,dad7,dad8,hax9,hax1,hax2,hax3,hax4,hax5,hax6,hax7,hax8,hax9,hax10,hax11,hax12,hax13,hax14,hax15,hax16,hax17,hax18 0031 #sbatch --partition=prip --time=2-23:59:59 --exclude=$EXCL \ 0032 0033 #---- keep off the hax* and rpr* nodes (user, 2026-09-28: hax18 stalled reading /rs); EXCLUDE="..." replaces the 0034 #---- list (sbatch --exclude syntax), EXCLUDE= (empty) allows every node 0035 EXCLUDE=${EXCLUDE-hax[1-18],rpr[1-24]} 0036 #---- the single full-statistics job (user, 2026-09-28): ana573 is 642M events, ~13 h at 61 min / 50M, memory 0037 #---- ~1.3 GB + 8 MB per M events (~6.6 GB): defaults 7 days and 16G; TIME= / MEM= override them 0038 TIME=${TIME-6-23:59:59} 0039 MEM=${MEM-16G} 0040 sbatch --partition=prip --time=$TIME ${EXCLUDE:+--exclude=$EXCLUDE} \ 0041 --job-name=crm1_$OUT \ 0042 --error=./log/$OUT/corral.log \ 0043 --output=./log/$OUT/corral.log \ 0044 --mem=$MEM \ 0045 --export=ALL \ 0046 run_m.slurm $SET $thisNEV $OUT $CRS 0047 0048 exit
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|