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-2006 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 ORTE_CONSTANTS_H
20 #define ORTE_CONSTANTS_H
21
22 #include "opal/constants.h"
23 #include "orte_config.h"
24
25 BEGIN_C_DECLS
26
27 #define ORTE_ERR_BASE OPAL_ERR_MAX
28
29
30 enum {
31 /* Error codes inherited from OPAL. Still enum values so that we
32 get the nice debugger help. */
33
34 ORTE_SUCCESS = OPAL_SUCCESS,
35
36 ORTE_ERROR = OPAL_ERROR,
37 ORTE_ERR_OUT_OF_RESOURCE = OPAL_ERR_OUT_OF_RESOURCE,
38 ORTE_ERR_TEMP_OUT_OF_RESOURCE = OPAL_ERR_TEMP_OUT_OF_RESOURCE,
39 ORTE_ERR_RESOURCE_BUSY = OPAL_ERR_RESOURCE_BUSY,
40 ORTE_ERR_BAD_PARAM = OPAL_ERR_BAD_PARAM,
41 ORTE_ERR_FATAL = OPAL_ERR_FATAL,
42 ORTE_ERR_NOT_IMPLEMENTED = OPAL_ERR_NOT_IMPLEMENTED,
43 ORTE_ERR_NOT_SUPPORTED = OPAL_ERR_NOT_SUPPORTED,
44 ORTE_ERR_INTERUPTED = OPAL_ERR_INTERUPTED,
45 ORTE_ERR_WOULD_BLOCK = OPAL_ERR_WOULD_BLOCK,
46 ORTE_ERR_IN_ERRNO = OPAL_ERR_IN_ERRNO,
47 ORTE_ERR_UNREACH = OPAL_ERR_UNREACH,
48 ORTE_ERR_NOT_FOUND = OPAL_ERR_NOT_FOUND,
49 ORTE_EXISTS = OPAL_EXISTS,
50 ORTE_ERR_TIMEOUT = OPAL_ERR_TIMEOUT,
51 ORTE_ERR_NOT_AVAILABLE = OPAL_ERR_NOT_AVAILABLE,
52 ORTE_ERR_PERM = OPAL_ERR_PERM,
53 ORTE_ERR_VALUE_OUT_OF_BOUNDS = OPAL_ERR_VALUE_OUT_OF_BOUNDS,
54 ORTE_ERR_FILE_READ_FAILURE = OPAL_ERR_FILE_READ_FAILURE,
55 ORTE_ERR_FILE_WRITE_FAILURE = OPAL_ERR_FILE_WRITE_FAILURE,
56 ORTE_ERR_FILE_OPEN_FAILURE = OPAL_ERR_FILE_OPEN_FAILURE,
57 ORTE_ERR_PACK_MISMATCH = OPAL_ERR_PACK_MISMATCH,
58 ORTE_ERR_PACK_FAILURE = OPAL_ERR_PACK_FAILURE,
59 ORTE_ERR_UNPACK_FAILURE = OPAL_ERR_UNPACK_FAILURE,
60 ORTE_ERR_UNPACK_INADEQUATE_SPACE = OPAL_ERR_UNPACK_INADEQUATE_SPACE,
61 ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER = OPAL_ERR_UNPACK_READ_PAST_END_OF_BUFFER,
62 ORTE_ERR_TYPE_MISMATCH = OPAL_ERR_TYPE_MISMATCH,
63 ORTE_ERR_OPERATION_UNSUPPORTED = OPAL_ERR_OPERATION_UNSUPPORTED,
64 ORTE_ERR_UNKNOWN_DATA_TYPE = OPAL_ERR_UNKNOWN_DATA_TYPE,
65 ORTE_ERR_BUFFER = OPAL_ERR_BUFFER,
66 ORTE_ERR_DATA_TYPE_REDEF = OPAL_ERR_DATA_TYPE_REDEF,
67 ORTE_ERR_DATA_OVERWRITE_ATTEMPT = OPAL_ERR_DATA_OVERWRITE_ATTEMPT,
68 ORTE_ERR_MODULE_NOT_FOUND = OPAL_ERR_MODULE_NOT_FOUND,
69 ORTE_ERR_TOPO_SLOT_LIST_NOT_SUPPORTED = OPAL_ERR_TOPO_SLOT_LIST_NOT_SUPPORTED,
70 ORTE_ERR_TOPO_SOCKET_NOT_SUPPORTED = OPAL_ERR_TOPO_SOCKET_NOT_SUPPORTED,
71 ORTE_ERR_TOPO_CORE_NOT_SUPPORTED = OPAL_ERR_TOPO_CORE_NOT_SUPPORTED,
72 ORTE_ERR_NOT_ENOUGH_SOCKETS = OPAL_ERR_NOT_ENOUGH_SOCKETS,
73 ORTE_ERR_NOT_ENOUGH_CORES = OPAL_ERR_NOT_ENOUGH_CORES,
74 ORTE_ERR_INVALID_PHYS_CPU = OPAL_ERR_INVALID_PHYS_CPU,
75 ORTE_ERR_MULTIPLE_AFFINITIES = OPAL_ERR_MULTIPLE_AFFINITIES,
76 ORTE_ERR_SLOT_LIST_RANGE = OPAL_ERR_SLOT_LIST_RANGE,
77 ORTE_ERR_SILENT = OPAL_ERR_SILENT,
78
79 /* error codes specific to ORTE - don't forget to update
80 orte/util/error_strings.c when adding new error codes!!
81 Otherwise, the error reporting system will potentially crash,
82 or at the least not be able to report the new error correctly.
83 */
84 ORTE_ERR_RECV_LESS_THAN_POSTED = (ORTE_ERR_BASE - 1),
85 ORTE_ERR_RECV_MORE_THAN_POSTED = (ORTE_ERR_BASE - 2),
86 ORTE_ERR_NO_MATCH_YET = (ORTE_ERR_BASE - 3),
87 ORTE_ERR_REQUEST = (ORTE_ERR_BASE - 4),
88 ORTE_ERR_NO_CONNECTION_ALLOWED = (ORTE_ERR_BASE - 5),
89 ORTE_ERR_CONNECTION_REFUSED = (ORTE_ERR_BASE - 6),
90 ORTE_ERR_CONNECTION_FAILED = (ORTE_ERR_BASE - 7),
91 ORTE_ERR_COMM_FAILURE = (ORTE_ERR_BASE - 8),
92 ORTE_ERR_COMPARE_FAILURE = (ORTE_ERR_BASE - 9),
93 ORTE_ERR_COPY_FAILURE = (ORTE_ERR_BASE - 10),
94 ORTE_ERR_PROC_STATE_MISSING = (ORTE_ERR_BASE - 11),
95 ORTE_ERR_PROC_EXIT_STATUS_MISSING = (ORTE_ERR_BASE - 12),
96 ORTE_ERR_INDETERMINATE_STATE_INFO = (ORTE_ERR_BASE - 13),
97 ORTE_ERR_NODE_FULLY_USED = (ORTE_ERR_BASE - 14),
98 ORTE_ERR_INVALID_NUM_PROCS = (ORTE_ERR_BASE - 15),
99 ORTE_ERR_ADDRESSEE_UNKNOWN = (ORTE_ERR_BASE - 16),
100 ORTE_ERR_SYS_LIMITS_PIPES = (ORTE_ERR_BASE - 17),
101 ORTE_ERR_PIPE_SETUP_FAILURE = (ORTE_ERR_BASE - 18),
102 ORTE_ERR_SYS_LIMITS_CHILDREN = (ORTE_ERR_BASE - 19),
103 ORTE_ERR_FAILED_GET_TERM_ATTRS = (ORTE_ERR_BASE - 20),
104 ORTE_ERR_WDIR_NOT_FOUND = (ORTE_ERR_BASE - 21),
105 ORTE_ERR_EXE_NOT_FOUND = (ORTE_ERR_BASE - 22),
106 ORTE_ERR_PIPE_READ_FAILURE = (ORTE_ERR_BASE - 23),
107 ORTE_ERR_EXE_NOT_ACCESSIBLE = (ORTE_ERR_BASE - 24),
108 ORTE_ERR_FAILED_TO_START = (ORTE_ERR_BASE - 25),
109 ORTE_ERR_FILE_NOT_EXECUTABLE = (ORTE_ERR_BASE - 26),
110 ORTE_ERR_HNP_COULD_NOT_START = (ORTE_ERR_BASE - 27),
111 ORTE_ERR_SYS_LIMITS_SOCKETS = (ORTE_ERR_BASE - 28),
112 ORTE_ERR_SOCKET_NOT_AVAILABLE = (ORTE_ERR_BASE - 29),
113 ORTE_ERR_SYSTEM_WILL_BOOTSTRAP = (ORTE_ERR_BASE - 30),
114 ORTE_ERR_RESTART_LIMIT_EXCEEDED = (ORTE_ERR_BASE - 31),
115 ORTE_ERR_INVALID_NODE_RANK = (ORTE_ERR_BASE - 32),
116 ORTE_ERR_INVALID_LOCAL_RANK = (ORTE_ERR_BASE - 33),
117 ORTE_ERR_UNRECOVERABLE = (ORTE_ERR_BASE - 34),
118 ORTE_ERR_MEM_LIMIT_EXCEEDED = (ORTE_ERR_BASE - 35),
119 ORTE_ERR_HEARTBEAT_LOST = (ORTE_ERR_BASE - 36),
120 ORTE_ERR_PROC_STALLED = (ORTE_ERR_BASE - 37),
121 ORTE_ERR_NO_APP_SPECIFIED = (ORTE_ERR_BASE - 38),
122 ORTE_ERR_NO_EXE_SPECIFIED = (ORTE_ERR_BASE - 39),
123 ORTE_ERR_COMM_DISABLED = (ORTE_ERR_BASE - 40),
124 ORTE_ERR_FAILED_TO_MAP = (ORTE_ERR_BASE - 41),
125 ORTE_ERR_TAKE_NEXT_OPTION = (ORTE_ERR_BASE - 42),
126 ORTE_ERR_SENSOR_LIMIT_EXCEEDED = (ORTE_ERR_BASE - 43)
127 };
128
129 #define ORTE_ERR_MAX (ORTE_ERR_BASE - 100)
130
131 END_C_DECLS
132
133 #endif /* ORTE_CONSTANTS_H */
134