mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 00:24:36 +02:00
cc85b6e71d
# Conflicts: # CMakeLists.txt # jf-assembler/test/main.cpp # jf-live-writer/CMakeLists.txt # jf-live-writer/include/live_writer_config.hpp # jf-live-writer/src/main.cpp # jf-live-writer/test/CMakeLists.txt # jf-live-writer/test/main.cpp # scripts/JF01-buffer-worker.sh # scripts/JF02-buffer-worker.sh # scripts/JF06-buffer-worker.sh # scripts/JF06_4M-buffer-worker.sh # sf-stream/include/stream_config.hpp # sf-stream/src/ZmqLiveSender.cpp
30 lines
577 B
Bash
30 lines
577 B
Bash
#!/bin/bash
|
|
|
|
if [ $# != 1 ]
|
|
then
|
|
systemctl start JF02-buffer-worker@{00..08}
|
|
exit
|
|
fi
|
|
|
|
M=$1
|
|
|
|
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
|
|
|
|
case ${H} in
|
|
'sf-daq-4')
|
|
coreAssociatedBuffer=(11 12 13 14 15 16 17 18 19)
|
|
;;
|
|
'sf-daq-8')
|
|
coreAssociatedBuffer=(1 1 1 2 2 2 3 3 3)
|
|
;;
|
|
*)
|
|
CORES=(25 25 26 26 27 27 28 28 29)
|
|
esac
|
|
|
|
initialUDPport=50020
|
|
port=$((${initialUDPport}+10#${M}))
|
|
DETECTOR=JF02T09V02
|
|
N_MODULES=9
|
|
|
|
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|