2010-08-02 15:25:53 +04:00
|
|
|
/**
|
2011-05-16 18:43:11 +04:00
|
|
|
Copyright (c) 2011 Mellanox Technologies. All rights reserved.
|
2010-08-02 15:25:53 +04:00
|
|
|
$COPYRIGHT$
|
|
|
|
|
|
|
|
Additional copyrights may follow
|
|
|
|
|
|
|
|
$HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_COLL_FCA_DEBUG_H
|
|
|
|
#define MCA_COLL_FCA_DEBUG_H
|
2010-11-11 15:14:31 +03:00
|
|
|
#pragma GCC system_header
|
2010-08-02 15:25:53 +04:00
|
|
|
|
2011-02-10 09:42:37 +03:00
|
|
|
#ifdef __BASE_FILE__
|
|
|
|
#define __FCA_FILE__ __BASE_FILE__
|
|
|
|
#else
|
|
|
|
#define __FCA_FILE__ __FILE__
|
|
|
|
#endif
|
2010-08-02 15:25:53 +04:00
|
|
|
|
|
|
|
#define FCA_VERBOSE(level, format, ...) \
|
|
|
|
opal_output_verbose(level, mca_coll_fca_output, "%s:%d - %s() " format, \
|
2011-02-10 09:42:37 +03:00
|
|
|
__FCA_FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__)
|
2010-08-02 15:25:53 +04:00
|
|
|
|
|
|
|
#define FCA_ERROR(format, ... ) \
|
|
|
|
opal_output_verbose(0, mca_coll_fca_output, "Error: %s:%d - %s() " format, \
|
2011-02-10 09:42:37 +03:00
|
|
|
__FCA_FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__)
|
2010-08-02 15:25:53 +04:00
|
|
|
|
|
|
|
|
|
|
|
#define FCA_MODULE_VERBOSE(fca_module, level, format, ...) \
|
2010-11-11 15:14:31 +03:00
|
|
|
FCA_VERBOSE(level, "[%p:%d] " format, (void*)(fca_module)->comm, (fca_module)->rank, ## __VA_ARGS__)
|
2010-08-02 15:25:53 +04:00
|
|
|
|
|
|
|
extern int mca_coll_fca_output;
|
|
|
|
|
|
|
|
#endif
|