Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] setting the tracing category for exec and comm done by smpi
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 09:56:26 +0000 (09:56 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 09:56:26 +0000 (09:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9039 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smpi/smpi_base.c
src/smpi/smpi_bench.c

index 08d9b30..e1c5fef 100644 (file)
@@ -80,6 +80,9 @@ void smpi_mpi_start(MPI_Request request)
     request->pair =
         SIMIX_req_comm_isend(request->rdv, request->size, -1.0,
                             request->buf, request->size, NULL);
+#ifdef HAVE_TRACING
+    SIMIX_req_set_category (request->pair, TRACE_internal_smpi_get_category());
+#endif
   }
 }
 
index 4ecf4eb..7ab58fa 100644 (file)
@@ -45,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);
 }