mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
41 lines
1.6 KiB
Bash
Executable File
41 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
export FAIRMQ_PATH=@FAIRMQ_BIN_DIR@
|
|
|
|
msgSize="1000000"
|
|
|
|
if [[ $1 =~ ^[0-9]+$ ]]; then
|
|
msgSize=$1
|
|
fi
|
|
|
|
READOUT="fairmq-ex-readout-readout"
|
|
READOUT+=" --id readout1"
|
|
READOUT+=" --msg-size $msgSize"
|
|
READOUT+=" --channel-config name=rb,type=pair,method=bind,address=tcp://localhost:7777,transport=shmem"
|
|
xterm -geometry 80x23+0+0 -hold -e @EX_BIN_DIR@/$READOUT &
|
|
|
|
BUILDER="fairmq-ex-readout-builder"
|
|
BUILDER+=" --id builder1"
|
|
BUILDER+=" --output-name bp"
|
|
BUILDER+=" --channel-config name=rb,type=pair,method=connect,address=tcp://localhost:7777,transport=shmem"
|
|
BUILDER+=" name=bp,type=pair,method=connect,address=tcp://localhost:7778,transport=shmem"
|
|
xterm -geometry 80x23+500+0 -hold -e @EX_BIN_DIR@/$BUILDER &
|
|
|
|
PROCESSOR="fairmq-ex-readout-processor"
|
|
PROCESSOR+=" --id processor1"
|
|
PROCESSOR+=" --channel-config name=bp,type=pair,method=bind,address=tcp://localhost:7778,transport=shmem"
|
|
PROCESSOR+=" name=ps,type=pair,method=connect,address=tcp://localhost:7779,transport=shmem"
|
|
xterm -geometry 80x23+750+500 -hold -e @EX_BIN_DIR@/$PROCESSOR &
|
|
|
|
SENDER="fairmq-ex-readout-sender"
|
|
SENDER+=" --id sender1"
|
|
SENDER+=" --input-name ps"
|
|
SENDER+=" --channel-config name=ps,type=pair,method=bind,address=tcp://localhost:7779,transport=shmem"
|
|
SENDER+=" name=sr,type=pair,method=connect,address=tcp://localhost:7780,transport=ofi"
|
|
xterm -geometry 80x23+1000+0 -hold -e @EX_BIN_DIR@/$SENDER &
|
|
|
|
RECEIVER="fairmq-ex-readout-receiver"
|
|
RECEIVER+=" --id receiver1"
|
|
RECEIVER+=" --channel-config name=sr,type=pair,method=bind,address=tcp://localhost:7780,transport=ofi"
|
|
xterm -geometry 80x23+1500+0 -hold -e @EX_BIN_DIR@/$RECEIVER &
|