-
Notifications
You must be signed in to change notification settings - Fork 0
/
testconstants.c
202 lines (197 loc) · 4.32 KB
/
testconstants.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
// SPDX-License-Identifier: MIT
#ifdef NOWRAP
#include <mpi.h>
#else
#include "mpi.h"
#endif
// clearly, not ALL of them yet...
static MPI_Comm all_comm_constants [] = {
MPI_COMM_WORLD,
MPI_COMM_SELF
};
// clearly, not ALL of them yet...
static MPI_Datatype all_datatype_constants [] = {
MPI_CHAR, MPI_SHORT, MPI_INT, MPI_LONG, MPI_LONG_LONG, MPI_FLOAT, MPI_DOUBLE
};
static int all_integer_constants [] = {
MPI_SUCCESS,
MPI_ERR_BUFFER,
MPI_ERR_COUNT,
MPI_ERR_TYPE,
MPI_ERR_TAG,
MPI_ERR_COMM,
MPI_ERR_RANK,
MPI_ERR_REQUEST,
MPI_ERR_ROOT,
MPI_ERR_GROUP,
MPI_ERR_OP,
MPI_ERR_TOPOLOGY,
MPI_ERR_DIMS,
MPI_ERR_ARG,
MPI_ERR_UNKNOWN,
MPI_ERR_TRUNCATE,
MPI_ERR_OTHER,
MPI_ERR_INTERN,
MPI_ERR_PENDING,
MPI_ERR_IN_STATUS,
MPI_ERR_ACCESS,
MPI_ERR_AMODE,
MPI_ERR_ASSERT,
MPI_ERR_BAD_FILE,
MPI_ERR_BASE,
MPI_ERR_CONVERSION,
MPI_ERR_DISP,
MPI_ERR_DUP_DATAREP,
MPI_ERR_FILE_EXISTS,
MPI_ERR_FILE_IN_USE,
MPI_ERR_FILE,
MPI_ERR_INFO_KEY,
MPI_ERR_INFO_NOKEY,
MPI_ERR_INFO_VALUE,
MPI_ERR_INFO,
MPI_ERR_IO,
MPI_ERR_KEYVAL,
MPI_ERR_LOCKTYPE,
MPI_ERR_NAME,
MPI_ERR_NO_MEM,
MPI_ERR_NOT_SAME,
MPI_ERR_NO_SPACE,
MPI_ERR_NO_SUCH_FILE,
MPI_ERR_PORT,
#if MPI_VERSION >= 4
MPI_ERR_PROC_ABORTED,
#endif
MPI_ERR_QUOTA,
MPI_ERR_READ_ONLY,
MPI_ERR_RMA_ATTACH,
MPI_ERR_RMA_CONFLICT,
MPI_ERR_RMA_RANGE,
MPI_ERR_RMA_SHARED,
MPI_ERR_RMA_SYNC,
MPI_ERR_RMA_FLAVOR,
MPI_ERR_SERVICE,
#if MPI_VERSION >= 4
MPI_ERR_SESSION,
#endif
MPI_ERR_SIZE,
MPI_ERR_SPAWN,
MPI_ERR_UNSUPPORTED_DATAREP,
MPI_ERR_UNSUPPORTED_OPERATION,
#if MPI_VERSION >= 4
MPI_ERR_VALUE_TOO_LARGE,
#endif
MPI_ERR_WIN,
MPI_T_ERR_CANNOT_INIT,
#if MPICH_BUG_IS_FIXED
MPI_T_ERR_NOT_ACCESSIBLE,
#endif
MPI_T_ERR_NOT_INITIALIZED,
#if MPI_VERSION >= 4
MPI_T_ERR_NOT_SUPPORTED,
#endif
MPI_T_ERR_MEMORY,
MPI_T_ERR_INVALID,
MPI_T_ERR_INVALID_INDEX,
MPI_T_ERR_INVALID_ITEM,
MPI_T_ERR_INVALID_SESSION,
MPI_T_ERR_INVALID_HANDLE,
MPI_T_ERR_INVALID_NAME,
MPI_T_ERR_OUT_OF_HANDLES,
MPI_T_ERR_OU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
MPI_COMBINER_DUP,
MPI_COMBINER_HINDEXED,
MPI_COMBINER_HVECTOR,
MPI_COMBINER_INDEXED_BLOCK,
MPI_COMBINER_HINDEXED_BLOCK,
MPI_COMBINER_INDEXED,
MPI_COMBINER_NAMED,
MPI_COMBINER_RESIZED,
MPI_COMBINER_STRUCT,
MPI_COMBINER_SUBARRAY,
MPI_COMBINER_VECTOR,
MPI_THREAD_FUNNELED,
MPI_THREAD_MULTIPLE,
MPI_THREAD_SERIALIZED,
MPI_THREAD_SINGLE,
MPI_DISPLACEMENT_CURRENT,
MPI_DISTRIBUTE_BLOCK,
MPI_DISTRIBUTE_CYCLIC,
MPI_DISTRIBUTE_DFLT_DARG,
MPI_DISTRIBUTE_NONE,
MPI_ORDER_C,
MPI_ORDER_FORTRAN,
MPI_SEEK_CUR,
MPI_SEEK_END,
MPI_SEEK_SET,
MPI_TYPECLASS_COMPLEX,
MPI_TYPECLASS_INTEGER,
MPI_TYPECLASS_REAL
};
int main(void)
{
(void)all_integer_constants;
(void)all_comm_constants;
(void)all_datatype_constants;
return MPI_SUCCESS;
}