Browse Source

printing outputs differently

avadapal 1 year ago
parent
commit
55b32eba25
2 changed files with 9 additions and 7 deletions
  1. 8 4
      heap.cpp
  2. 1 3
      repro/repro-heap-extract.sh

+ 8 - 4
heap.cpp

@@ -756,13 +756,14 @@ void Heap(MPCIO & mpcio,
     
     const PRACOptions & opts, char ** args) {
     
-    int argc = 12;
+    int argc = 14;
     int maxdepth = 0;
     int heapdepth = 0;
     size_t n_inserts = 0;
     size_t n_extracts = 0;
     int is_optimized = 0;
     int run_sanity = 0;
+    int itr = 0;
 
     // Process command line arguments
     for (int i = 0; i < argc; i += 2) {
@@ -779,15 +780,18 @@ void Heap(MPCIO & mpcio,
             is_optimized = std::atoi(args[i + 1]);
         } else if (option == "-s" && i + 1 < argc) {
             run_sanity = std::atoi(args[i + 1]);
+        } else if (option == "-itr" && i + 1 < argc) {
+            itr = std::atoi(args[i + 1]);
         }
     }
 
-    std::cout << "maxdepth: " << maxdepth << std::endl;
-    std::cout << "heapdepth: " << heapdepth << std::endl;
+    //std::cout << "maxdepth: " << maxdepth << std::endl;
+    //std::cout << "run_sanity: " << run_sanity << std::endl;
+    std::cout << "heapsize: " << heapdepth << std::endl;
     std::cout << "n_inserts: " << n_inserts << std::endl;
     std::cout << "n_extracts: " << n_extracts << std::endl;
     std::cout << "is_optimized: " << is_optimized << std::endl;
-    std::cout << "run_sanity: " << run_sanity << std::endl;
+    std::cout << "itr: " << itr << std::endl;
 
     
     MPCTIO tio(mpcio, 0, opts.num_threads);

+ 1 - 3
repro/repro-heap-extract.sh

@@ -14,8 +14,6 @@
    ./run-experiment heap -m 18 -d 18 -i 0 -e 1 -opt 0 -s 0 > basic_heap_extract_online_18
    echo "preprocessing_heap_18 (basic online)"
 
-
-
    ./run-experiment -p m:80 a:20 s:19 r20:114 c:40 p:128 > basic_heap_extract_preproc_20
    echo "preprocessing_heap_20 (basic preproc)"
    
@@ -78,4 +76,4 @@
   ./run-experiment -t 32 heap -m 24 -d 24 -i 0 -e 1 -opt 1 -s 0 > opt_heap_extract_online_24
   echo "preprocessing_heap_26 (opt preproc)"
  ./run-experiment -t 64 heap -m 26 -d 26 -i 0 -e 1 -opt 1 -s 0 > opt_heap_extract_online_26
-  echo "preprocessing_heap_26 (opt online)"
+  echo "preprocessing_heap_26 (opt online)"