- if(!bool_printed){
- bool_printed=1;
- for(id=0; id<NTASKS; id++){
- if(gl_task_array[id] == NULL){
- }else if(gl_task_array[id] == task){
- INFO5("===> Estimated Bw of FLOW[%d] : %f ; message from %s to %s with remaining : %f", id, gl_data_size[id]/elapsed_time, masternames[id], slavenames[id], 0.0);
- }else{
- remaining = MSG_task_get_remaining_communication(gl_task_array[id]);
- INFO5("===> Estimated Bw of FLOW[%d] : %f ; message from %s to %s with remaining : %f", id, (gl_data_size[id]-remaining)/elapsed_time, masternames[id], slavenames[id], remaining);
+ elapsed_time = MSG_get_clock() - start_time;
+
+
+ if (!bool_printed) {
+ bool_printed = 1;
+
+ for (id = 0; id < NTASKS; id++) {
+ if (gl_task_array[id] == NULL) {
+ } else if (gl_task_array[id] == task) {
+#ifdef HAVE_LATENCY_BOUND_TRACKING
+ limited_latency = MSG_task_is_latency_bounded(gl_task_array[id]);
+ if (limited_latency) {
+ XBT_INFO("WARNING FLOW[%d] is limited by latency!!", id);
+ }
+#endif
+ XBT_INFO
+ ("===> Estimated Bw of FLOW[%d] : %f ; message from %s to %s with remaining : %f",
+ id, gl_data_size[id] / elapsed_time, masternames[id],
+ slavenames[id], 0.0);
+ } else {
+ remaining =
+ MSG_task_get_remaining_communication(gl_task_array[id]);
+#ifdef HAVE_LATENCY_BOUND_TRACKING
+ limited_latency = MSG_task_is_latency_bounded(gl_task_array[id]);
+
+ if (limited_latency) {
+ XBT_INFO("WARNING FLOW[%d] is limited by latency!!", id);
+ }
+#endif
+ XBT_INFO
+ ("===> Estimated Bw of FLOW[%d] : %f ; message from %s to %s with remaining : %f",
+ id, (gl_data_size[id] - remaining) / elapsed_time,
+ masternames[id], slavenames[id], remaining);