b95a9d865a
Refs trac:3763 This commit was SVN r29921. The following Trac tickets were found above: Ticket 3763 --> https://svn.open-mpi.org/trac/ompi/ticket/3763
39 строки
1.0 KiB
C
39 строки
1.0 KiB
C
/*
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
/**
|
|
* @file
|
|
*/
|
|
#ifndef SHMEM_API_LOGGER_H
|
|
#define SHMEM_API_LOGGER_H
|
|
#include "oshmem_config.h"
|
|
#include "opal/util/output.h"
|
|
OSHMEM_DECLSPEC extern int shmem_api_logger_output;
|
|
#ifdef __BASE_FILE__
|
|
#define __SPML_FILE__ __BASE_FILE__
|
|
#else
|
|
#define __SPML_FILE__ __FILE__
|
|
#endif
|
|
|
|
void oshmem_output_verbose(int level, int output_id, const char* prefix, const char* file, int line, const char* function, const char* format, ...);
|
|
|
|
#ifdef OPAL_ENABLE_DEBUG
|
|
#define SHMEM_API_VERBOSE(level, ...) \
|
|
oshmem_output_verbose(level, shmem_api_logger_output, \
|
|
"%s:%d - %s()", __SPML_FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)
|
|
#else
|
|
#define SHMEM_API_VERBOSE(level, ...)
|
|
#endif
|
|
|
|
#define SHMEM_API_ERROR(...) \
|
|
oshmem_output_verbose(0, shmem_api_logger_output, \
|
|
"Error: %s:%d - %s()", __SPML_FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)
|
|
|
|
#endif /*SHMEM_API_LOGGER_H*/
|