static void pinger(std::vector<std::string> args)
{
xbt_assert(args.size() == 1,
"The pinger function one argument from the XML deployment file");
XBT_INFO(
"Ping -> %s", args[0].c_str());
args[0].c_str());
double* sender_time =
XBT_INFO(
"Task received : large communication (bandwidth bound)");
XBT_INFO(
"Pong time (bandwidth bound): %.3f", communication_time);
delete sender_time;
}
static void ponger(std::vector<std::string> args)
{
xbt_assert(args.size() == 1,
"The ponger function one argument from the XML deployment file");
XBT_INFO(
"Pong -> %s", args[0].c_str());
args[0].c_str());
double* sender_time =
XBT_INFO(
"Task received : small communication (latency bound)");
XBT_INFO(
" Ping time (latency bound) %f", communication_time);
delete sender_time;
double* payload = new double();
XBT_INFO(
"task_bw->data = %.3f", *payload);
}
{
e.loadPlatform(argv[1]);
std::vector<std::string> args;
args.push_back("Jupiter");
args.pop_back();
args.push_back("Tremblay");
e.run();
XBT_INFO(
"Total simulation time: %.3f", e.getClock());
return 0;
}