-
Notifications
You must be signed in to change notification settings - Fork 902
MPI4: implement mpi_isendrecv and variant #9667
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
MPI4: implement mpi_isendrecv and variant #9667
Conversation
@hppritcha at first glance, that looks good to me. I am just wondering if adding a I did not check the full specification, but if for example |
Unfortunately what error to return is as well defined as for MPI_Sendrecv. But from a logical perspective it makes more sense to return the status of the receive part of the communication, as the status for a receive contains more information than the send. Plus, what really matters for the send is that the buffer can be modified. |
b0416f3
to
608abd5
Compare
608abd5
to
509b87e
Compare
509b87e
to
8e976a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to #9707, I think this PR is missing the mpi
module bindings (both tkr and ignore-tkr).
b4c3b89
to
669cd10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can you squash?
all points have been addressed
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
669cd10
to
47c8063
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hppritcha I'm sorry I' late. I added additional comments.
OMPI_SPC_ISENDRECV, | ||
OMPI_SPC_ISENDRECV_REPLACE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment of this enum (line 26-33) says:
/* INSTRUCTIONS FOR ADDING COUNTERS * 1.) Add a new counter name in the ompi_spc_counters_t enum before * OMPI_SPC_NUM_COUNTERS below. * 2.) Add corresponding counter name and descriptions to the * counter_names and counter_descriptions arrays in * ompi_spc.c NOTE: The names and descriptions * MUST be in the same array location as where you added the * counter name in step 1.
Though I don't know detail of SPC, according to this comment, you need to insert lines in the same position in ompi_spc_counters
in ompi_spc.h
and ompi_spc_events_desc
in ompi_spc.c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kawashima-fj thanks for noting this. i'll open a PR to patch this.
OMPI_COPY_STATUS(&request->super.req_status, | ||
context->subreq[0]->req_status, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably you forgot to erase these two lines when you inserted line 91-97.
.nf | ||
USE MPI | ||
! or the older form: INCLUDE 'mpif.h' | ||
MPI_SENDRECV_REPLACE(\fIBUF, COUNT, DATATYPE, DEST, SENDTAG, SOURCE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing I
before SENDRECV
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks I'll file a PR to fix this too.
see review comments for PR open-mpi#9667 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
per review feedback for PR open-mpi#9667 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
see review comments for PR open-mpi#9667 Signed-off-by: Howard Pritchard <howardp@lanl.gov> (cherry picked from commit 1babb92)
per review feedback for PR open-mpi#9667 Signed-off-by: Howard Pritchard <howardp@lanl.gov> (cherry picked from commit b2183d3)
Signed-off-by: Howard Pritchard howardp@lanl.gov