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

Add more team support #171

Merged
merged 7 commits into from
Jan 13, 2025
Merged

Add more team support #171

merged 7 commits into from
Jan 13, 2025

Conversation

bonachea
Copy link
Member

@bonachea bonachea commented Jan 6, 2025

This PR implements:

  • prif_team_number
  • prif_get_team
  • prif_num_images_with_team
  • prif_this_image_no_coarray(team)

This notably completes implementation of the "Teams" chapter of PRIF 0.5, and makes significant progress towards completing "Image Queries".

This PR also fixes #59, thereby avoiding cross-language calls on every this_image and num_images query.

- Implement prif_num_images_with_team
- Implement prif_this_image_no_coarray(team)
- Cache this_image/num_images in the Fortran-level team_data
- Use that everywhere instead of caf_this_image/caf_num_images
- Cosmetic fixes to caf_this_image/caf_num_images

Fixes issue BerkeleyLab#59
@bonachea bonachea marked this pull request as ready for review January 6, 2025 19:57
@bonachea bonachea requested a review from ktras January 6, 2025 19:57
@bonachea bonachea mentioned this pull request Jan 6, 2025
2 tasks
@bonachea
Copy link
Member Author

@ktras please review this PR in the next few days.

I now have a second Caffeine PR staged behind this one, I'm waiting for this one to be finalized and merged before posting it.

Copy link
Collaborator

@ktras ktras left a comment

Choose a reason for hiding this comment

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

Looks great but have a couple notes/nitpicks/suggestions.

test/caf_teams_test.f90 Show resolved Hide resolved
test/caf_teams_test.f90 Outdated Show resolved Hide resolved
test/caf_teams_test.f90 Outdated Show resolved Hide resolved
test/caf_teams_test.f90 Outdated Show resolved Hide resolved
test/caf_teams_test.f90 Show resolved Hide resolved
@bonachea
Copy link
Member Author

@ktras thanks for your review, I believe I've addressed or responded to all of your concerns.

Ready for next round of review.

@bonachea bonachea requested a review from ktras January 13, 2025 20:29
Copy link
Collaborator

@ktras ktras left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

bonachea and others added 4 commits January 13, 2025 13:07
Add coverage for:
* prif_get_team
* prif_team_number
* prif_num_images with team
* prif_this_image with team

Correct a defect in `result_` aggregation that was wiping out earlier
test results.

---

Apply suggestions from code review

Co-authored-by: Katherine Rasmussen <krasmussen@lbl.gov>
This was causing undiagnosed non-fatal errors in CI of the form:

```
./install.sh: 402: [[: not found
```
@bonachea bonachea merged commit 359063c into BerkeleyLab:main Jan 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add num_imgs and this_img as private components to prif_team_type
2 participants