OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

vt_unify_mpi.h
1 /**
2 * VampirTrace
3 * http://www.tu-dresden.de/zih/vampirtrace
4 *
5 * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6 *
7 * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8 * Centre, Federal Republic of Germany
9 *
10 * See the file COPYING in the package base directory for details
11 **/
12
13 #ifndef _VT_UNIFY_MPI_H_
14 #define _VT_UNIFY_MPI_H_
15
16 #include "config.h"
17
18 #include "vt_defs.h" /* to get VT_MPI_INT */
19
20 /* use MPI's profile interface for the library version of the unifier */
21 #ifdef VT_LIB
22 # define CALL_MPI( call ) P##call
23 #else /* VT_LIB */
24 # define CALL_MPI( call ) call
25 #endif /* VT_LIB */
26
27 #include "mpi.h"
28
29 #if defined(HAVE_MPI_GET_ADDRESS) && HAVE_MPI_GET_ADDRESS
30 # define MPI_Address MPI_Get_address
31 # define PMPI_Address PMPI_Get_address
32 #endif /* HAVE_MPI_GET_ADDRESS */
33
34 #if defined(HAVE_MPI_TYPE_CREATE_STRUCT) && HAVE_MPI_TYPE_CREATE_STRUCT
35 # define MPI_Type_struct MPI_Type_create_struct
36 # define PMPI_Type_struct PMPI_Type_create_struct
37 #endif /* HAVE_MPI_TYPE_CREATE_STRUCT */
38
39 #endif /* _VT_UNIFY_MPI_H_ */