static void dvfs()
{
XBT_INFO(
"Initial peak speed=%.0E flop/s; Energy dissipated =%.0E J", host1->
getSpeed(),
XBT_INFO(
"Done sleeping (duration: %.2f s). Current peak speed=%.0E; Energy dissipated=%.2f J",
double flopAmount = 100E6;
XBT_INFO(
"Run a task of %.0E flops", flopAmount);
XBT_INFO(
"Task done (duration: %.2f s). Current peak speed=%.0E flop/s; Current consumption: from %.0fW to %.0fW" " depending on load; Energy dissipated=%.0f J",
int pstate = 2;
XBT_INFO(
"========= Requesting pstate %d (speed should be of %.0E flop/s and is of %.0E flop/s)", pstate,
XBT_INFO(
"Run a task of %.0E flops", flopAmount);
XBT_INFO(
"Task done (duration: %.2f s). Current peak speed=%.0E flop/s; Energy dissipated=%.0f J",
XBT_INFO(
"Done sleeping (duration: %.2f s). Current peak speed=%.0E flop/s; Energy dissipated=%.0f J",
XBT_INFO(
"Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 dissipated %.0f J so far.",
XBT_INFO(
"Done sleeping (duration: %.2f s). Current peak speed=%.0E flop/s; Energy dissipated=%.0f J",
}
{
xbt_assert(argc == 2,
"Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
e.loadPlatform(argv[1]);
e.run();
return 0;
}