Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] in SMPI, follow the same start/end interface used in MSG
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Sun, 22 Jan 2012 16:41:38 +0000 (17:41 +0100)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Sun, 22 Jan 2012 23:55:24 +0000 (00:55 +0100)
src/instr/instr_smpi.c
src/smpi/smpi_global.c

index 167b6f5..79fa306 100644 (file)
@@ -141,19 +141,10 @@ void TRACE_smpi_alloc()
   process_category = xbt_dict_new_homogeneous(xbt_free);
 }
 
-void TRACE_smpi_start(void)
-{
-  TRACE_start();
-}
-
 void TRACE_smpi_release(void)
 {
   xbt_dict_free(&keys);
   xbt_dict_free(&process_category);
-  if (!TRACE_smpi_is_enabled()) return;
-
-  TRACE_surf_release();
-  TRACE_end();
 }
 
 void TRACE_smpi_init(int rank)
index c43f3f2..22bdf9e 100644 (file)
@@ -258,7 +258,7 @@ int MAIN__(void)
   SIMIX_global_init(&xargc, xargv);
 
 #ifdef HAVE_TRACING
-  TRACE_smpi_start();
+  TRACE_start();
 #endif
 
   // parse the platform file: get the host list
@@ -284,7 +284,7 @@ int MAIN__(void)
   smpi_global_destroy();
 
 #ifdef HAVE_TRACING
-  TRACE_smpi_release();
+  TRACE_end();
 #endif
 
   SIMIX_clean();