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

PCU Object and nompi stub #430

Open
wants to merge 123 commits into
base: develop
Choose a base branch
from
Open

Conversation

flagdanger
Copy link

@flagdanger flagdanger commented May 24, 2024

This version uses the new PCU Object interface that removes uses of the old pcu api, but does not remove the api entirely or cause breaking changes.

jacobmerson and others added 30 commits March 28, 2023 04:14
This commit adds a MPI state that's separate from the global variables
to the internal pcu_mpi interfaces. The user level PCU interface remains
unchanged. However, this change lays the groundwork for PCU2 that will
not make use of global state. This is important for some use cases like
working around the spectrum-mpi comm_dup bug. The removal of global
state also improves testability and modularity of this code.
Throughout the code base it was assumed that the mpi functions were
implemented through pmpi and so no other implementation really could
have been implemented. This change just removes the complexity
from having the vtable.
This commit allows the pcu_mpi to be initialized into a stack variable
rather than allways allocating on the heap.
This commit adds a MPI state that's separate from the global variables
to the internal pcu_mpi interfaces. The user level PCU interface remains
unchanged. However, this change lays the groundwork for PCU2 that will
not make use of global state. This is important for some use cases like
working around the spectrum-mpi comm_dup bug. The removal of global
state also improves testability and modularity of this code.
Throughout the code base it was assumed that the mpi functions were
implemented through pmpi and so no other implementation really could
have been implemented. This change just removes the complexity
from having the vtable.
This commit allows the pcu_mpi to be initialized into a stack variable
rather than allways allocating on the heap.
@cwsmith
Copy link
Contributor

cwsmith commented May 24, 2024

Hi @flagdanger. Is this the version the removes the 'old' PCU C api and has 'breaking' changes? If so, would you please add that to the PR description?

@jacobmerson
Copy link
Contributor

breaking changes addressed in #433

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.

3 participants