File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,12 +187,12 @@ taskwrapper() {
187187
188188 grepcommand=" grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} >> encountered_exceptions_list 2>/dev/null"
189189 eval ${grepcommand}
190-
190+
191191 grepcommand=" grep -a -h --count ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} 2>/dev/null"
192192 # using eval here since otherwise the pattern is translated to a
193193 # a weirdly quoted stringlist
194194 RC=$( eval ${grepcommand} )
195-
195+
196196 # if we see an exception we will bring down the DPL workflow
197197 # after having given it some chance to shut-down itself
198198 # basically --> send kill to all children
@@ -428,7 +428,11 @@ taskwrapper() {
428428getNumberOfPhysicalCPUCores () {
429429 if [ " $( uname) " == " Darwin" ]; then
430430 CORESPERSOCKET=` system_profiler SPHardwareDataType | grep " Total Number of Cores:" | awk ' {print $5}' `
431- SOCKETS=` system_profiler SPHardwareDataType | grep " Number of Processors:" | awk ' {print $4}' `
431+ if [ " $( uname -m) " == " arm64" ]; then
432+ SOCKETS=1
433+ else
434+ SOCKETS=` system_profiler SPHardwareDataType | grep " Number of Processors:" | awk ' {print $4}' `
435+ fi
432436 else
433437 # Do something under GNU/Linux platform
434438 CORESPERSOCKET=` lscpu | grep " Core(s) per socket" | awk ' {print $4}' `
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ ulimit -n 4096 # Make sure we can open sufficiently many files
7474mkdir -p qed
7575cd qed
7676PbPbXSec=" 8."
77- taskwrapper qedsim.log o2-sim --seed $O2SIMSEED -j $NJOBS -n$NEventsQED -m PIPE ITS MFT FT0 FV0 FDD -g extgen -e ${FST_MC_ENGINE} --configKeyValues ' "GeneratorExternal.fileName=$O2_ROOT/share/Generators/external/QEDLoader.C;QEDGenParam.yMin=-7;QEDGenParam.yMax=7;QEDGenParam.ptMin=0.001;QEDGenParam.ptMax=1.;Diamond.width[2]=6."'
77+ taskwrapper qedsim.log o2-sim --seed $O2SIMSEED -j $NJOBS -n $NEventsQED -m PIPE ITS MFT FT0 FV0 FDD -g extgen -e ${FST_MC_ENGINE} --configKeyValues ' "GeneratorExternal.fileName=$O2_ROOT/share/Generators/external/QEDLoader.C;QEDGenParam.yMin=-7;QEDGenParam.yMax=7;QEDGenParam.ptMin=0.001;QEDGenParam.ptMax=1.;Diamond.width[2]=6."'
7878QED2HAD=$( awk " BEGIN {printf \" %.2f\" ,` grep xSectionQED qedgenparam.ini | cut -d' =' -f 2` /$PbPbXSec }" )
7979echo " Obtained ratio of QED to hadronic x-sections = $QED2HAD " >> qedsim.log
8080cd ..
You can’t perform that action at this time.
0 commit comments