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

don't merge: proper memory layout for connectivities #578

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

havogt
Copy link
Contributor

@havogt havogt commented Oct 29, 2024

No description provided.

Copy link

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default
  • launch jenkins spack

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

In case your change might affect downstream icon-exclaim, please consider running

  • launch jenkins icon

For more detailed information please look at CI in the EXCLAIM universe.

@@ -138,7 +138,7 @@ def _get_offset_provider(self, dim, from_dim, to_dim):
dim, self.connectivities[dim].dtype
)
return gtx.NeighborTableOffsetProvider(
xp.asarray(self.connectivities[dim]),
gtx.as_field([from_dim, gtx.Dimension("neigh", kind=gtx.DimensionKind.LOCAL)], xp.asarray(self.connectivities[dim])).ndarray,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just a hack to get the memory layout that the backend likes (horizontal with stride 1 for gpu). The proper fix should probably use gtx.as_connectivity() somewhere. GT4Py currently doesn't really help to get this clean...

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.

1 participant