From 82757b8172355d0fbee095570207246da0447c1b Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sun, 14 May 2023 21:50:45 +0200 Subject: [PATCH] Fix scripts --- src/Makefile | 2 +- src/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 0c5b0e1..a9b43f0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,7 +16,7 @@ ssl: cd $(MP_SPDZ_PATH) && Scripts/setup-ssl.sh 3 %.mpc: _phony - python3 $(MP_SPDZ_PATH)/compile.py -R 64 -O $@ + cd $(MP_SPDZ_PATH) && python3 compile.py -R 64 -O ../$@ %: $(MAKE) -C $(MP_SPDZ_PATH) $@ diff --git a/src/run.sh b/src/run.sh index 5e17afb..106ab05 100755 --- a/src/run.sh +++ b/src/run.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -cd MP-SPDZ +cd "$(dirname "$0")/MP-SPDZ" || exit 1 if [[ $1 == "-k" ]]; then killall semi2k-party.x @@ -8,5 +8,5 @@ if [[ $1 == "-k" ]]; then fi for i in $(seq 0 2); do - ./semi2k-party.x -N 3 -p "$i" -e gale_shapley > "../out-p$i.txt" 2>&1 & + ./semi2k-party.x -v -N 3 -p "$i" -e gale_shapley > "../out-p$i.txt" 2>&1 & done