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

Small optimization on the datatype commit. #6945

Merged
merged 2 commits into from
Sep 3, 2019

Conversation

bosilca
Copy link
Member

@bosilca bosilca commented Aug 29, 2019

This patch fixes the merge of contiguous elements into larger but more
compact datatypes, and allows for contiguous elements to have thir
blocklen increasing instead of the count. The idea is to always maximize
the blocklen, aka. the contiguous part of the datatype.

Possible fix for #6932

Signed-off-by: George Bosilca bosilca@icl.utk.edu

This patch fixes the merge of contiguous elements into larger but more
compact datatypes, and allows for contiguous elements to have thir
blocklen increasing instead of the count. The idea is to always maximize
the blocklen, aka. the contiguous part of the datatype.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
elements that can be merged into a larger UINT1 type.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
@bosilca
Copy link
Member Author

bosilca commented Aug 31, 2019

I was able to track back the issue by looking at the datatype from issue #6932. It failed to merge into a single predefined element but the datatype was marked as contiguous, allowing the datatype engine to use one of the optimized pack/unpack function (contig_with_gaps). However, having a composed description mislead the contig_with_gaps function to wrongly interpret the shape of the datatype.

Anyway, long story short, this patch fixes the issue and add a test to prevent it from happening in the future. Once merged it should be backported to v3 and v4.

@jsquyres
Copy link
Member

jsquyres commented Sep 3, 2019

@bosilca Any particular reason not to merge this PR?

@bosilca
Copy link
Member Author

bosilca commented Sep 3, 2019

It need to be backported but I don't have time to do it right now. Feel free to do so.

@jsquyres jsquyres merged commit f1a065f into open-mpi:master Sep 3, 2019
@bosilca bosilca deleted the topic/ddt_optimize branch September 17, 2019 15:42
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.

3 participants