Skip to content

PCU Object and nompi stub#430

Closed
flagdanger wants to merge 123 commits intoSCOREC:developfrom
jacobmerson:mergenompi
Closed

PCU Object and nompi stub#430
flagdanger wants to merge 123 commits intoSCOREC:developfrom
jacobmerson:mergenompi

Conversation

@flagdanger
Copy link
Contributor

@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

@bobpaw
Copy link
Collaborator

bobpaw commented Jan 29, 2025

@flagdanger can this be closed now that #433 is merged?

@flagdanger
Copy link
Contributor Author

@bobpaw Yes I believe so

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.

4 participants