|
Packit |
0848f5 |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
|
|
Packit |
0848f5 |
/*
|
|
Packit |
0848f5 |
* (C) 2008 by Argonne National Laboratory.
|
|
Packit |
0848f5 |
* See COPYRIGHT in top-level directory.
|
|
Packit |
0848f5 |
*/
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
#ifndef MPIFUNC_H_INCLUDED
|
|
Packit |
0848f5 |
#define MPIFUNC_H_INCLUDED
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
/* state declaration macros */
|
|
Packit |
0848f5 |
#if defined(USE_DBG_LOGGING) || defined(MPICH_DEBUG_MEMARENA)
|
|
Packit |
0848f5 |
#define MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
#define MPID_MPI_STATE_DECL(a) MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
#define MPID_MPI_INIT_STATE_DECL(a) MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
#define MPID_MPI_FINALIZE_STATE_DECL(a) MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
#define MPIDI_STATE_DECL(a) MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
#define MPIDI_INIT_STATE_DECL(a) MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
#define MPIDI_FINALIZE_STATE_DECL(a) MPIR_STATE_DECL(a)
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
/* Tell the package to define the rest of the enter/exit macros in
|
|
Packit |
0848f5 |
terms of these */
|
|
Packit |
0848f5 |
#define NEEDS_FUNC_ENTER_EXIT_DEFS 1
|
|
Packit |
0848f5 |
#endif /* USE_DBG_LOGGING || MPICH_DEBUG_MEMARENA */
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
/* function enter and exit macros */
|
|
Packit |
0848f5 |
#if defined(USE_DBG_LOGGING)
|
|
Packit |
0848f5 |
#define MPIR_FUNC_ENTER(a) MPIU_DBG_MSG(ROUTINE_ENTER,TYPICAL,"Entering "#a)
|
|
Packit |
0848f5 |
#elif defined(MPICH_DEBUG_MEMARENA)
|
|
Packit |
0848f5 |
#define MPIR_FUNC_ENTER(a) MPIU_trvalid("Entering " #a)
|
|
Packit |
0848f5 |
#endif
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
#if defined(USE_DBG_LOGGING)
|
|
Packit |
0848f5 |
#define MPIR_FUNC_EXIT(a) MPIU_DBG_MSG(ROUTINE_EXIT,TYPICAL,"Leaving "#a)
|
|
Packit |
0848f5 |
#elif defined(MPICH_DEBUG_MEMARENA)
|
|
Packit |
0848f5 |
#define MPIR_FUNC_EXIT(a) MPIU_trvalid("Leaving " #a)
|
|
Packit |
0848f5 |
#endif
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
#endif /* MPIFUNC_H_INCLUDED */
|