2143ed4c81
orte_init_stage1(), since not all ORTE processes call orte_init(). * Expad opal_error test case to make sure ORTE error codes print properly * Make project error codes start at easy values (OPAL is -1 to -100, ORTE is -101 to -200, OMPI is less than -201) to make it easier to figure out what an error code as an integer means. Also has the nice property of not changing the values of error codes ever time a new error code is added. This commit was SVN r7061.
54 строки
2.3 KiB
C
54 строки
2.3 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
* All rights reserved.
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
* All rights reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef OPAL_CONSTANTS_H
|
|
#define OPAL_CONSTANTS_H
|
|
|
|
/* error codes - don't forget to update opal/rutime/opal_init.c when
|
|
adding to this list */
|
|
#define OPAL_ERR_BASE 0 /* internal use only */
|
|
|
|
enum {
|
|
OPAL_SUCCESS = (OPAL_ERR_BASE),
|
|
|
|
OPAL_ERROR = (OPAL_ERR_BASE - 1),
|
|
OPAL_ERR_OUT_OF_RESOURCE = (OPAL_ERR_BASE - 2), /* fatal error */
|
|
OPAL_ERR_TEMP_OUT_OF_RESOURCE = (OPAL_ERR_BASE - 3), /* try again later */
|
|
OPAL_ERR_RESOURCE_BUSY = (OPAL_ERR_BASE - 4),
|
|
OPAL_ERR_BAD_PARAM = (OPAL_ERR_BASE - 5), /* equivalent to MPI_ERR_ARG error code */
|
|
OPAL_ERR_FATAL = (OPAL_ERR_BASE - 6),
|
|
OPAL_ERR_NOT_IMPLEMENTED = (OPAL_ERR_BASE - 7),
|
|
OPAL_ERR_NOT_SUPPORTED = (OPAL_ERR_BASE - 8),
|
|
OPAL_ERR_INTERUPTED = (OPAL_ERR_BASE - 9),
|
|
OPAL_ERR_WOULD_BLOCK = (OPAL_ERR_BASE - 10),
|
|
OPAL_ERR_IN_ERRNO = (OPAL_ERR_BASE - 11),
|
|
OPAL_ERR_UNREACH = (OPAL_ERR_BASE - 12),
|
|
OPAL_ERR_NOT_FOUND = (OPAL_ERR_BASE - 13),
|
|
OPAL_EXISTS = (OPAL_ERR_BASE - 14), /* indicates that the specified object already exists */
|
|
OPAL_ERR_TIMEOUT = (OPAL_ERR_BASE - 15),
|
|
OPAL_ERR_NOT_AVAILABLE = (OPAL_ERR_BASE - 16),
|
|
OPAL_ERR_PERM = (OPAL_ERR_BASE - 17), /* no permission */
|
|
OPAL_ERR_VALUE_OUT_OF_BOUNDS = (OPAL_ERR_BASE - 18),
|
|
OPAL_ERR_FILE_READ_FAILURE = (OPAL_ERR_BASE - 19),
|
|
OPAL_ERR_FILE_WRITE_FAILURE = (OPAL_ERR_BASE - 20),
|
|
OPAL_ERR_FILE_OPEN_FAILURE = (OPAL_ERR_BASE - 21)
|
|
};
|
|
|
|
#define OPAL_ERR_MAX (OPAL_ERR_BASE - 100)
|
|
|
|
#endif /* OPAL_CONSTANTS_H */
|
|
|