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-2005 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
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.
14 * Additional copyrights may follow
19 #ifndef ORTE_CONSTANTS_H
20 #define ORTE_CONSTANTS_H
22 #include "opal/include/constants.h"
24 #define ORTE_ERR_BASE OPAL_ERR_MAX
27 /* Error codes inherited from OPAL. Still enum values so that we
28 get the nice debugger help. */
30 ORTE_SUCCESS
= OPAL_SUCCESS
,
32 ORTE_ERROR
= OPAL_ERROR
,
33 ORTE_ERR_OUT_OF_RESOURCE
= OPAL_ERR_OUT_OF_RESOURCE
,
34 ORTE_ERR_TEMP_OUT_OF_RESOURCE
= OPAL_ERR_TEMP_OUT_OF_RESOURCE
,
35 ORTE_ERR_RESOURCE_BUSY
= OPAL_ERR_RESOURCE_BUSY
,
36 ORTE_ERR_BAD_PARAM
= OPAL_ERR_BAD_PARAM
,
37 ORTE_ERR_FATAL
= OPAL_ERR_FATAL
,
38 ORTE_ERR_NOT_IMPLEMENTED
= OPAL_ERR_NOT_IMPLEMENTED
,
39 ORTE_ERR_NOT_SUPPORTED
= OPAL_ERR_NOT_SUPPORTED
,
40 ORTE_ERR_INTERUPTED
= OPAL_ERR_INTERUPTED
,
41 ORTE_ERR_WOULD_BLOCK
= OPAL_ERR_WOULD_BLOCK
,
42 ORTE_ERR_IN_ERRNO
= OPAL_ERR_IN_ERRNO
,
43 ORTE_ERR_UNREACH
= OPAL_ERR_UNREACH
,
44 ORTE_ERR_NOT_FOUND
= OPAL_ERR_NOT_FOUND
,
45 ORTE_EXISTS
= OPAL_EXISTS
,
46 ORTE_ERR_TIMEOUT
= OPAL_ERR_TIMEOUT
,
47 ORTE_ERR_NOT_AVAILABLE
= OPAL_ERR_NOT_AVAILABLE
,
48 ORTE_ERR_PERM
= OPAL_ERR_PERM
,
49 ORTE_ERR_VALUE_OUT_OF_BOUNDS
= OPAL_ERR_VALUE_OUT_OF_BOUNDS
,
50 ORTE_ERR_FILE_READ_FAILURE
= OPAL_ERR_FILE_READ_FAILURE
,
51 ORTE_ERR_FILE_WRITE_FAILURE
= OPAL_ERR_FILE_WRITE_FAILURE
,
52 ORTE_ERR_FILE_OPEN_FAILURE
= OPAL_ERR_FILE_OPEN_FAILURE
,
54 /* error codes specific to ORTE - don't forget to update
55 orte/rutime/orte_init.c when adding new error codes */
56 ORTE_ERR_RECV_LESS_THAN_POSTED
= (ORTE_ERR_BASE
- 1),
57 ORTE_ERR_RECV_MORE_THAN_POSTED
= (ORTE_ERR_BASE
- 2),
58 ORTE_ERR_NO_MATCH_YET
= (ORTE_ERR_BASE
- 3),
59 ORTE_ERR_BUFFER
= (ORTE_ERR_BASE
- 4),
60 ORTE_ERR_REQUEST
= (ORTE_ERR_BASE
- 5),
61 ORTE_ERR_NO_CONNECTION_ALLOWED
= (ORTE_ERR_BASE
- 6),
62 ORTE_ERR_CONNECTION_REFUSED
= (ORTE_ERR_BASE
- 7),
63 ORTE_ERR_CONNECTION_FAILED
= (ORTE_ERR_BASE
- 8),
64 ORTE_STARTUP_DETECTED
= (ORTE_ERR_BASE
- 9),
65 ORTE_SHUTDOWN_DETECTED
= (ORTE_ERR_BASE
- 10),
66 ORTE_PROC_STARTING
= (ORTE_ERR_BASE
- 11),
67 ORTE_PROC_STOPPED
= (ORTE_ERR_BASE
- 12),
68 ORTE_PROC_TERMINATING
= (ORTE_ERR_BASE
- 13),
69 ORTE_PROC_ALIVE
= (ORTE_ERR_BASE
- 14),
70 ORTE_PROC_RUNNING
= (ORTE_ERR_BASE
- 15),
71 ORTE_PROC_KILLED
= (ORTE_ERR_BASE
- 16),
72 ORTE_PROC_EXITED
= (ORTE_ERR_BASE
- 17),
73 ORTE_NODE_UP
= (ORTE_ERR_BASE
- 18),
74 ORTE_NODE_DOWN
= (ORTE_ERR_BASE
- 19),
75 ORTE_NODE_BOOTING
= (ORTE_ERR_BASE
- 21),
76 ORTE_NODE_ERROR
= (ORTE_ERR_BASE
- 22),
77 ORTE_PACK_MISMATCH
= (ORTE_ERR_BASE
- 23),
78 ORTE_ERR_PACK_FAILURE
= (ORTE_ERR_BASE
- 24),
79 ORTE_ERR_UNPACK_FAILURE
= (ORTE_ERR_BASE
- 25),
80 ORTE_ERR_COMM_FAILURE
= (ORTE_ERR_BASE
- 26),
81 ORTE_UNPACK_INADEQUATE_SPACE
= (ORTE_ERR_BASE
- 27),
82 ORTE_UNPACK_READ_PAST_END_OF_BUFFER
= (ORTE_ERR_BASE
- 28),
83 ORTE_ERR_GPR_DATA_CORRUPT
= (ORTE_ERR_BASE
- 29),
84 ORTE_ERR_TYPE_MISMATCH
= (ORTE_ERR_BASE
- 30)
87 #define ORTE_ERR_MAX (ORTE_ERR_BASE - 100)
90 #endif /* ORTE_CONSTANTS_H */