Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 2f2696a

Browse files
committed
ompi: add internal error code for MPI_ERR_RMA_FLAVOR
master commit open-mpi/ompi@b933eda Signed-off-by: Nathan Hjelm <[email protected]>
1 parent e9bd6d8 commit 2f2696a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ompi/errhandler/errcode-internal.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static ompi_errcode_intern_t ompi_err_rma_attach_intern;
5555
static ompi_errcode_intern_t ompi_err_rma_range_intern;
5656
static ompi_errcode_intern_t ompi_err_rma_conflict_intern;
5757
static ompi_errcode_intern_t ompi_err_win_intern;
58+
static ompi_errcode_intern_t ompi_err_rma_flavor_intern;
5859

5960
static void ompi_errcode_intern_construct(ompi_errcode_intern_t* errcode);
6061
static void ompi_errcode_intern_destruct(ompi_errcode_intern_t* errcode);
@@ -250,6 +251,14 @@ int ompi_errcode_intern_init (void)
250251
opal_pointer_array_set_item(&ompi_errcodes_intern, ompi_err_win_intern.index,
251252
&ompi_err_win_intern);
252253

254+
OBJ_CONSTRUCT(&ompi_err_rma_flavor_intern, ompi_errcode_intern_t);
255+
ompi_err_rma_flavor_intern.code = OMPI_ERR_RMA_FLAVOR;
256+
ompi_err_rma_flavor_intern.mpi_code = MPI_ERR_RMA_FLAVOR;
257+
ompi_err_rma_flavor_intern.index = pos++;
258+
strncpy(ompi_err_rma_flavor_intern.errstring, "OMPI_ERR_RMA_FLAVOR", OMPI_MAX_ERROR_STRING);
259+
opal_pointer_array_set_item(&ompi_errcodes_intern, ompi_err_rma_flavor_intern.index,
260+
&ompi_err_rma_flavor_intern);
261+
253262
ompi_errcode_intern_lastused=pos;
254263
return OMPI_SUCCESS;
255264
}
@@ -279,6 +288,7 @@ int ompi_errcode_intern_finalize(void)
279288
OBJ_DESTRUCT(&ompi_err_rma_range_intern);
280289
OBJ_DESTRUCT(&ompi_err_rma_conflict_intern);
281290
OBJ_DESTRUCT(&ompi_err_win_intern);
291+
OBJ_DESTRUCT(&ompi_err_rma_flavor_intern);
282292

283293
OBJ_DESTRUCT(&ompi_errcodes_intern);
284294
return OMPI_SUCCESS;

ompi/include/ompi/constants.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ enum {
7171
OMPI_ERR_RMA_RANGE = OMPI_ERR_BASE - 5,
7272
OMPI_ERR_RMA_CONFLICT = OMPI_ERR_BASE - 6,
7373
OMPI_ERR_WIN = OMPI_ERR_BASE - 7,
74+
OMPI_ERR_RMA_FLAVOR = OMPI_ERR_BASE - 8,
7475
};
7576

7677
#define OMPI_ERR_MAX (OMPI_ERR_BASE - 100)

0 commit comments

Comments
 (0)