Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tpetra_Details_packCrsGraph_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_PACKCRSGRAPH_DECL_HPP
11 #define TPETRA_DETAILS_PACKCRSGRAPH_DECL_HPP
12 
13 #include "TpetraCore_config.h"
14 #include "Kokkos_DualView.hpp"
16 #include "Tpetra_CrsGraph_fwd.hpp"
17 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 namespace Teuchos {
41 // Forward declaration of Array
42 template<class T> class Array;
43 // Forward declaration of ArrayView
44 template<class T> class ArrayView;
45 } // namespace Teuchos
46 #endif // DOXYGEN_SHOULD_SKIP_THIS
47 
48 namespace Tpetra {
49 
50 //
51 // Users must never rely on anything in the Details namespace.
52 //
53 namespace Details {
54 
83 template<typename LO, typename GO, typename NT>
84 void
85 packCrsGraph (const CrsGraph<LO, GO, NT>& sourceGraph,
86  Teuchos::Array<typename CrsGraph<LO,GO,NT>::packet_type>& exports,
87  const Teuchos::ArrayView<size_t>& numPacketsPerLID,
88  const Teuchos::ArrayView<const LO>& exportLIDs,
89  size_t& constantNumPackets);
90 
118 template<typename LO, typename GO, typename NT>
119 void
120 packCrsGraphNew (const CrsGraph<LO, GO, NT>& sourceGraph,
121  const Kokkos::DualView<
122  const LO*,
123  typename CrsGraph<LO, GO, NT>::buffer_device_type
124  >& exportLIDs,
125  const Kokkos::DualView<
126  const int*,
127  typename CrsGraph<LO, GO, NT>::buffer_device_type
128  >& exportPIDs,
129  Kokkos::DualView<
130  typename CrsGraph<LO, GO, NT>::packet_type*,
131  typename CrsGraph<LO, GO, NT>::buffer_device_type
132  >& exports,
133  Kokkos::DualView<
134  size_t*,
135  typename CrsGraph<LO, GO, NT>::buffer_device_type
136  > numPacketsPerLID,
137  size_t& constantNumPackets,
138  const bool pack_pids);
139 
168 template<typename LO, typename GO, typename NT>
169 void
170 packCrsGraphWithOwningPIDs (const CrsGraph<LO,GO,NT>& sourceGraph,
171  Kokkos::DualView<typename CrsGraph<LO,GO,NT>::packet_type*,
172  typename CrsGraph<LO,GO,NT>::buffer_device_type>&
173  exports_dv,
174  const Teuchos::ArrayView<size_t>& numPacketsPerLID,
175  const Teuchos::ArrayView<const LO>& exportLIDs,
176  const Teuchos::ArrayView<const int>& sourcePIDs,
177  size_t& constantNumPackets);
178 
179 } // namespace Details
180 } // namespace Tpetra
181 
182 #endif // TPETRA_DETAILS_PACKCRSGRAPH_DECL_HPP
void packCrsGraphWithOwningPIDs(const CrsGraph< LO, GO, NT > &sourceGraph, Kokkos::DualView< typename CrsGraph< LO, GO, NT >::packet_type *, typename CrsGraph< LO, GO, NT >::buffer_device_type > &exports_dv, const Teuchos::ArrayView< size_t > &numPacketsPerLID, const Teuchos::ArrayView< const LO > &exportLIDs, const Teuchos::ArrayView< const int > &sourcePIDs, size_t &constantNumPackets)
Pack specified entries of the given local sparse graph for communication.
void packCrsGraph(const CrsGraph< LO, GO, NT > &sourceGraph, Teuchos::Array< typename CrsGraph< LO, GO, NT >::packet_type > &exports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, const Teuchos::ArrayView< const LO > &exportLIDs, size_t &constantNumPackets)
Pack specified entries of the given local sparse graph for communication.
Declaration of the Tpetra::DistObject class.
void packCrsGraphNew(const CrsGraph< LO, GO, NT > &sourceGraph, const Kokkos::DualView< const LO *, typename CrsGraph< LO, GO, NT >::buffer_device_type > &exportLIDs, const Kokkos::DualView< const int *, typename CrsGraph< LO, GO, NT >::buffer_device_type > &exportPIDs, Kokkos::DualView< typename CrsGraph< LO, GO, NT >::packet_type *, typename CrsGraph< LO, GO, NT >::buffer_device_type > &exports, Kokkos::DualView< size_t *, typename CrsGraph< LO, GO, NT >::buffer_device_type > numPacketsPerLID, size_t &constantNumPackets, const bool pack_pids)
Pack specified entries of the given local sparse graph for communication, for &quot;new&quot; DistObject interf...
Forward declaration of Tpetra::CrsGraph.