Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Trace_Comm.c
Go to the documentation of this file.
1 /* ############################ MALP License ############################## */
2 /* # Fri Jan 18 14:00:00 CET 2013 # */
3 /* # Copyright or (C) or Copr. Commissariat a l'Energie Atomique # */
4 /* # # */
5 /* # This software is governed by the CeCILL-C license under French law # */
6 /* # and abiding by the rules of distribution of free software. You can # */
7 /* # use, modify and/ or redistribute the software under the terms of # */
8 /* # the CeCILL-C license as circulated by CEA, CNRS and INRIA at the # */
9 /* # following URL http://www.cecill.info. # */
10 /* # # */
11 /* # The fact that you are presently reading this means that you have # */
12 /* # had knowledge of the CeCILL-C license and that you accept its # */
13 /* # terms. # */
14 /* # # */
15 /* # Authors: # */
16 /* # - BESNARD Jean-Baptiste jean-baptiste.besnard@cea.fr # */
17 /* # # */
18 /* ######################################################################## */
19 
20 #include "Trace_Comm.h"
21 
22 #include <stdio.h>
23 #include <stdlib.h>
24 
25 #include "VMPI.h"
26 
27 MPI_Comm __trace_comm;
28 
29 
31 {
32  if( PMPI_Comm_dup(VMPI_Get_partition_comm(), &__trace_comm) != MPI_SUCCESS )
33  {
34  printf( "Error creating trace communicator\n");
35  abort();
36  }
37 }
38 
40 {
41  PMPI_Comm_free(&__trace_comm);
42 }
static MPI_Comm VMPI_Get_partition_comm()
Returns current partition's communicator.
Definition: VMPI.h:175
MPI_Comm __trace_comm
This is the MPI communicator used for interprocess time synchronization.
Definition: Trace_Comm.c:27
void Trace_Comm_init()
Initializes the trace communicator.
Definition: Trace_Comm.c:30
void Trace_Comm_release()
Releases the trace communicator.
Definition: Trace_Comm.c:39