root/oshmem/util/oshmem_util.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. oshmem_framework_open_output

   1 /*
   2  *  Copyright (c) 2014      Mellanox Technologies, Inc.
   3  *                          All rights reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 
  11 #ifndef OSHMEM_UTIL_H
  12 #define OSHMEM_UTIL_H
  13 
  14 #include "oshmem_config.h"
  15 
  16 #include "opal/util/output.h"
  17 #include "opal/mca/base/base.h"
  18 #include "opal/mca/base/mca_base_framework.h"
  19 
  20 /*
  21  * Environment variables
  22  */
  23 #define OSHMEM_ENV_SYMMETRIC_SIZE      "SMA_SYMMETRIC_SIZE"
  24 #define OSHMEM_ENV_DEBUG               "SMA_DEBUG"
  25 #define OSHMEM_ENV_INFO                "SMA_INFO"
  26 #define OSHMEM_ENV_VERSION             "SMA_VERSION"
  27 
  28 
  29 void oshmem_output_verbose(int level, int output_id, const char* prefix,
  30     const char* file, int line, const char* function, const char* format, ...);
  31 
  32 /*
  33  * Temporary wrapper which ingores output verbosity level
  34  * to ensure error messages are seeing by user
  35  */
  36 void oshmem_output(int output_id, const char* prefix, const char* file,
  37     int line, const char* function, const char* format, ...);
  38 
  39 
  40 /* Force opening output for framework
  41  * We would like to display error messages in any case (debug/release mode,
  42  * set/unset verbose level)
  43  * Setting verbose level is not a way because it enables non error messages
  44  */
  45 static inline void oshmem_framework_open_output(struct mca_base_framework_t *framework)
  46 {
  47     if (-1 == framework->framework_output) {
  48         framework->framework_output = opal_output_open(NULL);
  49     }
  50 }
  51 
  52 
  53 #endif /* OSHMEM_UTIL_H */

/* [<][>][^][v][top][bottom][index][help] */