Skip to content

Commit bbfbc7c

Browse files
committed
Add CMV processing
1 parent e31bd4d commit bbfbc7c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

prodtests/full-system-test/aggregator-workflow.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ if workflow_has_parameter CALIB_PROXIES; then
161161
fi
162162
CHANNELS_LIST=
163163
[[ $EPNSYNCMODE == 0 ]] && FLP_ADDRESS="tcp://localhost:29950"
164-
if [[ -n ${CALIBDATASPEC_TPCIDC_A:-} ]] || [[ -n ${CALIBDATASPEC_TPCIDC_C:-} ]]; then
164+
if [[ -n ${CALIBDATASPEC_TPCIDC_A:-} ]] || [[ -n ${CALIBDATASPEC_TPCIDC_C:-} ]] || [[ -n ${CALIBDATASPEC_TPCCMV:-} ]]; then
165165
# define port for FLP
166166
: ${TPC_IDC_FLP_PORT:=29950}
167167
# expand FLPs; TPC uses from 001 to 145, but 145 is reserved for SAC
@@ -190,10 +190,13 @@ if workflow_has_parameter CALIB_PROXIES; then
190190
if [[ -n ${CALIBDATASPEC_TPCIDC_C:-} ]]; then
191191
add_semicolon_separated DATASPEC_LIST "\"$CALIBDATASPEC_TPCIDC_C\""
192192
fi
193+
if [[ -n ${CALIBDATASPEC_TPCCMV:-} ]]; then
194+
add_semicolon_separated DATASPEC_LIST "\"$CALIBDATASPEC_TPCCMV\""
195+
fi
193196
if [[ -n ${CALIBDATASPEC_TPCSAC:-} ]]; then
194197
add_semicolon_separated DATASPEC_LIST "\"$CALIBDATASPEC_TPCSAC\""
195198
fi
196-
add_W o2-dpl-raw-proxy "--proxy-name tpcidc --io-threads 2 --dataspec \"$DATASPEC_LIST\" --sporadic-outputs --channel-config \"$CHANNELS_LIST\" ${TIMEFRAME_SHM_LIMIT+--timeframes-shm-limit} $TIMEFRAME_SHM_LIMIT" "" 0
199+
add_W o2-dpl-raw-proxy "--proxy-name tpcidc --io-threads 4 --dataspec \"$DATASPEC_LIST\" --sporadic-outputs --channel-config \"$CHANNELS_LIST\" ${TIMEFRAME_SHM_LIMIT+--timeframes-shm-limit} $TIMEFRAME_SHM_LIMIT" "" 0
197200
fi
198201
elif [[ $AGGREGATOR_TASKS == CALO_TF ]]; then
199202
if [[ -n ${CALIBDATASPEC_CALO_TF:-} ]]; then
@@ -301,6 +304,7 @@ threadFactorize=${O2_TPC_IDC_FACTORIZE_NTHREADS:-16}
301304
nTFs=$((1000 * 128 / ${NHBPERTF}))
302305
nTFs_SAC=$((10000 * 128 / ${NHBPERTF}))
303306
nBuffer=$((100 * 128 / ${NHBPERTF}))
307+
nBuffer_cmv=$((300 * 128 / ${NHBPERTF}))
304308
IDC_DELTA="--disable-IDCDelta true" # off by default
305309
# deltas are on by default; you need to request explicitly to switch them off;
306310
if [[ "${DISABLE_IDC_DELTA:-}" == "1" ]]; then IDC_DELTA=""; fi
@@ -310,10 +314,15 @@ if [[ "${DISABLE_IDC_PAD_MAP_WRITING:-}" == 1 ]]; then TPC_WRITING_PAD_STATUS_MA
310314

311315
if ! workflow_has_parameter CALIB_LOCAL_INTEGRATED_AGGREGATOR; then
312316
if [[ $CALIB_TPC_IDC == 1 ]] && [[ $AGGREGATOR_TASKS == TPC_IDCBOTH_SAC || $AGGREGATOR_TASKS == ALL ]]; then
313-
add_W o2-tpc-idc-distribute "--crus ${crus} --timeframes ${nTFs} --output-lanes ${lanesFactorize} --send-precise-timestamp true --condition-tf-per-query ${nTFs} --n-TFs-buffer ${nBuffer}"
317+
add_W o2-tpc-idc-distribute "--crus ${crus} --timeframes ${nTFs} --output-lanes ${lanesFactorize} --send-precise-timestamp true --condition-tf-per-query ${nTFs} "
314318
add_W o2-tpc-idc-factorize "--n-TFs-buffer ${nBuffer} --input-lanes ${lanesFactorize} --crus ${crus} --timeframes ${nTFs} --nthreads-grouping ${threadFactorize} --nthreads-IDC-factorization ${threadFactorize} --sendOutputFFT true --enable-CCDB-output true --enablePadStatusMap true ${TPC_WRITING_PAD_STATUS_MAP} --use-precise-timestamp true $IDC_DELTA" "TPCIDCGroupParam.groupPadsSectorEdges=32211"
315319
add_W o2-tpc-idc-ft-aggregator "--rangeIDC 200 --inputLanes ${lanesFactorize} --nFourierCoeff 40 --nthreads 8"
316320
fi
321+
if [[ $CALIB_TPC_CMV == 1 ]] && [[ $AGGREGATOR_TASKS == TPC_IDCBOTH_SAC || $AGGREGATOR_TASKS == ALL ]]; then
322+
add_W o2-tpc-cmv-distribute "--crus ${crus} --lanes 4 --n-TFs-buffer ${nBuffer_cmv} --enable-CCDB-output --cmv-zero-threshold 1.0 --cmv-dynamic-precision-mean 1.0 --cmv-dynamic-precision-sigma 8.0 --use-sparse --use-compression-huffman"
323+
## add_W o2-tpc-cmv-distribute "--crus ${crus} --lanes 4 --n-TFs-buffer ${nBuffer_cmv} --enable-CCDB-output --cmv-zero-threshold 1.0 --cmv-dynamic-precision-mean 1.0 --cmv-dynamic-precision-sigma 8.0 --use-sparse"
324+
## add_W o2-tpc-cmv-distribute "--crus ${crus} --lanes 4 --n-TFs-buffer ${nBuffer_cmv} --enable-CCDB-output --cmv-zero-threshold 1.0 --use-sparse "
325+
fi
317326
if [[ $CALIB_TPC_SAC == 1 ]] && [[ $AGGREGATOR_TASKS == TPC_IDCBOTH_SAC || $AGGREGATOR_TASKS == ALL ]]; then
318327
add_W o2-tpc-sac-distribute "--timeframes ${nTFs_SAC} --output-lanes 1 "
319328
add_W o2-tpc-sac-factorize "--timeframes ${nTFs_SAC} --nthreads-SAC-factorization 4 --input-lanes 1 --compression 2"

0 commit comments

Comments
 (0)