Skip to content

Commit

Permalink
Update MPI_Status definition to give implementers flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Mar 20, 2024
1 parent 00a219e commit fa9dad1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ typedef struct {
int MPI_SOURCE;
int MPI_TAG;
int MPI_ERROR;
int MPI_internal[5];
union {
char MPI_internal_as_int[5];
/* implementation-defined representation */
} MPI_internal;
} MPI_Status;

typedef struct MPI_ABI_Op* MPI_Op;
Expand Down Expand Up @@ -192,7 +195,10 @@ typedef struct {
MPI_Fint MPI_SOURCE;
MPI_Fint MPI_TAG;
MPI_Fint MPI_ERROR;
MPI_Fint MPI_internal[5];
union {
MPI_Fint MPI_internal_as_MPI_Fint[5];
/* implementation-defined representation */
} MPI_internal;
} MPI_F08_status;

/* Error Classes */
Expand Down

0 comments on commit fa9dad1

Please sign in to comment.