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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

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
Add coverage for:
* prif_get_team
* prif_team_number
* prif_num_images with team
* prif_this_image with team
@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
This was causing undiagnosed non-fatal errors in CI of the form:

```
./install.sh: 402: [[: not found
```
@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.

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
1 participant