source: proiecte/hpl/openmpi_compiled/include/openmpi/ompi/mpi/cxx/constants.h @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 10.7 KB
Line 
1// -*- c++ -*-
2//
3// Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4//                         University Research and Technology
5//                         Corporation.  All rights reserved.
6// Copyright (c) 2004-2005 The University of Tennessee and The University
7//                         of Tennessee Research Foundation.  All rights
8//                         reserved.
9// Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10//                         University of Stuttgart.  All rights reserved.
11// Copyright (c) 2004-2005 The Regents of the University of California.
12//                         All rights reserved.
13// Copyright (c) 2008-2009 Cisco Systems, Inc.  All rights reserved.
14// $COPYRIGHT$
15//
16// Additional copyrights may follow
17//
18// $HEADER$
19//
20
21
22// return  codes
23static const int SUCCESS = MPI_SUCCESS;
24static const int ERR_BUFFER = MPI_ERR_BUFFER;
25static const int ERR_COUNT = MPI_ERR_COUNT;
26static const int ERR_TYPE = MPI_ERR_TYPE;
27static const int ERR_TAG  = MPI_ERR_TAG ;
28static const int ERR_COMM = MPI_ERR_COMM;
29static const int ERR_RANK = MPI_ERR_RANK;
30static const int ERR_REQUEST = MPI_ERR_REQUEST;
31static const int ERR_ROOT = MPI_ERR_ROOT;
32static const int ERR_GROUP = MPI_ERR_GROUP;
33static const int ERR_OP = MPI_ERR_OP;
34static const int ERR_TOPOLOGY = MPI_ERR_TOPOLOGY;
35static const int ERR_DIMS = MPI_ERR_DIMS;
36static const int ERR_ARG = MPI_ERR_ARG;
37static const int ERR_UNKNOWN = MPI_ERR_UNKNOWN;
38static const int ERR_TRUNCATE = MPI_ERR_TRUNCATE;
39static const int ERR_OTHER = MPI_ERR_OTHER;
40static const int ERR_INTERN = MPI_ERR_INTERN;
41static const int ERR_PENDING = MPI_ERR_PENDING;
42static const int ERR_IN_STATUS = MPI_ERR_IN_STATUS;
43static const int ERR_LASTCODE = MPI_ERR_LASTCODE;
44
45static const int ERR_BASE = MPI_ERR_BASE;
46static const int ERR_INFO_VALUE = MPI_ERR_INFO_VALUE;
47static const int ERR_INFO_KEY = MPI_ERR_INFO_KEY;
48static const int ERR_INFO_NOKEY = MPI_ERR_INFO_NOKEY;
49static const int ERR_KEYVAL = MPI_ERR_KEYVAL;
50static const int ERR_NAME = MPI_ERR_NAME;
51static const int ERR_NO_MEM = MPI_ERR_NO_MEM;
52static const int ERR_SERVICE = MPI_ERR_SERVICE;
53static const int ERR_SPAWN = MPI_ERR_SPAWN;
54static const int ERR_WIN = MPI_ERR_WIN;
55
56
57// assorted constants
58OMPI_DECLSPEC extern void* const BOTTOM;
59OMPI_DECLSPEC extern void* const IN_PLACE;
60static const int PROC_NULL = MPI_PROC_NULL;
61static const int ANY_SOURCE = MPI_ANY_SOURCE;
62static const int ROOT = MPI_ROOT;
63static const int ANY_TAG = MPI_ANY_TAG;
64static const int UNDEFINED = MPI_UNDEFINED;
65static const int BSEND_OVERHEAD = MPI_BSEND_OVERHEAD;
66static const int KEYVAL_INVALID = MPI_KEYVAL_INVALID;
67static const int ORDER_C = MPI_ORDER_C;
68static const int ORDER_FORTRAN = MPI_ORDER_FORTRAN;
69static const int DISTRIBUTE_BLOCK = MPI_DISTRIBUTE_BLOCK;
70static const int DISTRIBUTE_CYCLIC = MPI_DISTRIBUTE_CYCLIC;
71static const int DISTRIBUTE_NONE = MPI_DISTRIBUTE_NONE;
72static const int DISTRIBUTE_DFLT_DARG = MPI_DISTRIBUTE_DFLT_DARG;
73
74// error-handling specifiers
75OMPI_DECLSPEC extern const Errhandler  ERRORS_ARE_FATAL;
76OMPI_DECLSPEC extern const Errhandler  ERRORS_RETURN;
77OMPI_DECLSPEC extern const Errhandler  ERRORS_THROW_EXCEPTIONS;
78
79// typeclass definitions for MPI_Type_match_size
80static const int TYPECLASS_INTEGER = MPI_TYPECLASS_INTEGER;
81static const int TYPECLASS_REAL = MPI_TYPECLASS_REAL;
82static const int TYPECLASS_COMPLEX = MPI_TYPECLASS_COMPLEX;
83
84// maximum sizes for strings
85static const int MAX_PROCESSOR_NAME = MPI_MAX_PROCESSOR_NAME;
86static const int MAX_ERROR_STRING = MPI_MAX_ERROR_STRING;
87static const int MAX_INFO_KEY = MPI_MAX_INFO_KEY;
88static const int MAX_INFO_VAL = MPI_MAX_INFO_VAL;
89static const int MAX_PORT_NAME = MPI_MAX_PORT_NAME;
90static const int MAX_OBJECT_NAME = MPI_MAX_OBJECT_NAME;
91
92// elementary datatypes (C / C++)
93OMPI_DECLSPEC extern const Datatype CHAR;
94OMPI_DECLSPEC extern const Datatype SHORT;         
95OMPI_DECLSPEC extern const Datatype INT;           
96OMPI_DECLSPEC extern const Datatype LONG;
97OMPI_DECLSPEC extern const Datatype SIGNED_CHAR;
98OMPI_DECLSPEC extern const Datatype UNSIGNED_CHAR;
99OMPI_DECLSPEC extern const Datatype UNSIGNED_SHORT; 
100OMPI_DECLSPEC extern const Datatype UNSIGNED;       
101OMPI_DECLSPEC extern const Datatype UNSIGNED_LONG; 
102OMPI_DECLSPEC extern const Datatype FLOAT;
103OMPI_DECLSPEC extern const Datatype DOUBLE;
104OMPI_DECLSPEC extern const Datatype LONG_DOUBLE;
105OMPI_DECLSPEC extern const Datatype BYTE;
106OMPI_DECLSPEC extern const Datatype PACKED;
107OMPI_DECLSPEC extern const Datatype WCHAR;
108
109// datatypes for reductions functions (C / C++)
110OMPI_DECLSPEC extern const Datatype FLOAT_INT;
111OMPI_DECLSPEC extern const Datatype DOUBLE_INT;
112OMPI_DECLSPEC extern const Datatype LONG_INT;
113OMPI_DECLSPEC extern const Datatype TWOINT;
114OMPI_DECLSPEC extern const Datatype SHORT_INT;
115OMPI_DECLSPEC extern const Datatype LONG_DOUBLE_INT;
116
117// elementary datatype (Fortran)
118OMPI_DECLSPEC extern const Datatype INTEGER;
119OMPI_DECLSPEC extern const Datatype REAL;
120OMPI_DECLSPEC extern const Datatype DOUBLE_PRECISION;
121OMPI_DECLSPEC extern const Datatype F_COMPLEX;
122OMPI_DECLSPEC extern const Datatype LOGICAL;
123OMPI_DECLSPEC extern const Datatype CHARACTER;
124
125// datatype for reduction functions (Fortran)
126OMPI_DECLSPEC extern const Datatype TWOREAL;
127OMPI_DECLSPEC extern const Datatype TWODOUBLE_PRECISION;
128OMPI_DECLSPEC extern const Datatype TWOINTEGER;
129
130// optional datatypes (Fortran)
131OMPI_DECLSPEC extern const Datatype INTEGER1;
132OMPI_DECLSPEC extern const Datatype INTEGER2;
133OMPI_DECLSPEC extern const Datatype INTEGER4;
134OMPI_DECLSPEC extern const Datatype REAL2;
135OMPI_DECLSPEC extern const Datatype REAL4;
136OMPI_DECLSPEC extern const Datatype REAL8;
137
138// optional datatype (C / C++)
139OMPI_DECLSPEC extern const Datatype LONG_LONG;
140OMPI_DECLSPEC extern const Datatype UNSIGNED_LONG_LONG;
141
142// c++ types
143OMPI_DECLSPEC extern const Datatype BOOL;
144OMPI_DECLSPEC extern const Datatype COMPLEX;
145OMPI_DECLSPEC extern const Datatype DOUBLE_COMPLEX;
146OMPI_DECLSPEC extern const Datatype LONG_DOUBLE_COMPLEX;
147
148// special datatypes for contstruction of derived datatypes
149OMPI_DECLSPEC extern const Datatype UB;
150OMPI_DECLSPEC extern const Datatype LB;
151
152// datatype decoding constants
153static const int COMBINER_NAMED = MPI_COMBINER_NAMED;
154static const int COMBINER_DUP = MPI_COMBINER_DUP;
155static const int COMBINER_CONTIGUOUS = MPI_COMBINER_CONTIGUOUS;
156static const int COMBINER_VECTOR = MPI_COMBINER_VECTOR;
157static const int COMBINER_HVECTOR_INTEGER = MPI_COMBINER_HVECTOR_INTEGER;
158static const int COMBINER_HVECTOR = MPI_COMBINER_HVECTOR;
159static const int COMBINER_INDEXED = MPI_COMBINER_INDEXED;
160static const int COMBINER_HINDEXED_INTEGER = MPI_COMBINER_HINDEXED_INTEGER;
161static const int COMBINER_HINDEXED = MPI_COMBINER_HINDEXED;
162static const int COMBINER_INDEXED_BLOCK = MPI_COMBINER_INDEXED_BLOCK;
163static const int COMBINER_STRUCT_INTEGER = MPI_COMBINER_STRUCT_INTEGER;
164static const int COMBINER_STRUCT = MPI_COMBINER_STRUCT;
165static const int COMBINER_SUBARRAY = MPI_COMBINER_SUBARRAY;
166static const int COMBINER_DARRAY = MPI_COMBINER_DARRAY;
167static const int COMBINER_F90_REAL = MPI_COMBINER_F90_REAL;
168static const int COMBINER_F90_COMPLEX = MPI_COMBINER_F90_COMPLEX;
169static const int COMBINER_F90_INTEGER = MPI_COMBINER_F90_INTEGER;
170static const int COMBINER_RESIZED = MPI_COMBINER_RESIZED;
171
172// thread constants
173static const int THREAD_SINGLE = MPI_THREAD_SINGLE;
174static const int THREAD_FUNNELED = MPI_THREAD_FUNNELED;
175static const int THREAD_SERIALIZED = MPI_THREAD_SERIALIZED;
176static const int THREAD_MULTIPLE = MPI_THREAD_MULTIPLE;
177
178// reserved communicators
179// JGS these can not be const because Set_errhandler is not const
180OMPI_DECLSPEC extern Intracomm COMM_WORLD;
181OMPI_DECLSPEC extern Intracomm COMM_SELF;
182
183// results of communicator and group comparisons
184static const int IDENT = MPI_IDENT;
185static const int CONGRUENT = MPI_CONGRUENT;
186static const int SIMILAR = MPI_SIMILAR;
187static const int UNEQUAL = MPI_UNEQUAL;
188
189// environmental inquiry keys
190static const int TAG_UB = MPI_TAG_UB;
191static const int HOST = MPI_HOST;
192static const int IO = MPI_IO;
193static const int WTIME_IS_GLOBAL = MPI_WTIME_IS_GLOBAL;
194static const int APPNUM = MPI_APPNUM;
195static const int LASTUSEDCODE = MPI_LASTUSEDCODE;
196static const int UNIVERSE_SIZE = MPI_UNIVERSE_SIZE;
197static const int WIN_BASE = MPI_WIN_BASE;
198static const int WIN_SIZE = MPI_WIN_SIZE;
199static const int WIN_DISP_UNIT = MPI_WIN_DISP_UNIT;
200
201// collective operations
202OMPI_DECLSPEC extern const Op MAX;
203OMPI_DECLSPEC extern const Op MIN;
204OMPI_DECLSPEC extern const Op SUM;
205OMPI_DECLSPEC extern const Op PROD;
206OMPI_DECLSPEC extern const Op MAXLOC;
207OMPI_DECLSPEC extern const Op MINLOC;
208OMPI_DECLSPEC extern const Op BAND;
209OMPI_DECLSPEC extern const Op BOR;
210OMPI_DECLSPEC extern const Op BXOR;
211OMPI_DECLSPEC extern const Op LAND;
212OMPI_DECLSPEC extern const Op LOR;
213OMPI_DECLSPEC extern const Op LXOR;
214OMPI_DECLSPEC extern const Op REPLACE;
215
216// null handles
217OMPI_DECLSPEC extern const Group        GROUP_NULL;
218OMPI_DECLSPEC extern const Win          WIN_NULL;
219OMPI_DECLSPEC extern const Info         INFO_NULL;
220OMPI_DECLSPEC extern Comm_Null          COMM_NULL;
221OMPI_DECLSPEC extern const Datatype     DATATYPE_NULL;
222OMPI_DECLSPEC extern Request            REQUEST_NULL;
223OMPI_DECLSPEC extern const Op           OP_NULL;
224OMPI_DECLSPEC extern const Errhandler   ERRHANDLER_NULL; 
225#if OMPI_PROVIDE_MPI_FILE_INTERFACE
226OMPI_DECLSPEC extern const File         FILE_NULL;
227#endif
228
229// constants specifying empty or ignored input
230OMPI_DECLSPEC extern const char**       ARGV_NULL;
231OMPI_DECLSPEC extern const char***      ARGVS_NULL;
232
233// empty group
234OMPI_DECLSPEC extern const Group  GROUP_EMPTY;
235
236// topologies
237static const int GRAPH = MPI_GRAPH;
238static const int CART = MPI_CART;
239
240#if OMPI_PROVIDE_MPI_FILE_INTERFACE
241// MPI-2 IO
242static const int MODE_CREATE = MPI_MODE_CREATE;
243static const int MODE_RDONLY = MPI_MODE_RDONLY;
244static const int MODE_WRONLY = MPI_MODE_WRONLY;
245static const int MODE_RDWR = MPI_MODE_RDWR;
246static const int MODE_DELETE_ON_CLOSE = MPI_MODE_DELETE_ON_CLOSE;
247static const int MODE_UNIQUE_OPEN = MPI_MODE_UNIQUE_OPEN;
248static const int MODE_EXCL = MPI_MODE_EXCL;
249static const int MODE_APPEND = MPI_MODE_APPEND;
250static const int MODE_SEQUENTIAL = MPI_MODE_SEQUENTIAL;
251
252static const int DISPLACEMENT_CURRENT = MPI_DISPLACEMENT_CURRENT;
253
254#if !defined(OMPI_IGNORE_CXX_SEEK) && OMPI_WANT_MPI_CXX_SEEK
255static const int SEEK_SET = ::SEEK_SET;
256static const int SEEK_CUR = ::SEEK_CUR;
257static const int SEEK_END = ::SEEK_END;
258#endif
259
260static const int MAX_DATAREP_STRING = MPI_MAX_DATAREP_STRING;
261#endif
262
263// one-sided constants
264static const int MODE_NOCHECK = MPI_MODE_NOCHECK;
265static const int MODE_NOPRECEDE = MPI_MODE_NOPRECEDE;
266static const int MODE_NOPUT = MPI_MODE_NOPUT;
267static const int MODE_NOSTORE = MPI_MODE_NOSTORE;
268static const int MODE_NOSUCCEED = MPI_MODE_NOSUCCEED;
269
270static const int LOCK_EXCLUSIVE = MPI_LOCK_EXCLUSIVE;
271static const int LOCK_SHARED = MPI_LOCK_SHARED;
Note: See TracBrowser for help on using the repository browser.