Skip to content
Snippets Groups Projects
Commit 7e2f474a authored by Rick Carback's avatar Rick Carback
Browse files

add options to stop on exit and to show console output

parent 3795faa5
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ do ...@@ -49,7 +49,7 @@ do
SERVERCMD="../bin/server -i $IDX --roundBufferTimeout 300s --config server-$SERVERID.yaml" SERVERCMD="../bin/server -i $IDX --roundBufferTimeout 300s --config server-$SERVERID.yaml"
if [ $SERVERID -eq 5 ] && [ -n "$NSYSENABLED" ] if [ $SERVERID -eq 5 ] && [ -n "$NSYSENABLED" ]
then then
SERVERCMD="nsys profile --trace=cuda -o server-$SERVERID $SERVERCMD" SERVERCMD="nsys profile --trace=cuda -o -w -x server-$SERVERID $SERVERCMD"
fi fi
$SERVERCMD > $SERVERLOGS/server-$SERVERID-console.txt 2>&1 & $SERVERCMD > $SERVERLOGS/server-$SERVERID-console.txt 2>&1 &
PIDVAL=$! PIDVAL=$!
...@@ -70,9 +70,6 @@ jobs -p > results/serverpids ...@@ -70,9 +70,6 @@ jobs -p > results/serverpids
finish() { finish() {
echo "STOPPING SERVERS AND GATEWAYS..." echo "STOPPING SERVERS AND GATEWAYS..."
if [ -n "$NSYSENABLED" ]; then
nsys shutdown --kill=sigterm
fi
# NOTE: jobs -p doesn't work in a signal handler # NOTE: jobs -p doesn't work in a signal handler
for job in $(cat results/serverpids) for job in $(cat results/serverpids)
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment