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

Implement teams support #126

Merged
merged 17 commits into from
Aug 14, 2024
Merged

Implement teams support #126

merged 17 commits into from
Aug 14, 2024

Conversation

everythingfunctional
Copy link
Member

This implements our basic strategy for supporting teams.

Copy link
Member

@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 realize this is still draft, but I went ahead and added one high-level comment/request

src/prif.f90 Outdated Show resolved Hide resolved
@everythingfunctional everythingfunctional force-pushed the implement-teams branch 4 times, most recently from c5021bf to b074f86 Compare August 8, 2024 14:47
Copy link
Member

@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.

Coming along nicely!

Added a few more suggestions

src/caffeine/teams_s.f90 Outdated Show resolved Hide resolved
src/caffeine/teams_s.f90 Show resolved Hide resolved
src/caffeine/teams_s.f90 Show resolved Hide resolved
src/caffeine/prif_private_s.f90 Outdated Show resolved Hide resolved
@everythingfunctional
Copy link
Member Author

I think this is the design/implementation we want now, but I'm not understanding something that is wrong with the linked list of coarrays on images other than 1 in a team. It's not treating pointers that have been set to null as being null, but only on images other than 1.

Copy link
Member

@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.

New test looks good, and we seem to be getting closer!

I didn't notice a defect likely to explain exactly the runtime crash you report. However I did notice and comment on a few important runtime checks that are currently missing and might potentially explain other runtime crashes.

Also added a few other misc minor requests.

src/caffeine/teams_s.f90 Outdated Show resolved Hide resolved
test/caf_teams_test.f90 Show resolved Hide resolved
test/caf_teams_test.f90 Show resolved Hide resolved
src/caffeine/allocation_s.f90 Outdated Show resolved Hide resolved
src/caffeine/teams_s.f90 Show resolved Hide resolved
src/caffeine/caffeine.c Show resolved Hide resolved
src/caffeine/allocation_s.f90 Show resolved Hide resolved
@everythingfunctional
Copy link
Member Author

I found and fixed the bug! Only image 1 was calculating where the new heap started :face_palm:.

@everythingfunctional everythingfunctional marked this pull request as ready for review August 9, 2024 14:31
Copy link
Member

@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.

LGTM! Thanks for all the work on this!

@everythingfunctional everythingfunctional merged commit f260d3e into main Aug 14, 2024
6 checks passed
@everythingfunctional everythingfunctional deleted the implement-teams branch August 14, 2024 15:26
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.

2 participants