mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 04:24:37 +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
19 lines
380 B
Bash
19 lines
380 B
Bash
#!/bin/bash
|
|
|
|
if [ $# != 1 ]
|
|
then
|
|
systemctl start JF01-buffer-worker@{00..02}
|
|
exit
|
|
fi
|
|
|
|
M=$1
|
|
|
|
coreAssociatedBuffer=(12 12 12)
|
|
|
|
initialUDPport=50010
|
|
port=$((${initialUDPport}+10#${M}))
|
|
DETECTOR=JF01T03V01
|
|
N_MODULES=3
|
|
|
|
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|