1
1

updated the MPI error codes to be positiv. Completed the list

with all MPI-2 error codes, even if we are not using all of them at the moment.

This commit was SVN r1401.
Этот коммит содержится в:
Edgar Gabriel 2004-06-17 22:38:45 +00:00
родитель ccca0451f7
Коммит 37b9a01025

Просмотреть файл

@ -84,7 +84,6 @@ extern "C" {
* Miscellaneous constants * Miscellaneous constants
* JMS: Some of these may be L7-specific and should be removed... * JMS: Some of these may be L7-specific and should be removed...
*/ */
#define MPI_SUCCESS 0 /* no errors */
#define MPI_ANY_SOURCE -1 /* match any source rank */ #define MPI_ANY_SOURCE -1 /* match any source rank */
#define MPI_PROC_NULL -2 /* rank of null process */ #define MPI_PROC_NULL -2 /* rank of null process */
#define MPI_ROOT -4 #define MPI_ROOT -4
@ -163,48 +162,66 @@ enum {
}; };
/* /*
* Error classes * Error classes and codes
*/ */
enum { #define MPI_SUCCESS 0
MPI_ERR_BUFFER = -10000, /* invalid buffer pointer */ #define MPI_ERR_BUFFER 1
MPI_ERR_COUNT, /* invalid count argument */ #define MPI_ERR_COUNT 2
MPI_ERR_TYPE, /* invalid datatype argument */ #define MPI_ERR_TYPE 3
MPI_ERR_TAG, /* invalid tag argument */ #define MPI_ERR_TAG 4
MPI_ERR_COMM, /* invalid communicator */ #define MPI_ERR_COMM 5
MPI_ERR_RANK, /* invalid rank */ #define MPI_ERR_RANK 6
MPI_ERR_REQUEST, /* invalid request handle */ #define MPI_ERR_REQUEST 7
MPI_ERR_ROOT, /* invalid root */ #define MPI_ERR_ROOT 8
MPI_ERR_GROUP, /* invalid group */ #define MPI_ERR_GROUP 9
MPI_ERR_OP, /* invalid operation */ #define MPI_ERR_OP 10
MPI_ERR_TOPOLOGY, /* invalid topology */ #define MPI_ERR_TOPOLOGY 11
MPI_ERR_DIMS, /* invalid dimension argument */ #define MPI_ERR_DIMS 12
MPI_ERR_ARG, /* invalid argument */ #define MPI_ERR_ARG 13
MPI_ERR_UNKNOWN, /* unknown error */ #define MPI_ERR_UNKNOWN 14
MPI_ERR_TRUNCATE, /* message truncated on receive */ #define MPI_ERR_TRUNCATE 15
MPI_ERR_OTHER, /* OMPI error */ #define MPI_ERR_OTHER 16
MPI_ERR_INTERN, /* internal MPI error */ #define MPI_ERR_INTERN 17
MPI_ERR_IN_STATUS, /* error code is in status */ #define MPI_ERR_IN_STATUS 18
MPI_ERR_PENDING, /* pending request */ #define MPI_ERR_PENDING 19
MPI_ERR_SYSRESOURCE, /* out of system resources */ #define MPI_ERR_ACCESS 20
MPI_ERR_LOCALDEAD, /* process in local group is dead */ #define MPI_ERR_AMODE 21
MPI_ERR_REMOTEDEAD, /* process in remote group is dead */ #define MPI_ERR_ASSERT 22
MPI_ERR_VALUE, /* truncated info value */ #define MPI_ERR_BAD_FILE 23
MPI_ERR_FLAGS, /* mismatched run-time flags */ #define MPI_ERR_BASE 24
MPI_ERR_SERVICE, /* name publishing service error */ #define MPI_ERR_CONVERSION 25
MPI_ERR_NAME, /* name not published */ #define MPI_ERR_DISP 26
MPI_ERR_SPAWN, /* error while spawning processes */ #define MPI_ERR_DUP_DATAREP 27
MPI_ERR_KEYVAL, /* invalid key value */ #define MPI_ERR_FILE_EXISTS 28
MPI_ERR_INFO_NOKEY, /* no such info key */ #define MPI_ERR_FILE_IN_USE 29
MPI_ERR_WIN, /* invalid window */ #define MPI_ERR_FILE 30
MPI_ERR_EPOCH, /* mismatched one-sided synch. */ #define MPI_ERR_INFO_KEY 31
MPI_ERR_TYPENOTSUP, /* operation not supported on type */ #define MPI_ERR_INFO_NOKEY 32
MPI_ERR_INFO_KEY, /* invalid info key */ #define MPI_ERR_INFO_VALUE 33
MPI_ERR_INFO_VALUE, /* invalid info value */ #define MPI_ERR_INFO 34
MPI_ERR_NO_MEM, /* no memory left */ #define MPI_ERR_IO 35
MPI_ERR_BASE, /* invalid base pointer value */ #define MPI_ERR_KEYVAL 36
#define MPI_ERR_LOCKTYPE 37
#define MPI_ERR_NAME 38
#define MPI_ERR_NO_MEM 39
#define MPI_ERR_NOT_SAME 40
#define MPI_ERR_NO_SPACE 41
#define MPI_ERR_NO_SUCH_FILE 42
#define MPI_ERR_PORT 43
#define MPI_ERR_QUOTA 44
#define MPI_ERR_READ_ONLY 45
#define MPI_ERR_RMA_CONFLICT 46
#define MPI_ERR_RMA_SYNC 47
#define MPI_ERR_SERVICE 48
#define MPI_ERR_SIZE 49
#define MPI_ERR_SPAWN 50
#define MPI_ERR_UNSUPPORTED_DATAREP 51
#define MPI_ERR_UNSUPPORTED_OPERATION 52
#define MPI_ERR_WIN 53
#define MPI_ERR_SYSRESOURCE -2
#define MPI_ERR_LASTCODE -1
MPI_ERR_LASTCODE /* last error code */
};
/* /*
* Comparison results. Don't change the order of these, the group * Comparison results. Don't change the order of these, the group