1
1
openmpi/oshmem/shmem/shmem_api_logger.h
Mike Dubman 30e1e49a9e OSHMEM: refactoring to reuse common functions from different components.
This is preparation for moving verbs dependent code out from memheap/base component

Refs: #3763

This commit was SVN r30454.
2014-01-28 07:30:36 +00:00

42 строки
958 B
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"
#include "oshmem/util/oshmem_util.h"
OSHMEM_DECLSPEC extern int shmem_api_logger_output;
#ifdef __BASE_FILE__
#define __SPML_FILE__ __BASE_FILE__
#else
#define __SPML_FILE__ __FILE__
#endif
#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*/