Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MPI_Status definition to give implementers flexibility #33

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
int 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