From: schnorr Date: Tue, 7 Dec 2010 09:56:26 +0000 (+0000) Subject: [trace] setting the tracing category for exec and comm done by smpi X-Git-Tag: v3.6_beta2~884 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/771a91f3e70f4eee3ca78b5be3756761121cf03e [trace] setting the tracing category for exec and comm done by smpi git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9039 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index 08d9b3049f..e1c5fef925 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -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 } } diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 4ecf4ebbb4..7ab58fa992 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -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); }