Edit run.sh

This commit is contained in:
Sam A. 2023-05-15 00:07:42 +02:00
parent 55b8b5c622
commit 17377b483b
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 8 additions and 6 deletions

View File

@ -1,12 +1,14 @@
#!/usr/bin/env bash
PROG="semi2k-party.x"
if [[ $1 == "-k" ]]; then
killall "$PROG"
exit "$?"
fi
cd "$(dirname "$0")/MP-SPDZ" || exit 1
if [[ $1 == "-k" ]]; then
killall semi2k-party.x
exit $?
fi
for i in $(seq 0 2); do
./semi2k-party.x -v -N 3 -p "$i" -e gale_shapley > "../out-p$i.txt" 2>&1 &
"./$PROG" -v -N 3 -p "$i" -e gale_shapley > "../out-p$i.txt" 2>&1 &
done