Skip to content

Conversation

@aravindksg
Copy link
Contributor

PR #5450 addresses MPI_IN_PLACE processing for basic collective algorithms.
But in conjunction with that, we need to check for MPI_IN_PLACE in tuned paths
as well before calling ompi_datatype_type_size() as otherwise we segfault.

MPI spec also stipulates to ignore sendcount and sendtype for Alltoall and
Allgatherv operations. So, extending the check to these algorithms as well.

Signed-off-by: Aravind Gopalakrishnan Aravind.Gopalakrishnan@intel.com
(cherry picked from commit 88d7810)

PR open-mpi#5450 addresses MPI_IN_PLACE processing for basic collective algorithms.
But in conjunction with that, we need to check for MPI_IN_PLACE in tuned paths
as well before calling ompi_datatype_type_size() as otherwise we segfault.

MPI spec also stipulates to ignore sendcount and sendtype for Alltoall and
Allgatherv operations. So, extending the check to these algorithms as well.

Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
(cherry picked from commit 88d7810)
}

/* Determine complete data size */
ompi_datatype_type_size(sdtype, &dsize);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I verified that ompi_coll_base_allgatherv_intra_two_procs already has a check for IN_PLACE, so no need to add above that. Looks good.

@gpaulsen
Copy link
Member

@hppritcha This is a simple, straightfoward bugfix. Wanna pick it up for 4.0.0? It's MPI_IN_PLACE, and I'm not sure how many are using that "feature".

@aravindksg
Copy link
Contributor Author

@hppritcha , @gpaulsen - PR #5474 did cherry-pick the fix for MPI_IN_PLACE processing in coll/base/allgather to 4.0.x branch. But I don't see that in 3.0.x or 3.1.x branches. Should PR #5474 along with this one be cherry-picked to v3.0x/v3.1.x?

@ggouaillardet
Copy link
Contributor

(bits of) 6bb356a should be also backported to the v4 and v3 branches (it fixes some compiler warnings by removing unused variables)

@gpaulsen gpaulsen added this to the v4.0.1 milestone Nov 2, 2018
@hppritcha hppritcha merged commit 8adaeb1 into open-mpi:v4.0.x Nov 19, 2018
@aravindksg aravindksg deleted the coll-tuned-fix-40x branch February 1, 2019 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants