openmpi  3.1.6
About: Open MPI is a high performance Message Passing Interface (MPI) library project combining technologies and resources from several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best MPI library available. 3.x series.
  Fossies Dox: openmpi-3.1.6.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

errcode.c
Go to the documentation of this file.
1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
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-2017 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) 2006 University of Houston. All rights reserved.
14  * Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
15  * Copyright (c) 2013 Los Alamos National Security, LLC. All rights
16  * reserved.
17  * Copyright (c) 2015 Research Organization for Information Science
18  * and Technology (RIST). All rights reserved.
19  * $COPYRIGHT$
20  *
21  * Additional copyrights may follow
22  *
23  * $HEADER$
24  */
25 
26 #include "ompi_config.h"
27 
28 #include <stdio.h>
29 #include <string.h>
30 
31 #include "mpi.h"
32 
34 #include "ompi/constants.h"
35 
36 /* Table holding all error codes */
40 
61 
116 
117 static void ompi_mpi_errcode_construct(ompi_mpi_errcode_t* errcode);
118 static void ompi_mpi_errcode_destruct(ompi_mpi_errcode_t* errcode);
119 
121 
122 #define CONSTRUCT_ERRCODE(VAR, ERRCODE, TXT ) \
123 do { \
124  OBJ_CONSTRUCT(&(VAR), ompi_mpi_errcode_t); \
125  (VAR).code = (ERRCODE); \
126  (VAR).cls = (ERRCODE); \
127  strncpy((VAR).errstring, (TXT), MPI_MAX_ERROR_STRING); \
128  opal_pointer_array_set_item(&ompi_mpi_errcodes, (ERRCODE), &(VAR)); \
129 } while (0)
130 
132 {
133  /* Initialize the pointer array, which will hold the references to
134  the error objects */
137  OMPI_FORTRAN_HANDLE_MAX, 32) ) {
138  return OMPI_ERROR;
139  }
140 
141  /* Initialize now each predefined error code and register
142  it in the pointer-array. */
143  CONSTRUCT_ERRCODE( ompi_success, MPI_SUCCESS, "MPI_SUCCESS: no errors" );
144  CONSTRUCT_ERRCODE( ompi_err_buffer, MPI_ERR_BUFFER, "MPI_ERR_BUFFER: invalid buffer pointer");
145  CONSTRUCT_ERRCODE( ompi_err_count, MPI_ERR_COUNT, "MPI_ERR_COUNT: invalid count argument" );
146  CONSTRUCT_ERRCODE( ompi_err_type, MPI_ERR_TYPE, "MPI_ERR_TYPE: invalid datatype" );
147  CONSTRUCT_ERRCODE( ompi_err_tag, MPI_ERR_TAG, "MPI_ERR_TAG: invalid tag" );
148  CONSTRUCT_ERRCODE( ompi_err_comm, MPI_ERR_COMM, "MPI_ERR_COMM: invalid communicator" );
149  CONSTRUCT_ERRCODE( ompi_err_rank, MPI_ERR_RANK, "MPI_ERR_RANK: invalid rank" );
150  CONSTRUCT_ERRCODE( ompi_err_request, MPI_ERR_REQUEST, "MPI_ERR_REQUEST: invalid request" );
151  CONSTRUCT_ERRCODE( ompi_err_root, MPI_ERR_ROOT, "MPI_ERR_ROOT: invalid root" );
152  CONSTRUCT_ERRCODE( ompi_err_group, MPI_ERR_GROUP, "MPI_ERR_GROUP: invalid group" );
153  CONSTRUCT_ERRCODE( ompi_err_op, MPI_ERR_OP, "MPI_ERR_OP: invalid reduce operation" );
154  CONSTRUCT_ERRCODE( ompi_err_topology, MPI_ERR_TOPOLOGY, "MPI_ERR_TOPOLOGY: invalid communicator topology" );
155  CONSTRUCT_ERRCODE( ompi_err_dims, MPI_ERR_DIMS, "MPI_ERR_DIMS: invalid topology dimension" );
156  CONSTRUCT_ERRCODE( ompi_err_arg, MPI_ERR_ARG, "MPI_ERR_ARG: invalid argument of some other kind" );
157  CONSTRUCT_ERRCODE( ompi_err_unknown, MPI_ERR_UNKNOWN, "MPI_ERR_UNKNOWN: unknown error" );
158  CONSTRUCT_ERRCODE( ompi_err_truncate, MPI_ERR_TRUNCATE, "MPI_ERR_TRUNCATE: message truncated" );
159  CONSTRUCT_ERRCODE( ompi_err_other, MPI_ERR_OTHER, "MPI_ERR_OTHER: known error not in list" );
160  CONSTRUCT_ERRCODE( ompi_err_intern, MPI_ERR_INTERN, "MPI_ERR_INTERN: internal error" );
161  CONSTRUCT_ERRCODE( ompi_err_in_status, MPI_ERR_IN_STATUS, "MPI_ERR_IN_STATUS: error code in status" );
162  CONSTRUCT_ERRCODE( ompi_err_pending, MPI_ERR_PENDING, "MPI_ERR_PENDING: pending request" );
163  CONSTRUCT_ERRCODE( ompi_err_access, MPI_ERR_ACCESS, "MPI_ERR_ACCESS: invalid access mode" );
164  CONSTRUCT_ERRCODE( ompi_err_amode, MPI_ERR_AMODE, "MPI_ERR_AMODE: invalid amode argument" );
165  CONSTRUCT_ERRCODE( ompi_err_assert, MPI_ERR_ASSERT, "MPI_ERR_ASSERT: invalid assert argument" );
166  CONSTRUCT_ERRCODE( ompi_err_bad_file, MPI_ERR_BAD_FILE, "MPI_ERR_BAD_FILE: bad file" );
167  CONSTRUCT_ERRCODE( ompi_err_base, MPI_ERR_BASE, "MPI_ERR_BASE: invalid base" );
168  CONSTRUCT_ERRCODE( ompi_err_conversion, MPI_ERR_CONVERSION, "MPI_ERR_CONVERSION: error in data conversion" );
169  CONSTRUCT_ERRCODE( ompi_err_disp, MPI_ERR_DISP, "MPI_ERR_DISP: invalid displacement" );
170  CONSTRUCT_ERRCODE( ompi_err_dup_datarep, MPI_ERR_DUP_DATAREP, "MPI_ERR_DUP_DATAREP: error duplicating data representation" );
171  CONSTRUCT_ERRCODE( ompi_err_file_exists, MPI_ERR_FILE_EXISTS, "MPI_ERR_FILE_EXISTS: file exists alreay" );
172  CONSTRUCT_ERRCODE( ompi_err_file_in_use, MPI_ERR_FILE_IN_USE, "MPI_ERR_FILE_IN_USE: file already in use" );
173  CONSTRUCT_ERRCODE( ompi_err_file, MPI_ERR_FILE, "MPI_ERR_FILE: invalid file" );
174  CONSTRUCT_ERRCODE( ompi_err_info_key, MPI_ERR_INFO_KEY, "MPI_ERR_INFO_KEY: invalid key argument for info object" );
175  CONSTRUCT_ERRCODE( ompi_err_info_nokey, MPI_ERR_INFO_NOKEY, "MPI_ERR_INFO_NOKEY: unknown key for given info object" );
176  CONSTRUCT_ERRCODE( ompi_err_info_value, MPI_ERR_INFO_VALUE, "MPI_ERR_INFO_VALUE: invalid value argument for info object" );
177  CONSTRUCT_ERRCODE( ompi_err_info, MPI_ERR_INFO, "MPI_ERR_INFO: invalid info object" );
178  CONSTRUCT_ERRCODE( ompi_err_io, MPI_ERR_IO, "MPI_ERR_IO: input/output error" );
179  CONSTRUCT_ERRCODE( ompi_err_keyval, MPI_ERR_KEYVAL, "MPI_ERR_KEYVAL: invalid key value" );
180  CONSTRUCT_ERRCODE( ompi_err_locktype, MPI_ERR_LOCKTYPE, "MPI_ERR_LOCKTYPE: invalid lock" );
181  CONSTRUCT_ERRCODE( ompi_err_name, MPI_ERR_NAME, "MPI_ERR_NAME: invalid name argument" );
182  CONSTRUCT_ERRCODE( ompi_err_no_mem, MPI_ERR_NO_MEM, "MPI_ERR_NO_MEM: out of memory" );
183  CONSTRUCT_ERRCODE( ompi_err_not_same, MPI_ERR_NOT_SAME, "MPI_ERR_NOT_SAME: objects are not identical");
184  CONSTRUCT_ERRCODE( ompi_err_no_space, MPI_ERR_NO_SPACE, "MPI_ERR_NO_SPACE: no space left on device" );
185  CONSTRUCT_ERRCODE( ompi_err_no_such_file, MPI_ERR_NO_SUCH_FILE, "MPI_ERR_NO_SUCH_FILE: no such file or directory" );
186  CONSTRUCT_ERRCODE( ompi_err_port, MPI_ERR_PORT, "MPI_ERR_PORT: invalid port" );
187  CONSTRUCT_ERRCODE( ompi_err_quota, MPI_ERR_QUOTA, "MPI_ERR_QUOTA: out of quota" );
188  CONSTRUCT_ERRCODE( ompi_err_read_only, MPI_ERR_READ_ONLY, "MPI_ERR_READ_ONLY: file is read only" );
189  CONSTRUCT_ERRCODE( ompi_err_rma_conflict, MPI_ERR_RMA_CONFLICT, "MPI_ERR_RMA_CONFLICT: rma conflict during operation" );
190  CONSTRUCT_ERRCODE( ompi_err_rma_sync, MPI_ERR_RMA_SYNC, "MPI_ERR_RMA_SYNC: error executing rma sync" );
191  CONSTRUCT_ERRCODE( ompi_err_service, MPI_ERR_SERVICE, "MPI_ERR_SERVICE: unknown service name" );
192  CONSTRUCT_ERRCODE( ompi_err_size, MPI_ERR_SIZE, "MPI_ERR_SIZE: invalid size" );
193  CONSTRUCT_ERRCODE( ompi_err_spawn, MPI_ERR_SPAWN, "MPI_ERR_SPAWN: could not spawn processes" );
194  CONSTRUCT_ERRCODE( ompi_err_unsupported_datarep, MPI_ERR_UNSUPPORTED_DATAREP, "MPI_ERR_UNSUPPORTED_DATAREP: data representation not supported" );
195  CONSTRUCT_ERRCODE( ompi_err_unsupported_operation, MPI_ERR_UNSUPPORTED_OPERATION, "MPI_ERR_UNSUPPORTED_OPERATION: operation not supported" );
196  CONSTRUCT_ERRCODE( ompi_err_win, MPI_ERR_WIN, "MPI_ERR_WIN: invalid window" );
197  CONSTRUCT_ERRCODE( ompi_t_err_memory, MPI_T_ERR_MEMORY, "MPI_T_ERR_MEMORY: out of memory" );
198  CONSTRUCT_ERRCODE( ompi_t_err_not_initialized, MPI_T_ERR_NOT_INITIALIZED, "MPI_T_ERR_NOT_INITIALIZED: interface not initialized" );
199  CONSTRUCT_ERRCODE( ompi_t_err_cannot_init, MPI_T_ERR_CANNOT_INIT, "MPI_T_ERR_CANNOT_INIT: interface not in the state to be initialized" );
200  CONSTRUCT_ERRCODE( ompi_t_err_invalid_index, MPI_T_ERR_INVALID_INDEX, "MPI_T_ERR_INVALID_INDEX: invalid index" );
201  CONSTRUCT_ERRCODE( ompi_t_err_invalid_item, MPI_T_ERR_INVALID_ITEM, "MPI_T_ERR_INVALID_ITEM: the item index queried is out of range" );
202  CONSTRUCT_ERRCODE( ompi_t_err_invalid_handle, MPI_T_ERR_INVALID_HANDLE, "MPI_T_ERR_INVALID_HANDLE: the handle is invalid" );
203  CONSTRUCT_ERRCODE( ompi_t_err_out_of_handles, MPI_T_ERR_OUT_OF_HANDLES, "MPI_T_ERR_OUT_OF_HANDLES: no more handles available" );
204  CONSTRUCT_ERRCODE( ompi_t_err_out_of_sessions, MPI_T_ERR_OUT_OF_SESSIONS, "MPI_T_ERR_OUT_OF_SESSIONS: no more sessions available" );
205  CONSTRUCT_ERRCODE( ompi_t_err_invalid_session, MPI_T_ERR_INVALID_SESSION, "MPI_T_ERR_INVALID_SESSION: session argument is not a valid session" );
206  CONSTRUCT_ERRCODE( ompi_t_err_cvar_set_not_now, MPI_T_ERR_CVAR_SET_NOT_NOW, "MPI_T_ERR_CVAR_SET_NOT_NOW: variable cannot be set at this moment" );
207  CONSTRUCT_ERRCODE( ompi_t_err_cvar_set_never, MPI_T_ERR_CVAR_SET_NEVER, "MPI_T_ERR_CVAR_SET_NEVER: variable cannot be set until end of execution" );
208  CONSTRUCT_ERRCODE( ompi_t_err_pvar_no_startstop, MPI_T_ERR_PVAR_NO_STARTSTOP, "MPI_T_ERR_PVAR_NO_STARTSTOP: variable cannot be started or stopped" );
209  CONSTRUCT_ERRCODE( ompi_t_err_pvar_no_write, MPI_T_ERR_PVAR_NO_WRITE, "MPI_T_ERR_PVAR_NO_WRITE: variable cannot be written or reset" );
210  CONSTRUCT_ERRCODE( ompi_t_err_pvar_no_atomic, MPI_T_ERR_PVAR_NO_ATOMIC, "MPI_T_ERR_PVAR_NO_ATOMIC: variable cannot be read and written atomically" );
211  CONSTRUCT_ERRCODE( ompi_err_rma_range, MPI_ERR_RMA_RANGE, "MPI_ERR_RMA_RANGE: invalid RMA address range" );
212  CONSTRUCT_ERRCODE( ompi_err_rma_attach, MPI_ERR_RMA_ATTACH, "MPI_ERR_RMA_ATTACH: Could not attach RMA segment" );
213  CONSTRUCT_ERRCODE( ompi_err_rma_flavor, MPI_ERR_RMA_FLAVOR, "MPI_ERR_RMA_FLAVOR: Invalid type of window" );
214  CONSTRUCT_ERRCODE( ompi_err_rma_shared, MPI_ERR_RMA_SHARED, "MPI_ERR_RMA_SHARED: Memory cannot be shared" );
215  CONSTRUCT_ERRCODE( ompi_t_err_invalid, MPI_T_ERR_INVALID, "MPI_T_ERR_INVALID: Invalid use of the interface or bad parameter value(s)" );
216  CONSTRUCT_ERRCODE( ompi_t_err_invalid_name, MPI_T_ERR_INVALID_NAME, "MPI_T_ERR_INVALID_NAME: The variable or category name is invalid" );
217 
218  /* Per MPI-3 p353:27-32, MPI_LASTUSEDCODE must be >=
219  MPI_ERR_LASTCODE. So just start it as == MPI_ERR_LASTCODE. */
220  ompi_mpi_errcode_lastused = MPI_ERR_LASTCODE;
221  ompi_mpi_errcode_lastpredefined = MPI_ERR_LASTCODE;
222  return OMPI_SUCCESS;
223 }
224 
226 {
227  int i;
228  ompi_mpi_errcode_t *errc;
229 
231  /*
232  * there are some user defined error-codes, which
233  * we have to free.
234  */
236  OBJ_RELEASE (errc);
237  }
238 
313 
315  return OMPI_SUCCESS;
316 }
317 
318 int ompi_mpi_errcode_add(int errclass )
319 {
320  ompi_mpi_errcode_t *newerrcode;
321 
322  newerrcode = OBJ_NEW(ompi_mpi_errcode_t);
323  newerrcode->code = (ompi_mpi_errcode_lastused+1);
324  newerrcode->cls = errclass;
325  opal_pointer_array_set_item(&ompi_mpi_errcodes, newerrcode->code, newerrcode);
326 
328  return newerrcode->code;
329 }
330 
332 {
333  ompi_mpi_errcode_t *newerrcode;
334 
335  newerrcode = OBJ_NEW(ompi_mpi_errcode_t);
336  newerrcode->cls = ( ompi_mpi_errcode_lastused+1);
337  opal_pointer_array_set_item(&ompi_mpi_errcodes, newerrcode->cls, newerrcode);
338 
340  return newerrcode->cls;
341 }
342 
343 int ompi_mpi_errnum_add_string(int errnum, const char *errstring, int len)
344 {
345  ompi_mpi_errcode_t *errcodep;
346 
348  if ( NULL == errcodep ) {
349  return OMPI_ERROR;
350  }
351 
352  if ( MPI_MAX_ERROR_STRING > len ) {
353  len = MPI_MAX_ERROR_STRING;
354  }
355 
356  strncpy ( errcodep->errstring, errstring, len );
357  return OMPI_SUCCESS;
358 }
359 
361 {
362  errcode->code = MPI_UNDEFINED;
363  errcode->cls = MPI_UNDEFINED;
364  memset ( errcode->errstring, 0, MPI_MAX_ERROR_STRING);
365  return;
366 }
367 
369 {
370  if (MPI_UNDEFINED != errcode->code) {
372  } else if (MPI_UNDEFINED != errcode->cls) {
374  }
375 }
ompi_err_tag
static ompi_mpi_errcode_t ompi_err_tag
Definition: errcode.c:45
ompi_err_conversion
static ompi_mpi_errcode_t ompi_err_conversion
Definition: errcode.c:67
ompi_success
static ompi_mpi_errcode_t ompi_success
Definition: errcode.c:41
ompi_err_io
static ompi_mpi_errcode_t ompi_err_io
Definition: errcode.c:77
ompi_t_err_invalid_item
static ompi_mpi_errcode_t ompi_t_err_invalid_item
Definition: errcode.c:100
errcode.h
ompi_err_dup_datarep
static ompi_mpi_errcode_t ompi_err_dup_datarep
Definition: errcode.c:69
ompi_t_err_cvar_set_not_now
static ompi_mpi_errcode_t ompi_t_err_cvar_set_not_now
Definition: errcode.c:105
OBJ_CONSTRUCT
#define OBJ_CONSTRUCT(object, type)
Construct (initialize) objects that are not dynamically allocated.
Definition: opal_object.h:356
strncpy
#define strncpy
Definition: strncpy.h:33
ompi_err_rma_sync
static ompi_mpi_errcode_t ompi_err_rma_sync
Definition: errcode.c:89
ompi_err_other
static ompi_mpi_errcode_t ompi_err_other
Definition: errcode.c:57
ompi_err_file
static ompi_mpi_errcode_t ompi_err_file
Definition: errcode.c:72
ompi_err_buffer
static ompi_mpi_errcode_t ompi_err_buffer
Definition: errcode.c:42
ompi_err_disp
static ompi_mpi_errcode_t ompi_err_disp
Definition: errcode.c:68
ompi_mpi_errcode_t::code
int code
Definition: errcode.h:46
ompi_mpi_errcode_t::cls
int cls
Definition: errcode.h:47
ompi_err_no_space
static ompi_mpi_errcode_t ompi_err_no_space
Definition: errcode.c:83
ompi_err_group
static ompi_mpi_errcode_t ompi_err_group
Definition: errcode.c:50
ompi_err_no_such_file
static ompi_mpi_errcode_t ompi_err_no_such_file
Definition: errcode.c:84
ompi_t_err_cannot_init
static ompi_mpi_errcode_t ompi_t_err_cannot_init
Definition: errcode.c:98
ompi_err_dims
static ompi_mpi_errcode_t ompi_err_dims
Definition: errcode.c:53
ompi_t_err_pvar_no_startstop
static ompi_mpi_errcode_t ompi_t_err_pvar_no_startstop
Definition: errcode.c:107
ompi_err_info_key
static ompi_mpi_errcode_t ompi_err_info_key
Definition: errcode.c:73
OBJ_DESTRUCT
#define OBJ_DESTRUCT(object)
Destruct (finalize) an object that is not dynamically allocated.
Definition: opal_object.h:388
ompi_err_unknown
ompi_mpi_errcode_t ompi_err_unknown
Definition: errcode.c:55
ompi_err_request
static ompi_mpi_errcode_t ompi_err_request
Definition: errcode.c:48
ompi_err_size
static ompi_mpi_errcode_t ompi_err_size
Definition: errcode.c:91
ompi_t_err_invalid_index
static ompi_mpi_errcode_t ompi_t_err_invalid_index
Definition: errcode.c:99
ompi_err_file_exists
static ompi_mpi_errcode_t ompi_err_file_exists
Definition: errcode.c:70
CONSTRUCT_ERRCODE
#define CONSTRUCT_ERRCODE(VAR, ERRCODE, TXT)
Definition: errcode.c:122
ompi_err_bad_file
static ompi_mpi_errcode_t ompi_err_bad_file
Definition: errcode.c:65
ompi_err_root
static ompi_mpi_errcode_t ompi_err_root
Definition: errcode.c:49
ompi_t_err_pvar_no_write
static ompi_mpi_errcode_t ompi_t_err_pvar_no_write
Definition: errcode.c:108
ompi_t_err_cvar_set_never
static ompi_mpi_errcode_t ompi_t_err_cvar_set_never
Definition: errcode.c:106
ompi_err_file_in_use
static ompi_mpi_errcode_t ompi_err_file_in_use
Definition: errcode.c:71
ompi_mpi_errcode_t
Back-end type for MPI error codes.
Definition: errcode.h:44
ompi_err_rma_shared
static ompi_mpi_errcode_t ompi_err_rma_shared
Definition: errcode.c:113
opal_object_t
Base object.
Definition: opal_object.h:194
OMPI_SUCCESS
@ OMPI_SUCCESS
Definition: constants.h:35
ompi_err_amode
static ompi_mpi_errcode_t ompi_err_amode
Definition: errcode.c:63
ompi_err_read_only
static ompi_mpi_errcode_t ompi_err_read_only
Definition: errcode.c:87
ompi_err_count
static ompi_mpi_errcode_t ompi_err_count
Definition: errcode.c:43
ompi_err_rma_conflict
static ompi_mpi_errcode_t ompi_err_rma_conflict
Definition: errcode.c:88
ompi_err_quota
static ompi_mpi_errcode_t ompi_err_quota
Definition: errcode.c:86
constants.h
ompi_t_err_invalid
static ompi_mpi_errcode_t ompi_t_err_invalid
Definition: errcode.c:114
ompi_err_rank
static ompi_mpi_errcode_t ompi_err_rank
Definition: errcode.c:47
ompi_err_unsupported_operation
static ompi_mpi_errcode_t ompi_err_unsupported_operation
Definition: errcode.c:94
ompi_t_err_invalid_session
static ompi_mpi_errcode_t ompi_t_err_invalid_session
Definition: errcode.c:104
ompi_err_not_same
static ompi_mpi_errcode_t ompi_err_not_same
Definition: errcode.c:82
ompi_err_name
static ompi_mpi_errcode_t ompi_err_name
Definition: errcode.c:80
ompi_errcode_intern_t::errstring
char errstring[64]
Definition: errcode-internal.h:48
ompi_mpi_errcode_t::errstring
char errstring[MPI_MAX_ERROR_STRING]
Definition: errcode.h:48
ompi_err_type
static ompi_mpi_errcode_t ompi_err_type
Definition: errcode.c:44
ompi_t_err_invalid_handle
static ompi_mpi_errcode_t ompi_t_err_invalid_handle
Definition: errcode.c:101
ompi_err_service
static ompi_mpi_errcode_t ompi_err_service
Definition: errcode.c:90
opal_pointer_array_set_item
int opal_pointer_array_set_item(opal_pointer_array_t *table, int index, void *value)
Set the value of the dynamic array at a specified location.
Definition: opal_pointer_array.c:271
ompi_err_op
static ompi_mpi_errcode_t ompi_err_op
Definition: errcode.c:51
ompi_t_err_out_of_sessions
static ompi_mpi_errcode_t ompi_t_err_out_of_sessions
Definition: errcode.c:103
ompi_t_err_pvar_no_atomic
static ompi_mpi_errcode_t ompi_t_err_pvar_no_atomic
Definition: errcode.c:109
ompi_err_info
static ompi_mpi_errcode_t ompi_err_info
Definition: errcode.c:76
ompi_t_err_not_initialized
static ompi_mpi_errcode_t ompi_t_err_not_initialized
Definition: errcode.c:97
OBJ_NEW
#define OBJ_NEW(type)
Definition: opal_object.h:272
ompi_err_base
static ompi_mpi_errcode_t ompi_err_base
Definition: errcode.c:66
ompi_err_keyval
static ompi_mpi_errcode_t ompi_err_keyval
Definition: errcode.c:78
ompi_mpi_errcode_init
int ompi_mpi_errcode_init(void)
Initialize the error codes.
Definition: errcode.c:131
ompi_err_unsupported_datarep
static ompi_mpi_errcode_t ompi_err_unsupported_datarep
Definition: errcode.c:93
opal_pointer_array_init
int opal_pointer_array_init(opal_pointer_array_t *array, int initial_allocation, int max_size, int block_size)
initialize an array object
Definition: opal_pointer_array.c:178
ompi_err_spawn
static ompi_mpi_errcode_t ompi_err_spawn
Definition: errcode.c:92
OPAL_SUCCESS
@ OPAL_SUCCESS
Definition: constants.h:29
ompi_err_assert
static ompi_mpi_errcode_t ompi_err_assert
Definition: errcode.c:64
ompi_err_access
static ompi_mpi_errcode_t ompi_err_access
Definition: errcode.c:62
ompi_mpi_errcode_destruct
static void ompi_mpi_errcode_destruct(ompi_mpi_errcode_t *errcode)
Definition: errcode.c:368
ompi_err_rma_range
static ompi_mpi_errcode_t ompi_err_rma_range
Definition: errcode.c:110
ompi_err_info_value
static ompi_mpi_errcode_t ompi_err_info_value
Definition: errcode.c:75
ompi_err_arg
static ompi_mpi_errcode_t ompi_err_arg
Definition: errcode.c:54
ompi_err_rma_flavor
static ompi_mpi_errcode_t ompi_err_rma_flavor
Definition: errcode.c:112
OBJ_CLASS_INSTANCE
OBJ_CLASS_INSTANCE(ompi_mpi_errcode_t, opal_object_t, ompi_mpi_errcode_construct, ompi_mpi_errcode_destruct)
ompi_err_rma_attach
static ompi_mpi_errcode_t ompi_err_rma_attach
Definition: errcode.c:111
ompi_err_locktype
static ompi_mpi_errcode_t ompi_err_locktype
Definition: errcode.c:79
ompi_mpi_errcode_finalize
int ompi_mpi_errcode_finalize(void)
Finalize the error codes.
Definition: errcode.c:225
ompi_mpi_errcode_construct
static void ompi_mpi_errcode_construct(ompi_mpi_errcode_t *errcode)
Definition: errcode.c:360
ompi_t_err_out_of_handles
static ompi_mpi_errcode_t ompi_t_err_out_of_handles
Definition: errcode.c:102
ompi_err_comm
static ompi_mpi_errcode_t ompi_err_comm
Definition: errcode.c:46
ompi_err_port
static ompi_mpi_errcode_t ompi_err_port
Definition: errcode.c:85
ompi_mpi_errcode_lastpredefined
int ompi_mpi_errcode_lastpredefined
Definition: errcode.c:39
opal_pointer_array_t
dynamic pointer array
Definition: opal_pointer_array.h:43
OMPI_ERROR
@ OMPI_ERROR
Definition: constants.h:36
opal_pointer_array_get_item
static void * opal_pointer_array_get_item(opal_pointer_array_t *table, int element_index)
Get the value of an element in array.
Definition: opal_pointer_array.h:125
ompi_err_intern
static ompi_mpi_errcode_t ompi_err_intern
Definition: errcode.c:58
ompi_mpi_errcode_lastused
int ompi_mpi_errcode_lastused
Definition: errcode.c:38
ompi_config.h
ompi_mpi_errcode_add
int ompi_mpi_errcode_add(int errclass)
Add an error code.
Definition: errcode.c:318
ompi_mpi_errnum_add_string
int ompi_mpi_errnum_add_string(int errnum, const char *errstring, int len)
Add an error string to an error code.
Definition: errcode.c:343
ompi_err_topology
static ompi_mpi_errcode_t ompi_err_topology
Definition: errcode.c:52
ompi_err_no_mem
static ompi_mpi_errcode_t ompi_err_no_mem
Definition: errcode.c:81
ompi_mpi_errcodes
opal_pointer_array_t ompi_mpi_errcodes
Definition: errcode.c:37
ompi_err_pending
static ompi_mpi_errcode_t ompi_err_pending
Definition: errcode.c:60
OBJ_RELEASE
#define OBJ_RELEASE(object)
Release an object (by decrementing its reference count).
Definition: opal_object.h:338
ompi_t_err_memory
static ompi_mpi_errcode_t ompi_t_err_memory
Definition: errcode.c:96
NULL
#define NULL
Copyright (C) 2000-2004 by Etnus, LLC.
Definition: ompi_msgq_dll.c:136
ompi_err_in_status
static ompi_mpi_errcode_t ompi_err_in_status
Definition: errcode.c:59
ompi_mpi_errclass_add
int ompi_mpi_errclass_add(void)
Add an error class.
Definition: errcode.c:331
ompi_err_truncate
static ompi_mpi_errcode_t ompi_err_truncate
Definition: errcode.c:56
ompi_t_err_invalid_name
static ompi_mpi_errcode_t ompi_t_err_invalid_name
Definition: errcode.c:115
ompi_err_info_nokey
static ompi_mpi_errcode_t ompi_err_info_nokey
Definition: errcode.c:74
ompi_err_win
static ompi_mpi_errcode_t ompi_err_win
Definition: errcode.c:95