50 #ifndef _ZOLTAN2_ADAPTER_HPP_ 51 #define _ZOLTAN2_ADAPTER_HPP_ 53 #include <Kokkos_Core.hpp> 100 template <
typename User>
124 Kokkos::View<gno_t *> kokkosIds;
125 getIDsKokkosView(kokkosIds);
126 ids = kokkosIds.data();
149 Kokkos::View<scalar_t *> tempWeightsView;
150 getWeightsKokkosView(tempWeightsView, idx);
151 wgt = tempWeightsView.data();
199 template <
typename Adapter>
InputTraits< User >::scalar_t scalar_t
virtual void getWeightsKokkosView(Kokkos::View< scalar_t *> &wgt, int idx=0) const
Provide pointer to a weight View.
virtual void getIDsView(const gno_t *&ids) const
Provide a pointer to this process' identifiers.
InputTraits< User >::gno_t gno_t
InputTraits< User >::lno_t lno_t
#define Z2_THROW_NOT_IMPLEMENTED
Defines the PartitioningSolution class.
void getPartsView(const part_t *&inputPart) const
Provide pointer to an array containing the input part assignment for each ID. The input part informat...
void applyPartitioningSolution(const User &in, User *&out, const PartitioningSolution< Adapter > &solution) const
Apply a PartitioningSolution to an input.
virtual ~BaseAdapter()
Destructor.
virtual void getWeightsView(const scalar_t *&wgt, int &stride, int idx=0) const
Provide pointer to a weight array with stride.
A PartitioningSolution is a solution to a partitioning problem.
BaseAdapterType
An enum to identify general types of adapters.
identifier data, just a list of IDs
virtual ~BaseAdapterRoot()
BaseAdapter defines methods required by all Adapters.
InputTraits< User >::part_t part_t
virtual size_t getLocalNumIDs() const =0
Returns the number of objects on this process.
Gathering definitions used in software development.
virtual void getIDsKokkosView(Kokkos::View< gno_t *> &ids) const
Provide a pointer to this process' identifiers.
virtual int getNumWeightsPerID() const
Returns the number of weights per object. Number of weights per object should be zero or greater...
InputTraits< User >::offset_t offset_t