Skip to content

Commit 941b0ca

Browse files
committed
Don't override SHM sizes if set externally, + fix some whitespace
1 parent 316a5ce commit 941b0ca

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

DATA/production/configurations/2022/LHC22f/apass1/async_pass.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fi
9292

9393
echo processing run $RUNNUMBER, from period $PERIOD with $BEAMTYPE collisions and mode $MODE
9494

95-
###if [[ $MODE == "remote" ]]; then
95+
###if [[ $MODE == "remote" ]]; then
9696
# common archive
9797
if [[ ! -f commonInput.tgz ]]; then
9898
echo "No commonInput.tgz found exiting"
@@ -107,13 +107,13 @@ echo processing run $RUNNUMBER, from period $PERIOD with $BEAMTYPE collisions an
107107
# run specific archive
108108
if [[ ! -f runInput_$RUNNUMBER.tgz ]]; then
109109
echo "No runInput_$RUNNUMBER.tgz, let's hope we don't need it"
110-
else
110+
else
111111
tar -xzvf runInput_$RUNNUMBER.tgz
112112
fi
113113
###fi
114114

115115
echo "Checking current directory content"
116-
ls -altr
116+
ls -altr
117117

118118
if [[ -f "setenv_extra.sh" ]]; then
119119
source setenv_extra.sh $RUNNUMBER $BEAMTYPE
@@ -169,11 +169,14 @@ fi
169169

170170
echo "[INFO (async_pass.sh)] envvars were set to TFDELAYSECONDS ${TFDELAYSECONDS} TIMEFRAME_RATE_LIMIT ${TIMEFRAME_RATE_LIMIT}"
171171

172+
if [[ ! -z "$ALIEN_JDL_SHMSIZE" ]]; then export SHMSIZE=$ALIEN_JDL_SHMSIZE; elif [[ -z "$SHMSIZE" ]]; then export SHMSIZE=$(( 16 << 30 )); fi
173+
if [[ ! -z "$ALIEN_JDL_DDSHMSIZE" ]]; then export DDSHMSIZE=$ALIEN_JDL_DDSHMSIZE; elif [[ -z "$DDSHMSIZE" ]]; then export DDSHMSIZE=$(( 32 << 10 )); fi
174+
172175
# reco and matching
173176
# print workflow
174-
IS_SIMULATED_DATA=0 WORKFLOWMODE=print DISABLE_ROOT_OUTPUT="" TFDELAY=$TFDELAYSECONDS NTIMEFRAMES=-1 SHMSIZE=16000000000 DDSHMSIZE=32000 ./run-workflow-on-inputlist.sh CTF list.list > workflowconfig.log
177+
IS_SIMULATED_DATA=0 WORKFLOWMODE=print DISABLE_ROOT_OUTPUT="" TFDELAY=$TFDELAYSECONDS NTIMEFRAMES=-1 ./run-workflow-on-inputlist.sh CTF list.list > workflowconfig.log
175178
# run it
176-
IS_SIMULATED_DATA=0 WORKFLOWMODE=run DISABLE_ROOT_OUTPUT="" TFDELAY=$TFDELAYSECONDS NTIMEFRAMES=-1 SHMSIZE=16000000000 DDSHMSIZE=32000 ./run-workflow-on-inputlist.sh CTF list.list
179+
IS_SIMULATED_DATA=0 WORKFLOWMODE=run DISABLE_ROOT_OUTPUT="" TFDELAY=$TFDELAYSECONDS NTIMEFRAMES=-1 ./run-workflow-on-inputlist.sh CTF list.list
177180

178181
# now extract all performance metrics
179182
IFS=$'\n'
@@ -196,7 +199,7 @@ if [[ -f "AO2D.root" ]]; then
196199
echo "exit code from AO2D check is " $exitcode
197200
exit $exitcode
198201
fi
199-
if [[ $ALIEN_JDL_RUNANALYSISQC == 1 ]]; then
202+
if [[ $ALIEN_JDL_RUNANALYSISQC == 1 ]]; then
200203
${O2DPG_ROOT}/MC/analysis_testing/o2dpg_analysis_test_workflow.py -f AO2D.root
201204
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow_analysis_test.json > analysisQC.log
202205
if [[ -f "Analysis/MergedAnalyses/AnalysisResults.root" ]]; then

0 commit comments

Comments
 (0)