Skip to content

Commit c582705

Browse files
committed
Adjustments for PWGHF embedding benchmark
SHMSIZE adjustment (learning from first GRID exercise)
1 parent 2e58a85 commit c582705

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

MC/run/PWGHF/embedding_benchmark.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ for tf in `seq 1 ${NTIMEFRAMES}`; do
5454
# now run digitization phase
5555
echo "Running digitization for $intRate kHz interaction rate"
5656

57-
gloOpt="-b --run --shm-segment-size 10000000000" # TODO: decide shared mem based on event number
57+
gloOpt="-b --run --shm-segment-size ${SHMSIZE:-20000000000}" # TODO: decide shared mem based on event number - default should be ok for 100PbPb timeframes
5858

5959
taskwrapper tpcdigi_${tf}.log o2-sim-digitizer-workflow $gloOpt -n ${NSIGEVENTS} --sims bkg,sgn${tf} --onlyDet TPC --interactionRate 50000 --tpc-lanes ${NWORKERS} --outcontext ${CONTEXTFILE}
60+
[ ! -f tpcdigits_${tf}.root ] && mv tpcdigits.root tpcdigits_${tf}.root
6061
# --> a) random seeding
6162
# --> b) propagation of collisioncontext and application in other digitization steps
6263

@@ -67,12 +68,13 @@ for tf in `seq 1 ${NTIMEFRAMES}`; do
6768
taskwrapper restdigi_${tf}.log o2-sim-digitizer-workflow $gloOpt -n ${NSIGEVENTS} --sims bkg,sgn${tf} --skipDet TRD,TPC,FT0 --interactionRate 50000 --incontext ${CONTEXTFILE}
6869
echo "Return status of OTHER digitization: $?"
6970

70-
taskwrapper tpcreco_${tf}.log o2-tpc-reco-workflow $gloOpt --tpc-digit-reader \"--infile tpcdigits.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=10000\"
71+
# TODO: check value for MaxTimeBin; A large value had to be set tmp in order to avoid crashes bases on "exceeding timeframe limit"
72+
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\"
7173
echo "Return status of tpcreco: $?"
7274

7375
# we need to move these products somewhere
7476
mv tpctracks.root tpctracks_${tf}.root
75-
mv tpcdigits.root tpcdigits_${tf}.root
77+
7678
done
7779

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

0 commit comments

Comments
 (0)