Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tpetra_Details_unpackCrsGraphAndCombine_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Tpetra: Templated Linear Algebra Services Package
4 //
5 // Copyright 2008 NTESS and the Tpetra contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
11 #define TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
12 
13 #include "TpetraCore_config.h"
14 #include "Tpetra_CombineMode.hpp"
15 #include "Kokkos_DualView.hpp"
17 #include "Tpetra_CrsGraph_fwd.hpp"
18 
37 
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Teuchos {
40 // Forward declaration of Array
41 template<class T> class Array;
42 // Forward declaration of ArrayView
43 template<class T> class ArrayView;
44 } // namespace Teuchos
45 #endif // DOXYGEN_SHOULD_SKIP_THIS
46 
47 namespace Tpetra {
48 
49 //
50 // Users must never rely on anything in the Details namespace.
51 //
52 namespace Details {
53 
95 //
104 template<class LO, class GO, class NT>
105 size_t
107  const CrsGraph<LO, GO, NT> & sourceGraph,
108  const Teuchos::ArrayView<const LO> &importLIDs,
109  const Teuchos::ArrayView<const typename CrsGraph<LO,GO,NT>::packet_type> &imports,
110  const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
111  size_t constantNumPackets,
112  CombineMode combineMode,
113  size_t numSameIDs,
114  const Teuchos::ArrayView<const LO>& permuteToLIDs,
115  const Teuchos::ArrayView<const LO>& permuteFromLIDs);
116 
131 template<class LO, class GO, class NT>
132 void
134  const CrsGraph<LO, GO, NT> & sourceGraph,
135  const Teuchos::ArrayView<const LO>& importLIDs,
136  const Teuchos::ArrayView<const typename CrsGraph<LO,GO,NT>::packet_type>& imports,
137  const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
138  const size_t constantNumPackets,
139  const CombineMode combineMode,
140  const size_t numSameIDs,
141  const Teuchos::ArrayView<const LO>& permuteToLIDs,
142  const Teuchos::ArrayView<const LO>& permuteFromLIDs,
143  size_t TargetNumRows,
144  size_t TargetNumNonzeros,
145  const int MyTargetPID,
146  const Teuchos::ArrayView<size_t>& CRS_rowptr,
147  const Teuchos::ArrayView<GO>& CRS_colind,
148  const Teuchos::ArrayView<const int>& SourcePids,
149  Teuchos::Array<int>& TargetPids);
150 
151 } // namespace Details
152 } // namespace Tpetra
153 
154 #endif // TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
Declaration of Tpetra::CombineMode enum, and a function for setting a Tpetra::CombineMode parameter i...
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, 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
CombineMode
Rule for combining data in an Import or Export.
Declaration of the Tpetra::DistObject class.
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, 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...
Forward declaration of Tpetra::CrsGraph.