Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make SIMIX_req_host_execution_wait to also destroy the execution action when done.
[simgrid.git] / src / smpi / smpi_bench.c
index 084123b..ed6e7c0 100644 (file)
@@ -48,12 +48,11 @@ static void smpi_execute_flops(double flops)
   host = SIMIX_host_self();
 
   DEBUG1("Handle real computation time: %f flops", flops);
   host = SIMIX_host_self();
 
   DEBUG1("Handle real computation time: %f flops", flops);
-  action = SIMIX_req_host_execute("computation", host, flops);
+  action = SIMIX_req_host_execute("computation", host, flops, 1);
 #ifdef HAVE_TRACING
   SIMIX_req_set_category (action, TRACE_internal_smpi_get_category());
 #endif
   SIMIX_req_host_execution_wait(action);
 #ifdef HAVE_TRACING
   SIMIX_req_set_category (action, TRACE_internal_smpi_get_category());
 #endif
   SIMIX_req_host_execution_wait(action);
-  SIMIX_req_host_execution_destroy(action);
 }
 
 static void smpi_execute(double duration)
 }
 
 static void smpi_execute(double duration)