mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Mixed computation, binary computation with XOR-based MACs.
This commit is contained in:
@@ -1,31 +1,70 @@
|
||||
#!/bin/bash
|
||||
|
||||
while getopts XC opt; do
|
||||
case $opt in
|
||||
X) compile_opts=-X
|
||||
dabit=1
|
||||
;;
|
||||
C) cheap=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $[OPTIND-1]
|
||||
|
||||
for i in 0 1; do
|
||||
seq 0 3 > Player-Data/Input-P$i-0
|
||||
done
|
||||
|
||||
function test
|
||||
function test_vm
|
||||
{
|
||||
ulimit -c unlimited
|
||||
if ! Scripts/$1.sh tutorial | grep 'weighted average: 2.333'; then
|
||||
Scripts/$1.sh tutorial
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
./compile.py -R 64 tutorial
|
||||
for dabit in ${dabit:-0 1}; do
|
||||
if [[ $dabit = 1 ]]; then
|
||||
compile_opts="$compile_opts -X"
|
||||
fi
|
||||
|
||||
for i in ring brain mal-rep-ring ps-rep-ring semi2k spdz2k; do
|
||||
test $i
|
||||
./compile.py -R 64 $compile_opts tutorial
|
||||
|
||||
for i in ring brain mal-rep-ring ps-rep-ring semi2k; do
|
||||
test_vm $i
|
||||
done
|
||||
|
||||
if ! test "$dabit" = 1 -a "$cheap" = 1; then
|
||||
test_vm spdz2k
|
||||
fi
|
||||
|
||||
./compile.py $compile_opts tutorial
|
||||
|
||||
for i in rep-field mal-rep-field ps-rep-field; do
|
||||
test_vm $i
|
||||
done
|
||||
|
||||
if [[ ! "$dabit" = 1 ]]; then
|
||||
for i in shamir mal-shamir; do
|
||||
test_vm $i
|
||||
done
|
||||
fi
|
||||
|
||||
for i in hemi semi; do
|
||||
test_vm $i
|
||||
done
|
||||
|
||||
if ! test "$dabit" = 1 -a "$cheap" = 1; then
|
||||
for i in cowgear mascot; do
|
||||
test_vm $i
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
./compile.py tutorial
|
||||
./compile.py -B 16 $compile_opts tutorial
|
||||
|
||||
for i in rep-field mal-rep-field ps-rep-field shamir mal-shamir hemi cowgear semi mascot; do
|
||||
test $i
|
||||
done
|
||||
|
||||
./compile.py -B 16 tutorial
|
||||
|
||||
for i in replicated mal-rep-bin semi-bin yao tiny rep-bmr mal-rep-bmr shamir-bmr mal-shamir-bmr; do
|
||||
test $i
|
||||
for i in replicated mal-rep-bin semi-bin yao tinier tiny rep-bmr mal-rep-bmr shamir-bmr mal-shamir-bmr; do
|
||||
test_vm $i
|
||||
done
|
||||
|
||||
8
Scripts/tinier.sh
Executable file
8
Scripts/tinier.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player tinier-party.x $* || exit 1
|
||||
Reference in New Issue
Block a user