OpenMPI 0.1.1

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

- File List
- Globals

mtl_mxm_debug.h
1 /*
2 * Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
3 * $COPYRIGHT$
4 *
5 * Additional copyrights may follow
6 *
7 * $HEADER$
8 */
9
10 #ifndef MTL_MXM_DEBUG_H
11 #define MTL_MXM_DEBUG_H
12 #pragma GCC system_header
13
14 #ifdef __BASE_FILE__
15 #define __MXM_FILE__ __BASE_FILE__
16 #else
17 #define __MXM_FILE__ __FILE__
18 #endif
19
20 #define MXM_VERBOSE(level, format, ...) \
21 opal_output_verbose(level, mca_mtl_mxm_output, "%s:%d - %s() " format, \
22 __MXM_FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__)
23
24 #define MXM_ERROR(format, ... ) \
25 opal_output_verbose(0, mca_mtl_mxm_output, "Error: %s:%d - %s() " format, \
26 __MXM_FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__)
27
28
29 #define MXM_MODULE_VERBOSE(mxm_module, level, format, ...) \
30 MXM_VERBOSE(level, "[%d] " format, (mxm_module)->rank, ## __VA_ARGS__)
31
32 extern int mca_mtl_mxm_output;
33
34 #endif