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

Fix CommonSpaces and MPI #2176

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

Fix CommonSpaces and MPI #2176

wants to merge 2 commits into from

Conversation

Sbozzolo
Copy link
Member

@Sbozzolo Sbozzolo commented Feb 10, 2025

The CommonGrids module passes down the context to all the grid it creates. This is a problem for IntervalTopology, because it can only be created with Singletons.

This commit fixes this issue and adds test checking that we can create CommonSpaces with MPI and CUDA

Closes #2175

@Sbozzolo Sbozzolo force-pushed the gb/common_mpi branch 4 times, most recently from 19f1a7f to a7ec52d Compare February 10, 2025 21:37
The `CommonGrids` module passes down the context to all the grid it
creates. This is a problem for IntervalTopology, because it can only be
created with Singletons.

This commit fixes this issue and adds test checking that we can create
CommonSpaces with MPI and CUDA
`CommonSpaces.CellCenter` is more ideomatic and is a better example on
how to use the CommonSpaces feature
@@ -34,7 +37,7 @@ using Test
h_elem = 10,
n_quad_points = 4,
horizontal_layout_type = DataLayouts.IJHF,
staggering = Grids.CellCenter(),
staggering = CommonSpaces.CellCenter(),
Copy link
Member

Choose a reason for hiding this comment

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

Can you please revert this? CellCenter/CellFace is not an object defined in CommonSpaces.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought we decided to re-export it and use it directly from CommonSpaces when working with CommonSpaces.

This change ensures that those looking at this code have a good pattern to copy.

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.

CommonSpaces are not compatible with MPI
2 participants