Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
trace: new interface function for tracing resource categorized utilization with SMPI
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 15 Sep 2010 15:58:22 +0000 (15:58 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 15 Sep 2010 15:58:22 +0000 (15:58 +0000)
commit5391e6b0fad0842c9c69f13d14a4fb4527268848
tree3355f80d93d3aaf0dfc06d7594b25178d9dc7f3d
parentd43bb524e880bb9c42023f0f563578dfe17e404a
trace: new interface function for tracing resource categorized utilization with SMPI

details:
- still experimental
- include "instr/instr.h" in your code MPI
- put TRACE_smpi_set_category ("name_of_your_cat") somewhere
in the code that all processes execute. example:
Do this:
{
  ...
  TRACE_smpi_set_category (...);
  if (rank == 0){
  }else{
  }
  ...
}
instead of this:
{
  ...
  if (rank == 0){
    TRACE_smpi_set_category (...);
  }else{
  }
  ...
}
- call TRACE_smpi_set_category (NULL) to de-activate
the tracing of the platform utilization according to
a category
- all this only works if the smpi simulation is launched with
the option --cfg=tracing/platform:1 (next commits will have
an additional option in smpirun to handle that)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8187 48e7efb5-ca39-0410-a469-dd3cf9ba447f
include/instr/instr.h
src/instr/interface.c