Skip to content

Commit d3c8287

Browse files
pzhristovhristov
andauthored
Fixes for M1 (#6542)
* Resolve conflicts with PR #6492 * Fixes for the space checker Co-authored-by: hristov <Peter.Hristov@cern.ch>
1 parent 7859ec8 commit d3c8287

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Utilities/Tools/jobutils.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {
428428
getNumberOfPhysicalCPUCores() {
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}'`

prodtests/full_system_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ulimit -n 4096 # Make sure we can open sufficiently many files
7474
mkdir -p qed
7575
cd qed
7676
PbPbXSec="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."'
7878
QED2HAD=$(awk "BEGIN {printf \"%.2f\",`grep xSectionQED qedgenparam.ini | cut -d'=' -f 2`/$PbPbXSec}")
7979
echo "Obtained ratio of QED to hadronic x-sections = $QED2HAD" >> qedsim.log
8080
cd ..

0 commit comments

Comments
 (0)