1
1
openmpi/oshmem/shmem/shmem_api_logger.h
Mike Dubman 84a6330b27 OSHMEM: SHMEM_API_ macro fix
The verbose level was initialized too early
group shmem mca params together

fixed by Roman, reviewed by Igor/Mike

cmr=v1.7.5:reviewer=ompi-rm1.7

This commit was SVN r31107.
2014-03-18 15:07:04 +00:00

42 строки
947 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(shmem_api_logger_output, \
"Error: %s:%d - %s()", __SPML_FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)
#endif /*SHMEM_API_LOGGER_H*/