Skip to content

Conversation

@bonachea
Copy link
Member

@bonachea bonachea commented May 8, 2025

Adds a complete implementation of prif_image_index_with_team, by factoring the existing prif_image_index implementation.

Adds a complete implementation of prif_this_image_with_{coarray,dim}

Adds partial implementations for prif_{image_index,num_images}_with_team_number (for the cases that can be implemented efficiently/scalably).

Fixes #214
Fixes #215
Fixes #227

@bonachea bonachea requested a review from ktras May 8, 2025 04:16
@bonachea
Copy link
Member Author

Rebased to pick-up new CI

bonachea added 14 commits May 13, 2025 13:59
Factor prif_image_index and use the same logic to implement prif_image_index_with_team
Merge the two loops, so we perform bounds-checking in the same pass with image
computation.

Insert return statements to potentially reduce branchiness
only supports team_number==-1 for the initial team and team number of the current team (no support for sibling teams)
only supports team_number==-1 for the initial team and team number of the current team (no support for sibling teams)
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 good but I have a couple questions listed in comments on code.

Copy link
Member Author

@bonachea bonachea left a comment

Choose a reason for hiding this comment

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

I've added responses to reviewer questions, please let me know if those satisfy your concerns.

Ready for next round of review.

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

@bonachea bonachea merged commit 43699ed into BerkeleyLab:main May 15, 2025
12 checks passed
@bonachea bonachea deleted the image_index branch May 15, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants