Replies: 3 comments
-
|
A reverse path, that is, building Views out of |
Beta Was this translation helpful? Give feedback.
-
|
In general, it would be good if MPI datatypes could persist between KokkosComm operations since creating and committing the type is not free. Then, these functions simply return a |
Beta Was this translation helpful? Give feedback.
-
|
A related topic about this kind of memoization is using persistent communications for when a host buffer must be created (for non gpu-aware MPI for example). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some library users might like to convert a
Kokkos::Viewto aMPI_Datatypeand use that in their existing MPI functions. Therefore it might be beneficial to provide a function that takes aKokkos::Viewor type T and returns a MPI_Datatype.Some variations could be:
1: Accepts
Kokkos::View2: A more generic alternative where T is serializable or convertible and a trait would evaluate to true. Serializable types would provide member functions to create the MPI_Datatype.
3: User provided type with set of functions to construct the MPI_Datatype.
Beta Was this translation helpful? Give feedback.
All reactions