res = test_all(argv[1], argv[2]);
- XBT_INFO("Total simulation time: %le", MSG_get_clock());
+ XBT_INFO("Total simulation time: %e", MSG_get_clock());
#ifdef _MSC_VER
_set_output_format(prev_exponent_format);
XBT_INFO("Number of Processor states=%d", nb);
double current_peak = MSG_get_host_current_power_peak(host);
- XBT_INFO("Current power peak=%lf", current_peak);
+ XBT_INFO("Current power peak=%f", current_peak);
// Run a task
task1 = MSG_task_create ("t1", workload, 0, NULL);
MSG_task_destroy(task1);
task_time = MSG_get_clock();
- XBT_INFO("Task1 simulation time: %le", task_time);
+ XBT_INFO("Task1 simulation time: %e", task_time);
// Change power peak
if ((new_peak_index >= nb) || (new_peak_index < 0))
}
double peak_at = MSG_get_host_power_peak_at(host, new_peak_index);
- XBT_INFO("Changing power peak value to %lf (at index %d)", peak_at, new_peak_index);
+ XBT_INFO("Changing power peak value to %f (at index %d)", peak_at, new_peak_index);
MSG_set_host_power_peak_at(host, new_peak_index);
current_peak = MSG_get_host_current_power_peak(host);
- XBT_INFO("Current power peak=%lf", current_peak);
+ XBT_INFO("Current power peak=%f", current_peak);
// Run a second task
task1 = MSG_task_create ("t1", workload, 0, NULL);
MSG_task_destroy(task1);
task_time = MSG_get_clock() - task_time;
- XBT_INFO("Task2 simulation time: %le", task_time);
+ XBT_INFO("Task2 simulation time: %e", task_time);
// Verify the default pstate is set to 0
XBT_INFO("Number of Processor states=%d", nb2);
double current_peak2 = MSG_get_host_current_power_peak(host);
- XBT_INFO("Current power peak=%lf", current_peak2);
+ XBT_INFO("Current power peak=%f", current_peak2);
return 0;
}
res = MSG_main();
- XBT_INFO("Total simulation time: %le", MSG_get_clock());
+ XBT_INFO("Total simulation time: %e", MSG_get_clock());
if (res == MSG_OK)
return 0;
+
/* Copyright (c) 2007-2010, 2013. The SimGrid Team.
* All rights reserved. */
double current_peak = MSG_get_host_current_power_peak(host);
- XBT_INFO("Current power peak=%lf", current_peak);
+ XBT_INFO("Current power peak=%f", current_peak);
double consumed_energy = MSG_get_host_consumed_energy(host);
- XBT_INFO("Total energy (Joules): %lf", consumed_energy);
+ XBT_INFO("Total energy (Joules): %f", consumed_energy);
// Run a task
task1 = MSG_task_create ("t1", 100E6, 0, NULL);
MSG_task_destroy(task1);
task_time = MSG_get_clock();
- XBT_INFO("Task1 simulation time: %le", task_time);
+ XBT_INFO("Task1 simulation time: %e", task_time);
consumed_energy = MSG_get_host_consumed_energy(host);
- XBT_INFO("Total energy (Joules): %lf", consumed_energy);
+ XBT_INFO("Total energy (Joules): %f", consumed_energy);
// ========= Change power peak =========
int peak_index=2;
double peak_at = MSG_get_host_power_peak_at(host, peak_index);
- XBT_INFO("=========Changing power peak value to %lf (at index %d)", peak_at, peak_index);
+ XBT_INFO("=========Changing power peak value to %f (at index %d)", peak_at, peak_index);
MSG_set_host_power_peak_at(host, peak_index);
MSG_task_destroy(task1);
task_time = MSG_get_clock() - task_time;
- XBT_INFO("Task2 simulation time: %le", task_time);
+ XBT_INFO("Task2 simulation time: %e", task_time);
consumed_energy = MSG_get_host_consumed_energy(host);
- XBT_INFO("Total energy (Joules): %lf", consumed_energy);
+ XBT_INFO("Total energy (Joules): %f", consumed_energy);
MSG_process_sleep(3);
task_time = MSG_get_clock() - task_time;
- XBT_INFO("Task3 (sleep) simulation time: %le", task_time);
+ XBT_INFO("Task3 (sleep) simulation time: %e", task_time);
consumed_energy = MSG_get_host_consumed_energy(host);
- XBT_INFO("Total energy (Joules): %lf", consumed_energy);
+ XBT_INFO("Total energy (Joules): %f", consumed_energy);
return 0;
res = MSG_main();
- XBT_INFO("Total simulation time: %le", MSG_get_clock());
+ XBT_INFO("Total simulation time: %e", MSG_get_clock());
if (res == MSG_OK)
return 0;
MSG_process_sleep(sleep_task);
task_time = MSG_get_clock() - task_time;
- XBT_INFO("Process %s executed task sleep cpu=%lf, duration = %lf",
+ XBT_INFO("Process %s executed task sleep cpu=%f, duration = %f",
MSG_process_get_name(MSG_process_self()), 0.0, task_time);
XBT_INFO("==================================================");
}
MSG_task_destroy(task1);
task_time = MSG_get_clock() - task_time;
- XBT_INFO("Process %s executed task cpu=%lf, duration = %lf",
+ XBT_INFO("Process %s executed task cpu=%f, duration = %f",
MSG_process_get_name(MSG_process_self()), cpu_task, task_time);
XBT_INFO("==================================================");
return 0;
double current_peak = MSG_get_host_current_power_peak(host);
- XBT_INFO("Current power peak=%lf", current_peak);
+ XBT_INFO("Current power peak=%f", current_peak);
double consumed_energy = MSG_get_host_consumed_energy(host);
- XBT_INFO("Total energy (Joules): %lf", consumed_energy);
+ XBT_INFO("Total energy (Joules): %f", consumed_energy);
// Process 1 - long CPU task
int argc1 = 1;
MSG_process_sleep(8);
task_time = MSG_get_clock() - task_time;
- XBT_INFO("Task simulation time: %le", task_time);
+ XBT_INFO("Task simulation time: %e", task_time);
consumed_energy = MSG_get_host_consumed_energy(host);
- XBT_INFO("Total energy (Joules): %lf", consumed_energy);
+ XBT_INFO("Total energy (Joules): %f", consumed_energy);
return 0;
}
res = MSG_main();
- XBT_INFO("Total simulation time: %le", MSG_get_clock());
+ XBT_INFO("Total simulation time: %e", MSG_get_clock());
if (res == MSG_OK)
return 0;
MSG_task_create(sprintf_buffer_la, 0.0, task_comm_size_lat, NULL);
task_la->data = xbt_new(double, 1);
*(double *) task_la->data = time;
- XBT_INFO("task_la->data = %le", *((double *) task_la->data));
+ XBT_INFO("task_la->data = %e", *((double *) task_la->data));
MSG_task_send(task_la, argv[1]);
/* Bandwidth */
MSG_task_create(sprintf_buffer_bw, 0.0, task_comm_size_bw, NULL);
task_bw->data = xbt_new(double, 1);
*(double *) task_bw->data = time;
- XBT_INFO("task_bw->data = %le", *((double *) task_bw->data));
+ XBT_INFO("task_bw->data = %e", *((double *) task_bw->data));
MSG_task_send(task_bw, argv[1]);
return 0;
XBT_INFO("Task received : %s", task_la->name);
xbt_free(task_la->data);
MSG_task_destroy(task_la);
- XBT_INFO("Communic. time %le", communication_time);
+ XBT_INFO("Communic. time %e", communication_time);
XBT_INFO("--- la %f ----", communication_time);
} else {
xbt_die("Unexpected behavior");
XBT_INFO("Task received : %s", task_bw->name);
xbt_free(task_bw->data);
MSG_task_destroy(task_bw);
- XBT_INFO("Communic. time %le", communication_time);
+ XBT_INFO("Communic. time %e", communication_time);
XBT_INFO("--- bw %f ----", task_comm_size_bw / communication_time);
} else {
xbt_die("Unexpected behavior");
res = test_all(argv[1], argv[2]);
- XBT_INFO("Total simulation time: %le", MSG_get_clock());
+ XBT_INFO("Total simulation time: %e", MSG_get_clock());
#ifdef _MSC_VER
_set_output_format(prev_exponent_format);
((createContainer_t)event->data)->container->father->id,
((createContainer_t)event->data)->container->name);
}else{
- fprintf(tracing_file, "%d %lf %s %s %s \"%s\"\n",
+ fprintf(tracing_file, "%d %f %s %s %s \"%s\"\n",
(int)event->event_type,
event->timestamp,
((createContainer_t)event->data)->container->id,
((destroyContainer_t)event->data)->container->type->id,
((destroyContainer_t)event->data)->container->id);
}else{
- fprintf(tracing_file, "%d %lf %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s\n",
(int)event->event_type,
event->timestamp,
((destroyContainer_t)event->data)->container->type->id,
((setVariable_t)event->data)->container->id,
((setVariable_t)event->data)->value);
}else{
- fprintf(tracing_file, "%d %lf %s %s %f\n",
+ fprintf(tracing_file, "%d %f %s %s %f\n",
(int)event->event_type,
event->timestamp,
((setVariable_t)event->data)->type->id,
((addVariable_t)event->data)->container->id,
((addVariable_t)event->data)->value);
}else{
- fprintf(tracing_file, "%d %lf %s %s %f\n",
+ fprintf(tracing_file, "%d %f %s %s %f\n",
(int)event->event_type,
event->timestamp,
((addVariable_t)event->data)->type->id,
((subVariable_t)event->data)->container->id,
((subVariable_t)event->data)->value);
}else{
- fprintf(tracing_file, "%d %lf %s %s %f\n",
+ fprintf(tracing_file, "%d %f %s %s %f\n",
(int)event->event_type,
event->timestamp,
((subVariable_t)event->data)->type->id,
((setState_t)event->data)->container->id,
((setState_t)event->data)->value->id);
}else{
- fprintf(tracing_file, "%d %lf %s %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s %s\n",
(int)event->event_type,
event->timestamp,
((setState_t)event->data)->type->id,
((pushState_t)event->data)->container->id,
((pushState_t)event->data)->value->id);
}else{
- fprintf(tracing_file, "%d %lf %s %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s %s\n",
(int)event->event_type,
event->timestamp,
((pushState_t)event->data)->type->id,
((pushState_t)event->data)->value->id,
((pushState_t)event->data)->size);
}else{
- fprintf(tracing_file, "%d %lf %s %s %s %d\n",
+ fprintf(tracing_file, "%d %f %s %s %s %d\n",
(int)event->event_type,
event->timestamp,
((pushState_t)event->data)->type->id,
((popState_t)event->data)->type->id,
((popState_t)event->data)->container->id);
}else{
- fprintf(tracing_file, "%d %lf %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s\n",
(int)event->event_type,
event->timestamp,
((popState_t)event->data)->type->id,
((resetState_t)event->data)->type->id,
((resetState_t)event->data)->container->id);
}else{
- fprintf(tracing_file, "%d %lf %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s\n",
(int)event->event_type,
event->timestamp,
((resetState_t)event->data)->type->id,
((startLink_t)event->data)->sourceContainer->id,
((startLink_t)event->data)->key);
}else {
- fprintf(tracing_file, "%d %lf %s %s %s %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s %s %s %s\n",
(int)event->event_type,
event->timestamp,
((startLink_t)event->data)->type->id,
((startLink_t)event->data)->key,
((startLink_t)event->data)->size);
}else {
- fprintf(tracing_file, "%d %lf %s %s %s %s %s %d\n",
+ fprintf(tracing_file, "%d %f %s %s %s %s %s %d\n",
(int)event->event_type,
event->timestamp,
((startLink_t)event->data)->type->id,
((endLink_t)event->data)->destContainer->id,
((endLink_t)event->data)->key);
}else {
- fprintf(tracing_file, "%d %lf %s %s %s %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s %s %s %s\n",
(int)event->event_type,
event->timestamp,
((endLink_t)event->data)->type->id,
((newEvent_t)event->data)->container->id,
((newEvent_t)event->data)->value->id);
}else{
- fprintf(tracing_file, "%d %lf %s %s %s\n",
+ fprintf(tracing_file, "%d %f %s %s %s\n",
(int)event->event_type,
event->timestamp,
((newEvent_t)event->data)->type->id,