mpifunc.h 1.3 KB
Newer Older
1
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2
/*
Pavan Balaji's avatar
Pavan Balaji committed
3
 *  (C) 2008 by Argonne National Laboratory.
4
5
6
 *      See COPYRIGHT in top-level directory.
 */

7
8
#ifndef MPIFUNC_H_INCLUDED
#define MPIFUNC_H_INCLUDED
9
10

/* state declaration macros */
11
#if defined(USE_DBG_LOGGING) || defined(MPICH_DEBUG_MEMARENA)
12
#define MPIR_STATE_DECL(a)
13
14
15
16
17
18
19
#define MPID_MPI_STATE_DECL(a)		MPIR_STATE_DECL(a)
#define MPID_MPI_INIT_STATE_DECL(a)	MPIR_STATE_DECL(a)
#define MPID_MPI_FINALIZE_STATE_DECL(a)	MPIR_STATE_DECL(a)
#define MPIDI_STATE_DECL(a)		MPIR_STATE_DECL(a)
#define MPIDI_INIT_STATE_DECL(a)	MPIR_STATE_DECL(a)
#define MPIDI_FINALIZE_STATE_DECL(a)	MPIR_STATE_DECL(a)

20
21
22
23
24
/* Tell the package to define the rest of the enter/exit macros in
   terms of these */
#define NEEDS_FUNC_ENTER_EXIT_DEFS 1
#endif /* USE_DBG_LOGGING || MPICH_DEBUG_MEMARENA */

25
/* function enter and exit macros */
26
27
28
29
30
#if defined(USE_DBG_LOGGING)
#define MPIR_FUNC_ENTER(a) MPIU_DBG_MSG(ROUTINE_ENTER,TYPICAL,"Entering "#a)
#elif defined(MPICH_DEBUG_MEMARENA)
#define MPIR_FUNC_ENTER(a) MPIU_trvalid("Entering " #a)
#endif
31

32
33
34
35
36
#if defined(USE_DBG_LOGGING)
#define MPIR_FUNC_EXIT(a) MPIU_DBG_MSG(ROUTINE_EXIT,TYPICAL,"Leaving "#a)
#elif defined(MPICH_DEBUG_MEMARENA)
#define MPIR_FUNC_EXIT(a) MPIU_DBG_MSG(ROUTINE_EXIT,TYPICAL,"Leaving "#a)
#endif
37

38
#endif /* MPIFUNC_H_INCLUDED */