Skip to content

Commit 263b279

Browse files
authored
Merge pull request #11983 from bosilca/topic/add_missing_MPI_ERR_VALUE_TOO_LARGE
Add support for MPI_ERR_VALUE_TOO_LARGE
2 parents a1b02c6 + d1d9ad6 commit 263b279

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

ompi/errhandler/errcode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ static ompi_mpi_errcode_t ompi_err_proc_fail_pending;
126126
static ompi_mpi_errcode_t ompi_err_revoked;
127127
#endif
128128
static ompi_mpi_errcode_t ompi_err_session;
129+
static ompi_mpi_errcode_t ompi_err_value_too_large;
129130

130131
static void ompi_mpi_errcode_construct(ompi_mpi_errcode_t* errcode);
131132
static void ompi_mpi_errcode_destruct(ompi_mpi_errcode_t* errcode);
@@ -243,6 +244,7 @@ int ompi_mpi_errcode_init (void)
243244
CONSTRUCT_ERRCODE( ompi_err_revoked, MPI_ERR_REVOKED, "MPI_ERR_REVOKED: Communication Object Revoked" );
244245
#endif
245246
CONSTRUCT_ERRCODE( ompi_err_session, MPI_ERR_SESSION, "MPI_ERR_SESSION: Invalid session handle" );
247+
CONSTRUCT_ERRCODE( ompi_err_value_too_large, MPI_ERR_VALUE_TOO_LARGE, "MPI_ERR_VALUE_TOO_LARGE: Value is too large to store" );
246248

247249
/* Per MPI-3 p353:27-32, MPI_LASTUSEDCODE must be >=
248250
MPI_ERR_LASTCODE. So just start it as == MPI_ERR_LASTCODE. */
@@ -359,6 +361,7 @@ int ompi_mpi_errcode_finalize (void)
359361
OBJ_DESTRUCT(&ompi_err_revoked);
360362
#endif
361363
OBJ_DESTRUCT(&ompi_err_session);
364+
OBJ_DESTRUCT(&ompi_err_value_too_large);
362365
OBJ_DESTRUCT(&ompi_mpi_errcodes);
363366
ompi_mpi_errcode_lastpredefined = 0;
364367
opal_mutex_unlock(&errcode_lock);

ompi/include/mpi.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ enum {
752752
#define MPI_ERR_PROC_FAILED_PENDING 76
753753
#define MPI_ERR_REVOKED 77
754754
#define MPI_ERR_SESSION 78
755+
#define MPI_ERR_VALUE_TOO_LARGE 79
755756

756757
/* Per MPI-3 p349 47, MPI_ERR_LASTCODE must be >= the last predefined
757758
MPI_ERR_<foo> code. Set the last code to allow some room for adding

ompi/include/mpif-values.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ sub read_value_from_file {
381381
$constants->{MPI_ERR_RMA_SHARED} = 71;
382382
$constants->{MPI_T_ERR_INVALID} = 72;
383383
$constants->{MPI_ERR_SESSION} = 78;
384+
$constants->{MPI_ERR_VALUE_TOO_LARGE} = 79;
384385
$constants->{MPI_ERR_LASTCODE} = 92;
385386

386387
$constants->{MPI_IDENT} = 0;

0 commit comments

Comments
 (0)