OpenMPI 0.1.1

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

- File List
- Globals

coll_fca_debug.h
1 /**
2 Copyright (c) 2011 Mellanox Technologies. All rights reserved.
3 $COPYRIGHT$
4
5 Additional copyrights may follow
6
7 $HEADER$
8 */
9
10 #ifndef MCA_COLL_FCA_DEBUG_H
11 #define MCA_COLL_FCA_DEBUG_H
12 #pragma GCC system_header
13
14 #ifdef __BASE_FILE__
15 #define __FCA_FILE__ __BASE_FILE__
16 #else
17 #define __FCA_FILE__ __FILE__
18 #endif
19
20 #define FCA_VERBOSE(level, format, ...) \
21 opal_output_verbose(level, mca_coll_fca_output, "%s:%d - %s() " format, \
22 __FCA_FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__)
23
24 #define FCA_ERROR(format, ... ) \
25 opal_output_verbose(0, mca_coll_fca_output, "Error: %s:%d - %s() " format, \
26 __FCA_FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__)
27
28
29 #define FCA_MODULE_VERBOSE(fca_module, level, format, ...) \
30 FCA_VERBOSE(level, "[%p:%d] " format, (void*)(fca_module)->comm, (fca_module)->rank, ## __VA_ARGS__)
31
32 extern int mca_coll_fca_output;
33
34 #endif