瀏覽代碼

Add some progress indicators to preprocessing

Ian Goldberg 1 年之前
父節點
當前提交
3860ee9051
共有 3 個文件被更改,包括 9 次插入0 次删除
  1. 3 0
      2p-preprocessing/preprocessing.cpp
  2. 3 0
      preprocessing/p2preprocessing.cpp
  3. 3 0
      preprocessing/preprocessing.cpp

+ 3 - 0
2p-preprocessing/preprocessing.cpp

@@ -522,6 +522,9 @@ bool party;
 
  for(size_t iters = 0; iters < n_batches; ++iters)
 {
+   if (n_batches > 1) {
+    printf("Starting evalfull_mpc batch %lu / %lu\n", iters+1, n_batches);
+   }
    uint8_t **target_share_read = new uint8_t *[thread_per_batch];
    generate_random_targets(target_share_read, thread_per_batch, party, expo);
    boost::asio::thread_pool pool(thread_per_batch);

+ 3 - 0
preprocessing/p2preprocessing.cpp

@@ -213,6 +213,9 @@ int main(int argc, char* argv[])
 
   for(size_t iter = 0; iter < n_batches; ++iter)
   { 
+    if (n_batches > 1) {
+      printf("Starting mpc_gen batch %lu / %lu\n", iter+1, n_batches);
+    }
     boost::asio::thread_pool pool(thread_per_batch); 
     for(size_t j = 0; j < thread_per_batch; ++j)
     {

+ 3 - 0
preprocessing/preprocessing.cpp

@@ -131,6 +131,9 @@ int main(int argc, char * argv[])
 
      for(size_t iter = 0; iter < n_batches; ++iter)
      { 
+        if (n_batches > 1) {
+          printf("Starting create_dpfs batch %lu / %lu\n", iter+1, n_batches);
+        }
         boost::asio::thread_pool pool(thread_per_batch);
         for(size_t j = 0; j < thread_per_batch; ++j)
         {