MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / print_left

Method print_left

Processor/PrepBase.cpp:55–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void PrepBase::print_left(const char* name, size_t n, const string& type_string,
56 size_t used, bool large)
57{
58 if (n > 0 and OnlineOptions::singleton.verbose)
59 cerr << "\t" << n << " " << name << " of " << type_string << " left"
60 << endl;
61
62 if (n > used / 10 and n >= 64)
63 {
64 cerr << "Significant amount of unused " << name << " of " << type_string
65 << " distorting the benchmark. ";
66 if (large)
67 cerr << "This protocol has a large minimum batch size, "
68 << "which makes this unavoidable for small programs.";
69 else
70 cerr << "For more accurate benchmarks, "
71 << "consider reducing the batch size with --batch-size.";
72 cerr << endl;
73 }
74}
75
76void PrepBase::print_left_edabits(size_t n, size_t n_batch, bool strict,
77 int n_bits, size_t used, bool malicious)

Callers 2

~SemiPrepMethod · 0.80
~BufferPrepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected