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

Fix #632 coarray image-selector image index values for teams #633

Merged

Conversation

nathanweeks
Copy link
Contributor

@nathanweeks nathanweeks commented Feb 9, 2019

Summary of changes

Update OpenCoarrays get(), send(), and sendget() to look up the MPI rank of the executing image in the MPI group(s) of the MPI window(s) of the coarray(s) when determining if the image index(es) for the coarray(s) references the executing image.

Rationale for changes

Fix #632

Additional info and certifications

This pull request (PR) is a:

  • Bug fix
  • Feature addition
  • Other, Please describe:

I certify that

  • I reviewed and followed the [contributing guidelines], including
    - Increasing test coverage for all feature-addition PRs
    - Increasing test coverage for all bug-fix PRs for which there
    does not already exist a related test that failed before the PR
    - At least maintaining test coverage for all other PRs
    - Ensuring that all tests pass when run locally
    - Naming PR to indicate work in progress (WIP) and to attach the PR
    to the appropriate bug report or feature request [issue]
    - White space (no trailing white space or white space errors may
    be introduced)
    - Commenting code where it is non-obvious and non-trivial
    - Logically atomic, self consistent and coherent commits
    - Commit message content
    - Waiting 24 hours before self-approving the PR to give another
    OpenCoarrays developer a chance to review my proposed code

@ghost ghost added the needs-review label Feb 9, 2019
@codecov
Copy link

codecov bot commented Feb 9, 2019

Codecov Report

Merging #633 into master will increase coverage by 0.96%.
The diff coverage is 92.04%.

@@            Coverage Diff             @@
##           master     #633      +/-   ##
==========================================
+ Coverage   53.02%   53.98%   +0.96%     
==========================================
  Files           3        3              
  Lines        2863     2923      +60     
==========================================
+ Hits         1518     1578      +60     
  Misses       1345     1345

@ghost ghost assigned rouson Mar 10, 2019
@zbeekman
Copy link
Collaborator

@nathanweeks Are these PRs ready to merge?

@zbeekman
Copy link
Collaborator

Looking at #632, it appears that this should not be merged.

Translate image-selector image indices to be w.r.t. the current team.

Untested for sendget_by_ref due to possible issue described in sourceryinstitute#632.
@ghost ghost added needs-review and removed in-progress labels Mar 24, 2019
@nathanweeks nathanweeks changed the title Fix #632 coarray same-image copy for teams Fix #632 coarray image-selector image index values for teams Mar 24, 2019
@nathanweeks
Copy link
Contributor Author

Note that additional modifications would be needed when OpenCoarrays adds support for the optional TEAM= and TEAM_NUMBER= specifiers in image selectors.

@nathanweeks
Copy link
Contributor Author

Is someone available to review this PR? It seems important for the use of teams in OpenCoarrays.

@zbeekman
Copy link
Collaborator

zbeekman commented Apr 21, 2019 via email

@ghost ghost assigned zbeekman Apr 21, 2019
Copy link
Collaborator

@zbeekman zbeekman left a comment

Choose a reason for hiding this comment

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

LGTM!

@zbeekman zbeekman added ready to merge PR can be merged once CI is green and removed help-wanted needs-review labels Apr 21, 2019
@zbeekman
Copy link
Collaborator

@nathanweeks I pushed to your branch because the PR was out of date WRT master and a merge conflict needed resolving.

As soon as CI is green I'm going to merge this. I've tested extensively locally with both MPICH/GCC and OpenMPI/clang.

💯 Fantastic work here! PR looks great as do the additional tests!

@zbeekman zbeekman merged commit 93edc85 into sourceryinstitute:master Apr 21, 2019
@nathanweeks nathanweeks deleted the issue-632-coarrays-teams branch April 24, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge PR can be merged once CI is green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defect: same-image copies incorrect with teams
3 participants