Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the fork based checkpoint functionality.
[simgrid.git] / src / smpi / smpi_bench.c
index f10012e..7ab58fa 100644 (file)
@@ -7,6 +7,7 @@
 #include "private.h"
 #include "xbt/dict.h"
 #include "xbt/sysdep.h"
+#include "surf/surf.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_bench, smpi,
                                 "Logging specific to SMPI (benchmarking)");
@@ -44,6 +45,9 @@ static void smpi_execute_flops(double flops)
 
   DEBUG1("Handle real computation time: %f flops", flops);
   action = SIMIX_req_host_execute("computation", host, flops);
+#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);
 }