~james-page/ubuntu/precise/openmpi1.5/new

« back to all changes in this revision

Viewing changes to ompi/mpi/cxx/constants.h

  • Committer: Bazaar Package Importer
  • Author(s): Manuel Prinz
  • Date: 2009-04-23 14:01:21 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090423140121-vsi3pqa6g30j4qiy
Tags: 1.3.2-1
* New upstream release. (Closes: #520597, #515116)
  - Manpage and VampirTrace patches removed, included upstream.
* Fixed build issues on Alpha. Huge thanks to Arthur Loiret for providing
  access to his machines for testing! (Closes: #510845, #517543)
* Fixed build issues on Sparc. (Closes: #519725)
* Fixed manpage-has-errors-from-man lintian warnings.
* Faked SONAME change by renaming library package. (Closes: #512616)
* Made libopenmpi-dev depend on libibverbs-dev. (Closes: #522153)
* Support for "nocheck" build option in debian/rules.
* Updated Standards-Version in debian/control.
* Changed section of libopenmpi-dbg to "debug".
* Updated debian/copyright.

* Dirk Eddelbuettel removed himself from Uploaders. The team thanks Dirk
  for his long-term contribution and effort to get Open MPI back to life.
  I personally thank Dirk for encouraging me to become a Debian Developer
  and his support and mentoring on that way and beyond.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
//                         University of Stuttgart.  All rights reserved.
11
11
// Copyright (c) 2004-2005 The Regents of the University of California.
12
12
//                         All rights reserved.
 
13
// Copyright (c) 2008-2009 Cisco Systems, Inc.  All rights reserved.
13
14
// $COPYRIGHT$
14
15
// 
15
16
// Additional copyrights may follow
19
20
 
20
21
 
21
22
// return  codes
22
 
OMPI_DECLSPEC extern const int SUCCESS;
23
 
OMPI_DECLSPEC extern const int ERR_BUFFER;
24
 
OMPI_DECLSPEC extern const int ERR_COUNT;
25
 
OMPI_DECLSPEC extern const int ERR_TYPE;
26
 
OMPI_DECLSPEC extern const int ERR_TAG ;
27
 
OMPI_DECLSPEC extern const int ERR_COMM;
28
 
OMPI_DECLSPEC extern const int ERR_RANK;
29
 
OMPI_DECLSPEC extern const int ERR_REQUEST;
30
 
OMPI_DECLSPEC extern const int ERR_ROOT;
31
 
OMPI_DECLSPEC extern const int ERR_GROUP;
32
 
OMPI_DECLSPEC extern const int ERR_OP;
33
 
OMPI_DECLSPEC extern const int ERR_TOPOLOGY;
34
 
OMPI_DECLSPEC extern const int ERR_DIMS;
35
 
OMPI_DECLSPEC extern const int ERR_ARG;
36
 
OMPI_DECLSPEC extern const int ERR_UNKNOWN;
37
 
OMPI_DECLSPEC extern const int ERR_TRUNCATE;
38
 
OMPI_DECLSPEC extern const int ERR_OTHER;
39
 
OMPI_DECLSPEC extern const int ERR_INTERN;
40
 
OMPI_DECLSPEC extern const int ERR_PENDING;
41
 
OMPI_DECLSPEC extern const int ERR_IN_STATUS;
42
 
OMPI_DECLSPEC extern const int ERR_LASTCODE;
 
23
static const int SUCCESS = MPI_SUCCESS;
 
24
static const int ERR_BUFFER = MPI_ERR_BUFFER;
 
25
static const int ERR_COUNT = MPI_ERR_COUNT;
 
26
static const int ERR_TYPE = MPI_ERR_TYPE;
 
27
static const int ERR_TAG  = MPI_ERR_TAG ;
 
28
static const int ERR_COMM = MPI_ERR_COMM;
 
29
static const int ERR_RANK = MPI_ERR_RANK;
 
30
static const int ERR_REQUEST = MPI_ERR_REQUEST;
 
31
static const int ERR_ROOT = MPI_ERR_ROOT;
 
32
static const int ERR_GROUP = MPI_ERR_GROUP;
 
33
static const int ERR_OP = MPI_ERR_OP;
 
34
static const int ERR_TOPOLOGY = MPI_ERR_TOPOLOGY;
 
35
static const int ERR_DIMS = MPI_ERR_DIMS;
 
36
static const int ERR_ARG = MPI_ERR_ARG;
 
37
static const int ERR_UNKNOWN = MPI_ERR_UNKNOWN;
 
38
static const int ERR_TRUNCATE = MPI_ERR_TRUNCATE;
 
39
static const int ERR_OTHER = MPI_ERR_OTHER;
 
40
static const int ERR_INTERN = MPI_ERR_INTERN;
 
41
static const int ERR_PENDING = MPI_ERR_PENDING;
 
42
static const int ERR_IN_STATUS = MPI_ERR_IN_STATUS;
 
43
static const int ERR_LASTCODE = MPI_ERR_LASTCODE;
43
44
 
44
 
OMPI_DECLSPEC extern const int ERR_BASE;
45
 
OMPI_DECLSPEC extern const int ERR_INFO_VALUE;
46
 
OMPI_DECLSPEC extern const int ERR_INFO_KEY;
47
 
OMPI_DECLSPEC extern const int ERR_INFO_NOKEY;
48
 
OMPI_DECLSPEC extern const int ERR_KEYVAL;
49
 
OMPI_DECLSPEC extern const int ERR_NAME;
50
 
OMPI_DECLSPEC extern const int ERR_NO_MEM;
51
 
OMPI_DECLSPEC extern const int ERR_SERVICE;
52
 
OMPI_DECLSPEC extern const int ERR_SPAWN;
53
 
OMPI_DECLSPEC extern const int ERR_WIN;
 
45
static const int ERR_BASE = MPI_ERR_BASE;
 
46
static const int ERR_INFO_VALUE = MPI_ERR_INFO_VALUE;
 
47
static const int ERR_INFO_KEY = MPI_ERR_INFO_KEY;
 
48
static const int ERR_INFO_NOKEY = MPI_ERR_INFO_NOKEY;
 
49
static const int ERR_KEYVAL = MPI_ERR_KEYVAL;
 
50
static const int ERR_NAME = MPI_ERR_NAME;
 
51
static const int ERR_NO_MEM = MPI_ERR_NO_MEM;
 
52
static const int ERR_SERVICE = MPI_ERR_SERVICE;
 
53
static const int ERR_SPAWN = MPI_ERR_SPAWN;
 
54
static const int ERR_WIN = MPI_ERR_WIN;
54
55
 
55
56
 
56
57
// assorted constants
57
58
OMPI_DECLSPEC extern void* const BOTTOM;
58
59
OMPI_DECLSPEC extern void* const IN_PLACE;
59
 
OMPI_DECLSPEC extern const int PROC_NULL;
60
 
OMPI_DECLSPEC extern const int ANY_SOURCE;
61
 
OMPI_DECLSPEC extern const int ROOT;
62
 
OMPI_DECLSPEC extern const int ANY_TAG;
63
 
OMPI_DECLSPEC extern const int UNDEFINED;
64
 
OMPI_DECLSPEC extern const int BSEND_OVERHEAD;
65
 
OMPI_DECLSPEC extern const int KEYVAL_INVALID;
66
 
OMPI_DECLSPEC extern const int ORDER_C;
67
 
OMPI_DECLSPEC extern const int ORDER_FORTRAN;
68
 
OMPI_DECLSPEC extern const int DISTRIBUTE_BLOCK;
69
 
OMPI_DECLSPEC extern const int DISTRIBUTE_CYCLIC;
70
 
OMPI_DECLSPEC extern const int DISTRIBUTE_NONE;
71
 
OMPI_DECLSPEC extern const int DISTRIBUTE_DFLT_DARG;
 
60
static const int PROC_NULL = MPI_PROC_NULL;
 
61
static const int ANY_SOURCE = MPI_ANY_SOURCE;
 
62
static const int ROOT = MPI_ROOT;
 
63
static const int ANY_TAG = MPI_ANY_TAG;
 
64
static const int UNDEFINED = MPI_UNDEFINED;
 
65
static const int BSEND_OVERHEAD = MPI_BSEND_OVERHEAD;
 
66
static const int KEYVAL_INVALID = MPI_KEYVAL_INVALID;
 
67
static const int ORDER_C = MPI_ORDER_C;
 
68
static const int ORDER_FORTRAN = MPI_ORDER_FORTRAN;
 
69
static const int DISTRIBUTE_BLOCK = MPI_DISTRIBUTE_BLOCK;
 
70
static const int DISTRIBUTE_CYCLIC = MPI_DISTRIBUTE_CYCLIC;
 
71
static const int DISTRIBUTE_NONE = MPI_DISTRIBUTE_NONE;
 
72
static const int DISTRIBUTE_DFLT_DARG = MPI_DISTRIBUTE_DFLT_DARG;
72
73
 
73
74
// error-handling specifiers
74
75
OMPI_DECLSPEC extern const Errhandler  ERRORS_ARE_FATAL;
76
77
OMPI_DECLSPEC extern const Errhandler  ERRORS_THROW_EXCEPTIONS;
77
78
 
78
79
// typeclass definitions for MPI_Type_match_size
79
 
OMPI_DECLSPEC extern const int TYPECLASS_INTEGER;
80
 
OMPI_DECLSPEC extern const int TYPECLASS_REAL;
81
 
OMPI_DECLSPEC extern const int TYPECLASS_COMPLEX;
 
80
static const int TYPECLASS_INTEGER = MPI_TYPECLASS_INTEGER;
 
81
static const int TYPECLASS_REAL = MPI_TYPECLASS_REAL;
 
82
static const int TYPECLASS_COMPLEX = MPI_TYPECLASS_COMPLEX;
82
83
 
83
84
// maximum sizes for strings
84
 
OMPI_DECLSPEC extern const int MAX_PROCESSOR_NAME;
85
 
OMPI_DECLSPEC extern const int MAX_ERROR_STRING;
86
 
OMPI_DECLSPEC extern const int MAX_INFO_KEY;
87
 
OMPI_DECLSPEC extern const int MAX_INFO_VAL;
88
 
OMPI_DECLSPEC extern const int MAX_PORT_NAME;
89
 
OMPI_DECLSPEC extern const int MAX_OBJECT_NAME;
 
85
static const int MAX_PROCESSOR_NAME = MPI_MAX_PROCESSOR_NAME;
 
86
static const int MAX_ERROR_STRING = MPI_MAX_ERROR_STRING;
 
87
static const int MAX_INFO_KEY = MPI_MAX_INFO_KEY;
 
88
static const int MAX_INFO_VAL = MPI_MAX_INFO_VAL;
 
89
static const int MAX_PORT_NAME = MPI_MAX_PORT_NAME;
 
90
static const int MAX_OBJECT_NAME = MPI_MAX_OBJECT_NAME;
90
91
 
91
92
// elementary datatypes (C / C++)
92
93
OMPI_DECLSPEC extern const Datatype CHAR;
149
150
OMPI_DECLSPEC extern const Datatype LB;
150
151
 
151
152
// datatype decoding constants
152
 
OMPI_DECLSPEC extern const int COMBINER_NAMED;
153
 
OMPI_DECLSPEC extern const int COMBINER_DUP;
154
 
OMPI_DECLSPEC extern const int COMBINER_CONTIGUOUS;
155
 
OMPI_DECLSPEC extern const int COMBINER_VECTOR;
156
 
OMPI_DECLSPEC extern const int COMBINER_HVECTOR_INTEGER;
157
 
OMPI_DECLSPEC extern const int COMBINER_HVECTOR;
158
 
OMPI_DECLSPEC extern const int COMBINER_INDEXED;
159
 
OMPI_DECLSPEC extern const int COMBINER_HINDEXED_INTEGER;
160
 
OMPI_DECLSPEC extern const int COMBINER_HINDEXED;
161
 
OMPI_DECLSPEC extern const int COMBINER_INDEXED_BLOCK;
162
 
OMPI_DECLSPEC extern const int COMBINER_STRUCT_INTEGER;
163
 
OMPI_DECLSPEC extern const int COMBINER_STRUCT;
164
 
OMPI_DECLSPEC extern const int COMBINER_SUBARRAY;
165
 
OMPI_DECLSPEC extern const int COMBINER_DARRAY;
166
 
OMPI_DECLSPEC extern const int COMBINER_F90_REAL;
167
 
OMPI_DECLSPEC extern const int COMBINER_F90_COMPLEX;
168
 
OMPI_DECLSPEC extern const int COMBINER_F90_INTEGER;
169
 
OMPI_DECLSPEC extern const int COMBINER_RESIZED;
 
153
static const int COMBINER_NAMED = MPI_COMBINER_NAMED;
 
154
static const int COMBINER_DUP = MPI_COMBINER_DUP;
 
155
static const int COMBINER_CONTIGUOUS = MPI_COMBINER_CONTIGUOUS;
 
156
static const int COMBINER_VECTOR = MPI_COMBINER_VECTOR;
 
157
static const int COMBINER_HVECTOR_INTEGER = MPI_COMBINER_HVECTOR_INTEGER;
 
158
static const int COMBINER_HVECTOR = MPI_COMBINER_HVECTOR;
 
159
static const int COMBINER_INDEXED = MPI_COMBINER_INDEXED;
 
160
static const int COMBINER_HINDEXED_INTEGER = MPI_COMBINER_HINDEXED_INTEGER;
 
161
static const int COMBINER_HINDEXED = MPI_COMBINER_HINDEXED;
 
162
static const int COMBINER_INDEXED_BLOCK = MPI_COMBINER_INDEXED_BLOCK;
 
163
static const int COMBINER_STRUCT_INTEGER = MPI_COMBINER_STRUCT_INTEGER;
 
164
static const int COMBINER_STRUCT = MPI_COMBINER_STRUCT;
 
165
static const int COMBINER_SUBARRAY = MPI_COMBINER_SUBARRAY;
 
166
static const int COMBINER_DARRAY = MPI_COMBINER_DARRAY;
 
167
static const int COMBINER_F90_REAL = MPI_COMBINER_F90_REAL;
 
168
static const int COMBINER_F90_COMPLEX = MPI_COMBINER_F90_COMPLEX;
 
169
static const int COMBINER_F90_INTEGER = MPI_COMBINER_F90_INTEGER;
 
170
static const int COMBINER_RESIZED = MPI_COMBINER_RESIZED;
170
171
 
171
172
// thread constants
172
 
OMPI_DECLSPEC extern const int THREAD_SINGLE;
173
 
OMPI_DECLSPEC extern const int THREAD_FUNNELED;
174
 
OMPI_DECLSPEC extern const int THREAD_SERIALIZED;
175
 
OMPI_DECLSPEC extern const int THREAD_MULTIPLE;
 
173
static const int THREAD_SINGLE = MPI_THREAD_SINGLE;
 
174
static const int THREAD_FUNNELED = MPI_THREAD_FUNNELED;
 
175
static const int THREAD_SERIALIZED = MPI_THREAD_SERIALIZED;
 
176
static const int THREAD_MULTIPLE = MPI_THREAD_MULTIPLE;
176
177
 
177
178
// reserved communicators
178
179
// JGS these can not be const because Set_errhandler is not const
180
181
OMPI_DECLSPEC extern Intracomm COMM_SELF;
181
182
 
182
183
// results of communicator and group comparisons
183
 
OMPI_DECLSPEC extern const int IDENT;
184
 
OMPI_DECLSPEC extern const int CONGRUENT;
185
 
OMPI_DECLSPEC extern const int SIMILAR;
186
 
OMPI_DECLSPEC extern const int UNEQUAL;
 
184
static const int IDENT = MPI_IDENT;
 
185
static const int CONGRUENT = MPI_CONGRUENT;
 
186
static const int SIMILAR = MPI_SIMILAR;
 
187
static const int UNEQUAL = MPI_UNEQUAL;
187
188
 
188
189
// environmental inquiry keys
189
 
OMPI_DECLSPEC extern const int TAG_UB;
190
 
OMPI_DECLSPEC extern const int HOST;
191
 
OMPI_DECLSPEC extern const int IO;
192
 
OMPI_DECLSPEC extern const int WTIME_IS_GLOBAL;
193
 
OMPI_DECLSPEC extern const int APPNUM;
194
 
OMPI_DECLSPEC extern const int LASTUSEDCODE;
195
 
OMPI_DECLSPEC extern const int UNIVERSE_SIZE;
196
 
OMPI_DECLSPEC extern const int WIN_BASE;
197
 
OMPI_DECLSPEC extern const int WIN_SIZE;
198
 
OMPI_DECLSPEC extern const int WIN_DISP_UNIT;
 
190
static const int TAG_UB = MPI_TAG_UB;
 
191
static const int HOST = MPI_HOST;
 
192
static const int IO = MPI_IO;
 
193
static const int WTIME_IS_GLOBAL = MPI_WTIME_IS_GLOBAL;
 
194
static const int APPNUM = MPI_APPNUM;
 
195
static const int LASTUSEDCODE = MPI_LASTUSEDCODE;
 
196
static const int UNIVERSE_SIZE = MPI_UNIVERSE_SIZE;
 
197
static const int WIN_BASE = MPI_WIN_BASE;
 
198
static const int WIN_SIZE = MPI_WIN_SIZE;
 
199
static const int WIN_DISP_UNIT = MPI_WIN_DISP_UNIT;
199
200
 
200
201
// collective operations
201
202
OMPI_DECLSPEC extern const Op MAX;
233
234
OMPI_DECLSPEC extern const Group  GROUP_EMPTY;
234
235
 
235
236
// topologies
236
 
OMPI_DECLSPEC extern const int GRAPH;
237
 
OMPI_DECLSPEC extern const int CART;
 
237
static const int GRAPH = MPI_GRAPH;
 
238
static const int CART = MPI_CART;
238
239
 
 
240
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
239
241
// MPI-2 IO
240
 
OMPI_DECLSPEC extern const int MODE_CREATE;
241
 
OMPI_DECLSPEC extern const int MODE_RDONLY;
242
 
OMPI_DECLSPEC extern const int MODE_WRONLY;
243
 
OMPI_DECLSPEC extern const int MODE_RDWR;
244
 
OMPI_DECLSPEC extern const int MODE_DELETE_ON_CLOSE;
245
 
OMPI_DECLSPEC extern const int MODE_UNIQUE_OPEN;
246
 
OMPI_DECLSPEC extern const int MODE_EXCL;
247
 
OMPI_DECLSPEC extern const int MODE_APPEND;
248
 
OMPI_DECLSPEC extern const int MODE_SEQUENTIAL;
249
 
 
250
 
OMPI_DECLSPEC extern const int DISPLACEMENT_CURRENT;
251
 
 
252
 
#if OMPI_PROVIDE_MPI_FILE_INTERFACE && !defined(OMPI_IGNORE_CXX_SEEK) && OMPI_WANT_MPI_CXX_SEEK
253
 
OMPI_DECLSPEC extern const int SEEK_SET;
254
 
OMPI_DECLSPEC extern const int SEEK_CUR;
255
 
OMPI_DECLSPEC extern const int SEEK_END;
256
 
#endif
257
 
 
258
 
OMPI_DECLSPEC extern const int MAX_DATAREP_STRING;
 
242
static const int MODE_CREATE = MPI_MODE_CREATE;
 
243
static const int MODE_RDONLY = MPI_MODE_RDONLY;
 
244
static const int MODE_WRONLY = MPI_MODE_WRONLY;
 
245
static const int MODE_RDWR = MPI_MODE_RDWR;
 
246
static const int MODE_DELETE_ON_CLOSE = MPI_MODE_DELETE_ON_CLOSE;
 
247
static const int MODE_UNIQUE_OPEN = MPI_MODE_UNIQUE_OPEN;
 
248
static const int MODE_EXCL = MPI_MODE_EXCL;
 
249
static const int MODE_APPEND = MPI_MODE_APPEND;
 
250
static const int MODE_SEQUENTIAL = MPI_MODE_SEQUENTIAL;
 
251
 
 
252
static const int DISPLACEMENT_CURRENT = MPI_DISPLACEMENT_CURRENT;
 
253
 
 
254
#if !defined(OMPI_IGNORE_CXX_SEEK) && OMPI_WANT_MPI_CXX_SEEK
 
255
static const int SEEK_SET = ::SEEK_SET;
 
256
static const int SEEK_CUR = ::SEEK_CUR;
 
257
static const int SEEK_END = ::SEEK_END;
 
258
#endif
 
259
 
 
260
static const int MAX_DATAREP_STRING = MPI_MAX_DATAREP_STRING;
 
261
#endif
259
262
 
260
263
// one-sided constants
261
 
OMPI_DECLSPEC extern const int MODE_NOCHECK;
262
 
OMPI_DECLSPEC extern const int MODE_NOPRECEDE;
263
 
OMPI_DECLSPEC extern const int MODE_NOPUT;
264
 
OMPI_DECLSPEC extern const int MODE_NOSTORE;
265
 
OMPI_DECLSPEC extern const int MODE_NOSUCCEED;
 
264
static const int MODE_NOCHECK = MPI_MODE_NOCHECK;
 
265
static const int MODE_NOPRECEDE = MPI_MODE_NOPRECEDE;
 
266
static const int MODE_NOPUT = MPI_MODE_NOPUT;
 
267
static const int MODE_NOSTORE = MPI_MODE_NOSTORE;
 
268
static const int MODE_NOSUCCEED = MPI_MODE_NOSUCCEED;
266
269
 
267
 
OMPI_DECLSPEC extern const int LOCK_EXCLUSIVE;
268
 
OMPI_DECLSPEC extern const int LOCK_SHARED;
 
270
static const int LOCK_EXCLUSIVE = MPI_LOCK_EXCLUSIVE;
 
271
static const int LOCK_SHARED = MPI_LOCK_SHARED;