Skip to content

Commit 84ce01a

Browse files
committed
Changes to PWGHF embedding script
* clusters need to be sent per sector to prevent ROOT serialization problems * tpc-reco: constrain to given number of cores (otherwise benchmark might be slightly wrong when executed on many-core architectures)
1 parent cfde34e commit 84ce01a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MC/run/PWGHF/embedding_benchmark.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ for tf in `seq 1 ${NTIMEFRAMES}`; do
7777
gloOpt="-b --run --shm-segment-size ${SHMSIZE:-50000000000}" # TODO: decide shared mem based on event number - default should be ok for 100PbPb timeframes
7878

7979
taskwrapper tpcdigi_${tf}.log o2-sim-digitizer-workflow $gloOpt -n ${NSIGEVENTS} --sims bkg,sgn${tf} --onlyDet TPC --interactionRate 50000 --tpc-lanes ${NWORKERS} --outcontext ${CONTEXTFILE}
80+
echo "Return status of TPC digitization: $?"
81+
8082
[ ! -f tpcdigits_${tf}.root ] && mv tpcdigits.root tpcdigits_${tf}.root
8183
# --> a) random seeding
8284
# --> b) propagation of collisioncontext and application in other digitization steps
8385

84-
echo "Return status of TPC digitization: $?"
8586
taskwrapper trddigi_${tf}.log o2-sim-digitizer-workflow $gloOpt -n ${NSIGEVENTS} --sims bkg,sgn${tf} --onlyDet TRD --interactionRate 50000 --configKeyValues "TRDSimParams.digithreads=10" --incontext ${CONTEXTFILE}
8687
echo "Return status of TRD digitization: $?"
8788

@@ -95,7 +96,7 @@ for tf in `seq 1 ${NTIMEFRAMES}`; do
9596
# -----------
9697

9798
# TODO: check value for MaxTimeBin; A large value had to be set tmp in order to avoid crashes bases on "exceeding timeframe limit"
98-
taskwrapper tpcreco_${tf}.log o2-tpc-reco-workflow $gloOpt --tpc-digit-reader \"--infile tpcdigits_${tf}.root\" --input-type digits --output-type clusters,tracks --tpc-track-writer \"--treename events --track-branch-name Tracks --trackmc-branch-name TracksMCTruth\" --configKeyValues \"GPU_global.continuousMaxTimeBin=100000\"
99+
taskwrapper tpcreco_${tf}.log o2-tpc-reco-workflow $gloOpt --tpc-digit-reader \"--infile tpcdigits_${tf}.root\" --input-type digits --output-type clusters,tracks,send-clusters-per-sector --tpc-track-writer \"--treename events --track-branch-name Tracks --trackmc-branch-name TracksMCTruth\" --configKeyValues "\"GPU_global.continuousMaxTimeBin=100000;GPU_proc.ompThreads=${NWORKERS}\""
99100
echo "Return status of tpcreco: $?"
100101

101102
echo "Running ITS reco flow"
@@ -132,7 +133,7 @@ for tf in `seq 1 ${NTIMEFRAMES}`; do
132133
cp ${CONTEXTFILE} output
133134

134135
# cleanup step for this timeframe (we cleanup disc space early so as to make possible checkpoint dumps smaller)
135-
taskwrapper cleanup_${tf}.log "[ -f aod${tf}.log_done ] && rm sgn${tf}* && rm *digits*.root"
136+
taskwrapper cleanup_${tf}.log "[ -f aod${tf}.log_done ] && rm sgn${tf}* && rm *digits*.root; exit 0"
136137
done
137138

138139
# We need to exit for the ALIEN JOB HANDLER!

0 commit comments

Comments
 (0)