42 #ifndef TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
43 #define TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
45 #include "TpetraCore_config.h"
47 #include "Kokkos_DualView.hpp"
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
73 template<
class T>
class Array;
75 template<
class T>
class ArrayView;
77 #endif // DOXYGEN_SHOULD_SKIP_THIS
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 #endif // DOXYGEN_SHOULD_SKIP_THIS
123 template<
class LO,
class GO,
class NT>
126 CrsGraph<LO, GO, NT>& sourceGraph,
127 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type>& imports,
128 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
129 const Teuchos::ArrayView<const LO>& importLIDs,
130 size_t constantNumPackets,
131 Distributor & distor,
134 template<
class LO,
class GO,
class NT>
136 unpackCrsGraphAndCombineNew(
137 CrsGraph<LO, GO, NT>& sourceGraph,
138 const Kokkos::DualView<
const typename CrsGraph<LO,GO,NT>::packet_type*,
139 typename CrsGraph<LO,GO,NT>::buffer_device_type>&
141 const Kokkos::DualView<
const size_t*,
142 typename CrsGraph<LO,GO,NT>::buffer_device_type>&
144 const Kokkos::DualView<
const LO*,
145 typename CrsGraph<LO,GO,NT>::buffer_device_type>&
147 const size_t constantNumPackets,
148 Distributor & distor,
203 template<
class LO,
class GO,
class NT>
206 const CrsGraph<LO, GO, NT> & sourceGraph,
207 const Teuchos::ArrayView<const LO> &importLIDs,
208 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type> &imports,
209 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
210 size_t constantNumPackets,
214 const Teuchos::ArrayView<const LO>& permuteToLIDs,
215 const Teuchos::ArrayView<const LO>& permuteFromLIDs);
231 template<
class LO,
class GO,
class NT>
234 const CrsGraph<LO, GO, NT> & sourceGraph,
235 const Teuchos::ArrayView<const LO>& importLIDs,
236 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type>& imports,
237 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
238 const size_t constantNumPackets,
241 const size_t numSameIDs,
242 const Teuchos::ArrayView<const LO>& permuteToLIDs,
243 const Teuchos::ArrayView<const LO>& permuteFromLIDs,
244 size_t TargetNumRows,
245 size_t TargetNumNonzeros,
246 const int MyTargetPID,
247 const Teuchos::ArrayView<size_t>& CRS_rowptr,
248 const Teuchos::ArrayView<GO>& CRS_colind,
249 const Teuchos::ArrayView<const int>& SourcePids,
250 Teuchos::Array<int>& TargetPids);
255 #endif // TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
size_t unpackAndCombineWithOwningPIDsCount(const CrsGraph< LO, GO, NT > &sourceGraph, const Teuchos::ArrayView< const LO > &importLIDs, const Teuchos::ArrayView< const typename CrsGraph< LO, GO, NT >::packet_type > &imports, const Teuchos::ArrayView< const size_t > &numPacketsPerLID, size_t constantNumPackets, Distributor &distor, CombineMode combineMode, size_t numSameIDs, const Teuchos::ArrayView< const LO > &permuteToLIDs, const Teuchos::ArrayView< const LO > &permuteFromLIDs)
Special version of Tpetra::Details::unpackCrsGraphAndCombine that also unpacks owning process ranks...
Declaration of Tpetra::CombineMode enum, and a function for setting a Tpetra::CombineMode parameter i...
CombineMode
Rule for combining data in an Import or Export.
void unpackAndCombineIntoCrsArrays(const CrsGraph< LO, GO, NT > &sourceGraph, const Teuchos::ArrayView< const LO > &importLIDs, const Teuchos::ArrayView< const typename CrsGraph< LO, GO, NT >::packet_type > &imports, const Teuchos::ArrayView< const size_t > &numPacketsPerLID, const size_t constantNumPackets, Distributor &distor, const CombineMode combineMode, const size_t numSameIDs, const Teuchos::ArrayView< const LO > &permuteToLIDs, const Teuchos::ArrayView< const LO > &permuteFromLIDs, size_t TargetNumRows, size_t TargetNumNonzeros, const int MyTargetPID, const Teuchos::ArrayView< size_t > &CRS_rowptr, const Teuchos::ArrayView< GO > &CRS_colind, const Teuchos::ArrayView< const int > &SourcePids, Teuchos::Array< int > &TargetPids)
unpackAndCombineIntoCrsArrays
Declaration of the Tpetra::DistObject class.
void unpackCrsGraphAndCombine(CrsGraph< LO, GO, NT > &sourceGraph, const Teuchos::ArrayView< const typename CrsGraph< LO, GO, NT >::packet_type > &imports, const Teuchos::ArrayView< const size_t > &numPacketsPerLID, const Teuchos::ArrayView< const LO > &importLIDs, size_t constantNumPackets, Distributor &distor, CombineMode combineMode)
Unpack the imported column indices and combine into graph.
Forward declaration of Tpetra::CrsGraph.