git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8201
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
double timecounter, maxtime;
double timecounter, maxtime;
- TRACE_smpi_set_category ("start");
-
global_data* gd = malloc(sizeof(global_data));
/* Initialize MPI */
MPI_Init( &argc, &argv );
global_data* gd = malloc(sizeof(global_data));
/* Initialize MPI */
MPI_Init( &argc, &argv );
timer_start(gd, 2 );
#endif
timer_start(gd, 2 );
#endif
+ char smpi_category[100];
+ snprintf (smpi_category, 100, "%d", gd->my_rank);
+ TRACE_smpi_set_category (smpi_category);
+
/* This is the main iteration */
for( iteration=1; iteration<=MAX_ITERATIONS; iteration++ )
{
/* This is the main iteration */
for( iteration=1; iteration<=MAX_ITERATIONS; iteration++ )
{
- char it_str[100];
- snprintf (it_str, 100, "i%d", iteration);
- TRACE_smpi_set_category (it_str);
-
if( gd->my_rank == 0 && CLASS != 'S' ) printf( " %d\n", iteration );
rank(gd, iteration );
}
if( gd->my_rank == 0 && CLASS != 'S' ) printf( " %d\n", iteration );
rank(gd, iteration );
}
-
- TRACE_smpi_set_category ("finalize");
-
+ TRACE_smpi_set_category (NULL);
#ifdef TIMING_ENABLED
timer_stop(gd, 2 );
#ifdef TIMING_ENABLED
timer_stop(gd, 2 );