additional parameter for sf_writer - total number of modules to retrieve from buffer, to be able to test with smaller detectors

This commit is contained in:
Dmitry Ozerov
2020-06-03 12:58:27 +02:00
committed by Data Backend account
parent d6973dfc58
commit 7be41c8ed4
2 changed files with 22 additions and 5 deletions
+15 -1
View File
@@ -23,6 +23,20 @@ else
OUTFILE=/gpfs/photonics/swissfel/buffer/test.${START_PULSE_ID}-${STOP_PULSE_ID}.h5
fi
case ${DETECTOR} in
'JF01T03V01')
NM=3
;;
'JF07T32V01')
NM=32
;;
'JF13T01V01')
NM=1
;;
*)
NM=1
esac
#8 replay workers per core
#coreAssociated_replay=(20 20 20 20 20 20 20 20 21 21 21 21 21 21 21 21 22 22 22 22 22 22 22 22 23 23 23 23 23 23 23 23)
#4 replay workers per core
@@ -66,7 +80,7 @@ echo "Started actual retrieve : "`date`
# taskset -c ${coreAssociated_replay[10#${M}]} /usr/bin/sf_replay ${PROCESS_PID} ${DETECTOR} M${M} ${M} ${START_PULSE_ID} ${STOP_PULSE_ID} >> /tmp/detector_retrieve_replay.log &
#done
taskset -c ${coreAssociated} /usr/bin/sf_writer ${OUTFILE} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${START_PULSE_ID} ${STOP_PULSE_ID} >> /tmp/detector_retrieve.log &
taskset -c ${coreAssociated} /usr/bin/sf_writer ${OUTFILE} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${NM} ${START_PULSE_ID} ${STOP_PULSE_ID} >> /tmp/detector_retrieve.log &
wait