OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

constants.h
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$
13 *
14 * Additional copyrights may follow
15 *
16 * $HEADER$
17 */
18
19 #ifndef OMPI_CONSTANTS_H
20 #define OMPI_CONSTANTS_H
21
22 #include "orte/constants.h"
23
24 #define OMPI_ERR_BASE ORTE_ERR_MAX
25
26 /* error codes */
27 enum {
28 /* Error codes inherited from ORTE/OPAL. Still enum values so
29 that we might get nice debugger help */
30 OMPI_SUCCESS = OPAL_SUCCESS,
31 OMPI_ERROR = OPAL_ERROR,
32 OMPI_ERR_OUT_OF_RESOURCE = OPAL_ERR_OUT_OF_RESOURCE,
33 OMPI_ERR_TEMP_OUT_OF_RESOURCE = OPAL_ERR_TEMP_OUT_OF_RESOURCE,
34 OMPI_ERR_RESOURCE_BUSY = OPAL_ERR_RESOURCE_BUSY,
35 OMPI_ERR_BAD_PARAM = OPAL_ERR_BAD_PARAM,
36 OMPI_ERR_FATAL = OPAL_ERR_FATAL,
37 OMPI_ERR_NOT_IMPLEMENTED = OPAL_ERR_NOT_IMPLEMENTED,
38 OMPI_ERR_NOT_SUPPORTED = OPAL_ERR_NOT_SUPPORTED,
39 OMPI_ERR_INTERUPTED = OPAL_ERR_INTERUPTED,
40 OMPI_ERR_WOULD_BLOCK = OPAL_ERR_WOULD_BLOCK,
41 OMPI_ERR_IN_ERRNO = OPAL_ERR_IN_ERRNO,
42 OMPI_ERR_UNREACH = OPAL_ERR_UNREACH,
43 OMPI_ERR_NOT_FOUND = OPAL_ERR_NOT_FOUND,
44 OMPI_EXISTS = OPAL_EXISTS, /* indicates that the specified object already exists */
45 OMPI_ERR_TIMEOUT = OPAL_ERR_TIMEOUT,
46 OMPI_ERR_NOT_AVAILABLE = OPAL_ERR_NOT_AVAILABLE,
47 OMPI_ERR_PERM = OPAL_ERR_PERM,
48 OMPI_ERR_VALUE_OUT_OF_BOUNDS = OPAL_ERR_VALUE_OUT_OF_BOUNDS,
49 OMPI_ERR_FILE_READ_FAILURE = OPAL_ERR_FILE_READ_FAILURE,
50 OMPI_ERR_FILE_WRITE_FAILURE = OPAL_ERR_FILE_WRITE_FAILURE,
51 OMPI_ERR_FILE_OPEN_FAILURE = OPAL_ERR_FILE_OPEN_FAILURE,
52 OMPI_ERR_PACK_MISMATCH = OPAL_ERR_PACK_MISMATCH,
53 OMPI_ERR_PACK_FAILURE = OPAL_ERR_PACK_FAILURE,
54 OMPI_ERR_UNPACK_FAILURE = OPAL_ERR_UNPACK_FAILURE,
55 OMPI_ERR_TYPE_MISMATCH = OPAL_ERR_TYPE_MISMATCH,
56 OMPI_ERR_UNKNOWN_DATA_TYPE = OPAL_ERR_UNKNOWN_DATA_TYPE,
57 OMPI_ERR_DATA_TYPE_REDEF = OPAL_ERR_DATA_TYPE_REDEF,
58 OMPI_ERR_DATA_OVERWRITE_ATTEMPT = OPAL_ERR_DATA_OVERWRITE_ATTEMPT,
59
60 OMPI_ERR_BUFFER = OPAL_ERR_BUFFER,
61 OMPI_ERR_SILENT = OPAL_ERR_SILENT,
62
63 OMPI_ERR_REQUEST = OMPI_ERR_BASE - 1
64 };
65
66 #define OMPI_ERR_MAX (OMPI_ERR_BASE - 2)
67
68 #endif /* OMPI_CONSTANTS_H */
69