-
Notifications
You must be signed in to change notification settings - Fork 877
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
v2.x: fix MPI_Alltoallw() with zero size messages #3487
Conversation
Per 2017-05-09 webex, move this to v2.1.2. |
@bosilca could you look at this? thanks. |
@hppritcha I did a while back. I left a comment that was never addressed. |
I can see it right here in the "Files changed" tab. It states "Why is this test not done before allocating the NBC handle ?" |
Er... that's weird. I don't see your comment at all! 😲 |
@@ -74,6 +74,11 @@ int ompi_coll_libnbc_ialltoallv(const void* sendbuf, const int *sendcounts, cons | |||
} | |||
} | |||
span = opal_datatype_span(&recvtype->super, count, &gap); | |||
if (OPAL_UNLIKELY(0 == span)) { |
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.
Why is this test not done before allocating the NBC handle ?
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.
i did it (among some othe revamp) in #3719
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.
Ha. If you don't submit the review the comments inside are not visible. |
make NBC_Handle (almost) an internal structure created by NBC_Schedule_request() use a local variable instead of what was previously handle->tmpbuf Refs open-mpi#3487 Signed-off-by: Gilles Gouaillardet <[email protected]>
note 68ac950 should be added to this PR and PR'ed on the other branches. will do sometimes this week |
797c907
to
b0001e9
Compare
@ggouaillardet please squash this down to one commit for PRs to other releases. |
@hppritcha this PR is for the |
@bosilca It's not clear from above -- did you review/approve this PR? |
For documentation:
|
It is OK but suboptimal (missing #3719). |
@ggouaillardet @bosilca #3719 is pretty giant. Is this PR correct and an improvement over what we had before? Specifically: do we need #3719 on v2.x? |
…count Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit open-mpi/ompi@1294954)
and incidentally avoids malloc(0) Thanks Lisandro Dalcin for the report Fixes open-mpi#2945 Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit open-mpi/ompi@e70a30c)
…_intra_basic_inplace() Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit open-mpi/ompi@68ac950)
…alltoallv_intra_basic_inplace() Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit open-mpi/ompi@d1c5955)
make NBC_Handle (almost) an internal structure created by NBC_Schedule_request() use a local variable instead of what was previously handle->tmpbuf Refs open-mpi#3487 Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit 9ba85b8)
make NBC_Handle (almost) an internal structure created by NBC_Schedule_request() use a local variable instead of what was previously handle->tmpbuf Refs open-mpi#3487 Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit open-mpi/ompi@9ba85b8)
9424bb2
to
608726a
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.
Thanks @ggouaillardet the PR looks good.
make NBC_Handle (almost) an internal structure created by NBC_Schedule_request() use a local variable instead of what was previously handle->tmpbuf Refs open-mpi#3487 Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit open-mpi/ompi@9ba85b8)
Refs. #3480