mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Rep4, SPDZ-wise, MNIST training.
This commit is contained in:
7
Scripts/emulate.sh
Executable file
7
Scripts/emulate.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
test -e logs || mkdir logs
|
||||
prog=${1%.sch}
|
||||
prog=${prog##*/}
|
||||
shift
|
||||
./emulate.x $prog $* 2>&1 | tee -a logs/emulate-$prog
|
||||
10
Scripts/rep4-ring.sh
Executable file
10
Scripts/rep4-ring.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
export PLAYERS=4
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player rep4-ring-party.x $* || exit 1
|
||||
@@ -24,7 +24,7 @@ lldb_screen()
|
||||
}
|
||||
|
||||
run_player() {
|
||||
port=$((RANDOM%10000+10000))
|
||||
port=$((RANDOM%60000+10000))
|
||||
bin=$1
|
||||
shift
|
||||
if ! test -e $SPDZROOT/logs; then
|
||||
|
||||
10
Scripts/sy-rep-field.sh
Executable file
10
Scripts/sy-rep-field.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
export PLAYERS=3
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player sy-rep-field-party.x $* || exit 1
|
||||
10
Scripts/sy-rep-ring.sh
Executable file
10
Scripts/sy-rep-ring.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
export PLAYERS=3
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player sy-rep-ring-party.x $* || exit 1
|
||||
10
Scripts/sy-shamir.sh
Executable file
10
Scripts/sy-shamir.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
export PLAYERS=3
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player sy-shamir-party.x $* || exit 1
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo MY_CFLAGS += -DINSECURE >> CONFIG.mine
|
||||
echo SECURE = -DINSECURE >> CONFIG.mine
|
||||
touch ECDSA/Fake-ECDSA.cpp
|
||||
|
||||
make -j4 ecdsa Fake-ECDSA.x secure.x
|
||||
|
||||
@@ -46,13 +46,15 @@ for dabit in ${dabit:-0 1 2}; do
|
||||
|
||||
./compile.py -R 64 $compile_opts tutorial
|
||||
|
||||
for i in ring semi2k brain mal-rep-ring ps-rep-ring spdz2k; do
|
||||
for i in ring rep4-ring semi2k brain mal-rep-ring ps-rep-ring sy-rep-ring \
|
||||
spdz2k; do
|
||||
test_vm $i $run_opts
|
||||
done
|
||||
|
||||
./compile.py $compile_opts tutorial
|
||||
|
||||
for i in rep-field shamir mal-rep-field ps-rep-field mal-shamir hemi semi \
|
||||
for i in rep-field shamir mal-rep-field ps-rep-field sy-rep-field \
|
||||
mal-shamir sy-shamir hemi semi \
|
||||
soho cowgear mascot; do
|
||||
test_vm $i $run_opts
|
||||
done
|
||||
@@ -60,6 +62,15 @@ for dabit in ${dabit:-0 1 2}; do
|
||||
test_vm chaigear $run_opts -l 3 -c 2
|
||||
done
|
||||
|
||||
./compile.py -R 64 -Z 3 tutorial
|
||||
test_vm ring $run_opts
|
||||
|
||||
./compile.py -R 64 -Z 4 tutorial
|
||||
test_vm rep4-ring $run_opts
|
||||
|
||||
./compile.py -R 64 -Z 2 tutorial
|
||||
test_vm semi2k $run_opts
|
||||
|
||||
./compile.py tutorial
|
||||
|
||||
test_vm cowgear $run_opts -T
|
||||
|
||||
Reference in New Issue
Block a user