Browse Source

adding a flag for 2P/3P

avadapal 2 years ago
parent
commit
16506cbc27
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Docker/run-experiment.sh

+ 5 - 0
Docker/run-experiment.sh

@@ -7,6 +7,7 @@ p2addr=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' duoram_p2)
 
 # The Duoram mode and size
 # mode is read, write, readwrite, or init
+duoramtype=2P
 phase=online
 mode=read
 size=20
@@ -25,6 +26,10 @@ if [ "$4" != "" ]; then
     phase="$4"
 fi
 
+if [ "$5" != "" ]; then
+    duoramtype="$5"
+fi
+
 if [ "$mode" == "read" ]; then
     modeval="0"
 fi