OpenMPI  0.1.1
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-2005 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) 2010-2012 Cisco Systems, Inc. All rights reserved.
13  * $COPYRIGHT$
14  *
15  * Additional copyrights may follow
16  *
17  * $HEADER$
18  */
19 
20 #ifndef OPAL_CONSTANTS_H
21 #define OPAL_CONSTANTS_H
22 
23 /* error codes - don't forget to update opal/rutime/opal_init.c when
24  adding to this list */
25 #define OPAL_ERR_BASE 0 /* internal use only */
26 
27 enum {
28  OPAL_SUCCESS = (OPAL_ERR_BASE),
29 
30  OPAL_ERROR = (OPAL_ERR_BASE - 1),
31  OPAL_ERR_OUT_OF_RESOURCE = (OPAL_ERR_BASE - 2), /* fatal error */
32  OPAL_ERR_TEMP_OUT_OF_RESOURCE = (OPAL_ERR_BASE - 3), /* try again later */
33  OPAL_ERR_RESOURCE_BUSY = (OPAL_ERR_BASE - 4),
34  OPAL_ERR_BAD_PARAM = (OPAL_ERR_BASE - 5), /* equivalent to MPI_ERR_ARG error code */
35  OPAL_ERR_FATAL = (OPAL_ERR_BASE - 6),
36  OPAL_ERR_NOT_IMPLEMENTED = (OPAL_ERR_BASE - 7),
37  OPAL_ERR_NOT_SUPPORTED = (OPAL_ERR_BASE - 8),
38  OPAL_ERR_INTERUPTED = (OPAL_ERR_BASE - 9),
39  OPAL_ERR_WOULD_BLOCK = (OPAL_ERR_BASE - 10),
40  OPAL_ERR_IN_ERRNO = (OPAL_ERR_BASE - 11),
41  OPAL_ERR_UNREACH = (OPAL_ERR_BASE - 12),
42  OPAL_ERR_NOT_FOUND = (OPAL_ERR_BASE - 13),
43  OPAL_EXISTS = (OPAL_ERR_BASE - 14), /* indicates that the specified object already exists */
44  OPAL_ERR_TIMEOUT = (OPAL_ERR_BASE - 15),
45  OPAL_ERR_NOT_AVAILABLE = (OPAL_ERR_BASE - 16),
46  OPAL_ERR_PERM = (OPAL_ERR_BASE - 17), /* no permission */
47  OPAL_ERR_VALUE_OUT_OF_BOUNDS = (OPAL_ERR_BASE - 18),
48  OPAL_ERR_FILE_READ_FAILURE = (OPAL_ERR_BASE - 19),
49  OPAL_ERR_FILE_WRITE_FAILURE = (OPAL_ERR_BASE - 20),
50  OPAL_ERR_FILE_OPEN_FAILURE = (OPAL_ERR_BASE - 21),
51  OPAL_ERR_PACK_MISMATCH = (OPAL_ERR_BASE - 22),
52  OPAL_ERR_PACK_FAILURE = (OPAL_ERR_BASE - 23),
53  OPAL_ERR_UNPACK_FAILURE = (OPAL_ERR_BASE - 24),
54  OPAL_ERR_UNPACK_INADEQUATE_SPACE = (OPAL_ERR_BASE - 25),
55  OPAL_ERR_UNPACK_READ_PAST_END_OF_BUFFER = (OPAL_ERR_BASE - 26),
56  OPAL_ERR_TYPE_MISMATCH = (OPAL_ERR_BASE - 27),
57  OPAL_ERR_OPERATION_UNSUPPORTED = (OPAL_ERR_BASE - 28),
58  OPAL_ERR_UNKNOWN_DATA_TYPE = (OPAL_ERR_BASE - 29),
59  OPAL_ERR_BUFFER = (OPAL_ERR_BASE - 30),
60  OPAL_ERR_DATA_TYPE_REDEF = (OPAL_ERR_BASE - 31),
61  OPAL_ERR_DATA_OVERWRITE_ATTEMPT = (OPAL_ERR_BASE - 32),
62  OPAL_ERR_MODULE_NOT_FOUND = (OPAL_ERR_BASE - 33),
63  OPAL_ERR_TOPO_SLOT_LIST_NOT_SUPPORTED = (OPAL_ERR_BASE - 34),
64  OPAL_ERR_TOPO_SOCKET_NOT_SUPPORTED = (OPAL_ERR_BASE - 35),
65  OPAL_ERR_TOPO_CORE_NOT_SUPPORTED = (OPAL_ERR_BASE - 36),
66  OPAL_ERR_NOT_ENOUGH_SOCKETS = (OPAL_ERR_BASE - 37),
67  OPAL_ERR_NOT_ENOUGH_CORES = (OPAL_ERR_BASE - 38),
68  OPAL_ERR_INVALID_PHYS_CPU = (OPAL_ERR_BASE - 39),
69  OPAL_ERR_MULTIPLE_AFFINITIES = (OPAL_ERR_BASE - 40),
70  OPAL_ERR_SLOT_LIST_RANGE = (OPAL_ERR_BASE - 41),
71  OPAL_ERR_NETWORK_NOT_PARSEABLE = (OPAL_ERR_BASE - 42),
72  OPAL_ERR_SILENT = (OPAL_ERR_BASE - 43),
73  OPAL_ERR_NOT_INITIALIZED = (OPAL_ERR_BASE - 44)
74 };
75 
76 #define OPAL_ERR_MAX (OPAL_ERR_BASE - 100)
77 
78 #endif /* OPAL_CONSTANTS_H */
79