Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A value of -1 for smpi/cpu_threshold means infinity.
[simgrid.git] / src / smpi / smpi_bench.c
index aed281c..7769404 100644 (file)
@@ -130,7 +130,7 @@ void smpi_execute_flops(double flops) {
   smx_action_t action;
   smx_host_t host;
   host = SIMIX_host_self();
   smx_action_t action;
   smx_host_t host;
   host = SIMIX_host_self();
-  XBT_DEBUG("Handle real computation time: %f flops", flops);
+  XBT_DEBUG("Handle real computation time: %g flops", flops);
   action = simcall_host_execute("computation", host, flops, 1);
 #ifdef HAVE_TRACING
   simcall_set_category (action, TRACE_internal_smpi_get_category());
   action = simcall_host_execute("computation", host, flops, 1);
 #ifdef HAVE_TRACING
   simcall_set_category (action, TRACE_internal_smpi_get_category());
@@ -141,7 +141,7 @@ void smpi_execute_flops(double flops) {
 static void smpi_execute(double duration)
 {
   if (duration >= smpi_cpu_threshold) {
 static void smpi_execute(double duration)
 {
   if (duration >= smpi_cpu_threshold) {
-    XBT_DEBUG("Sleep for %f to handle real computation time", duration);
+    XBT_DEBUG("Sleep for %g to handle real computation time", duration);
     double flops = duration * smpi_running_power;
 #ifdef HAVE_TRACING
     int rank = smpi_process_index();
     double flops = duration * smpi_running_power;
 #ifdef HAVE_TRACING
     int rank = smpi_process_index();
@@ -157,7 +157,7 @@ static void smpi_execute(double duration)
 #endif
 
   } else {
 #endif
 
   } else {
-    XBT_DEBUG("Real computation took %f while option smpi/cpu_threshold is set to %f => ignore it",
+    XBT_DEBUG("Real computation took %g while option smpi/cpu_threshold is set to %g => ignore it",
               duration, smpi_cpu_threshold);
   }
 }
               duration, smpi_cpu_threshold);
   }
 }