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

Method print_comm

Processor/BaseMachine.cpp:397–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void BaseMachine::print_comm(Player& P, const NamedCommStats& comm_stats)
398{
399 size_t rounds = 0;
400 for (auto& x : comm_stats)
401 if (x.first.find("transmission") == string::npos)
402 rounds += x.second.rounds;
403 cerr << "Data sent = " << comm_stats.sent / 1e6 << " MB in ~" << rounds
404 << " rounds (party " << P.my_num() << " only";
405 if (multithread)
406 cerr << "; rounds counted double due to multi-threading";
407 if (not OnlineOptions::singleton.verbose)
408 cerr << "; use '-v' for more details";
409 cerr << ")" << endl;
410
411 print_global_comm(P, comm_stats);
412}
413
414void BaseMachine::add_one_off(const NamedCommStats& comm)
415{

Callers 3

~RealProgramPartyMethod · 0.80
run_with_errorMethod · 0.80
runMethod · 0.80

Calls 1

my_numMethod · 0.45

Tested by

no test coverage detected