root/ompi/include/ompi/constants.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2011 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2016      Intel, Inc. All rights reserved.
  13  * $COPYRIGHT$
  14  *
  15  * Additional copyrights may follow
  16  *
  17  * $HEADER$
  18  */
  19 
  20 #ifndef OMPI_CONSTANTS_H
  21 #define OMPI_CONSTANTS_H
  22 
  23 #if defined(OMPI_RTE_ORTE) && OMPI_RTE_ORTE
  24 #include "orte/constants.h"
  25 #define OMPI_ERR_BASE   ORTE_ERR_MAX
  26 #else
  27 #include "opal/constants.h"
  28 #define OMPI_ERR_BASE   OPAL_ERR_MAX
  29 #endif
  30 
  31 /* error codes */
  32 enum {
  33     /* Error codes inherited from ORTE/OPAL.  Still enum values so
  34        that we might get nice debugger help */
  35     OMPI_SUCCESS                    = OPAL_SUCCESS,
  36     OMPI_ERROR                      = OPAL_ERROR,
  37     OMPI_ERR_OUT_OF_RESOURCE        = OPAL_ERR_OUT_OF_RESOURCE,
  38     OMPI_ERR_TEMP_OUT_OF_RESOURCE   = OPAL_ERR_TEMP_OUT_OF_RESOURCE,
  39     OMPI_ERR_RESOURCE_BUSY          = OPAL_ERR_RESOURCE_BUSY,
  40     OMPI_ERR_BAD_PARAM              = OPAL_ERR_BAD_PARAM,
  41     OMPI_ERR_FATAL                  = OPAL_ERR_FATAL,
  42     OMPI_ERR_NOT_IMPLEMENTED        = OPAL_ERR_NOT_IMPLEMENTED,
  43     OMPI_ERR_NOT_SUPPORTED          = OPAL_ERR_NOT_SUPPORTED,
  44     OMPI_ERR_INTERUPTED             = OPAL_ERR_INTERRUPTED,
  45     OMPI_ERR_WOULD_BLOCK            = OPAL_ERR_WOULD_BLOCK,
  46     OMPI_ERR_IN_ERRNO               = OPAL_ERR_IN_ERRNO,
  47     OMPI_ERR_UNREACH                = OPAL_ERR_UNREACH,
  48     OMPI_ERR_NOT_FOUND              = OPAL_ERR_NOT_FOUND,
  49     OMPI_EXISTS                     = OPAL_EXISTS, /* indicates that the specified object already exists */
  50     OMPI_ERR_TIMEOUT                = OPAL_ERR_TIMEOUT,
  51     OMPI_ERR_NOT_AVAILABLE          = OPAL_ERR_NOT_AVAILABLE,
  52     OMPI_ERR_PERM                   = OPAL_ERR_PERM,
  53     OMPI_ERR_VALUE_OUT_OF_BOUNDS    = OPAL_ERR_VALUE_OUT_OF_BOUNDS,
  54     OMPI_ERR_FILE_READ_FAILURE      = OPAL_ERR_FILE_READ_FAILURE,
  55     OMPI_ERR_FILE_WRITE_FAILURE     = OPAL_ERR_FILE_WRITE_FAILURE,
  56     OMPI_ERR_FILE_OPEN_FAILURE      = OPAL_ERR_FILE_OPEN_FAILURE,
  57     OMPI_ERR_PACK_MISMATCH          = OPAL_ERR_PACK_MISMATCH,
  58     OMPI_ERR_PACK_FAILURE           = OPAL_ERR_PACK_FAILURE,
  59     OMPI_ERR_UNPACK_FAILURE         = OPAL_ERR_UNPACK_FAILURE,
  60     OMPI_ERR_TYPE_MISMATCH          = OPAL_ERR_TYPE_MISMATCH,
  61     OMPI_ERR_UNKNOWN_DATA_TYPE      = OPAL_ERR_UNKNOWN_DATA_TYPE,
  62     OMPI_ERR_DATA_TYPE_REDEF        = OPAL_ERR_DATA_TYPE_REDEF,
  63     OMPI_ERR_DATA_OVERWRITE_ATTEMPT = OPAL_ERR_DATA_OVERWRITE_ATTEMPT,
  64 
  65     OMPI_ERR_BUFFER                 = OPAL_ERR_BUFFER,
  66     OMPI_ERR_SILENT                 = OPAL_ERR_SILENT,
  67     OMPI_ERR_HANDLERS_COMPLETE      = OPAL_ERR_HANDLERS_COMPLETE,
  68 
  69     OMPI_ERR_REQUEST                = OMPI_ERR_BASE - 1,
  70     OMPI_ERR_RMA_SYNC               = OMPI_ERR_BASE - 2,
  71     OMPI_ERR_RMA_SHARED             = OMPI_ERR_BASE - 3,
  72     OMPI_ERR_RMA_ATTACH             = OMPI_ERR_BASE - 4,
  73     OMPI_ERR_RMA_RANGE              = OMPI_ERR_BASE - 5,
  74     OMPI_ERR_RMA_CONFLICT           = OMPI_ERR_BASE - 6,
  75     OMPI_ERR_WIN                    = OMPI_ERR_BASE - 7,
  76     OMPI_ERR_RMA_FLAVOR             = OMPI_ERR_BASE - 8,
  77 };
  78 
  79 #define OMPI_ERR_MAX                    (OMPI_ERR_BASE - 100)
  80 
  81 #endif /* OMPI_CONSTANTS_H */
  82 

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