Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
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"
17
38
39#ifndef DOXYGEN_SHOULD_SKIP_THIS
40namespace Teuchos {
41// Forward declaration of Array
42template <class T>
43class Array;
44// Forward declaration of ArrayView
45template <class T>
46class ArrayView;
47} // namespace Teuchos
48#endif // DOXYGEN_SHOULD_SKIP_THIS
49
50namespace Tpetra {
51
52//
53// Users must never rely on anything in the Details namespace.
54//
55namespace Details {
56
85template <typename LO, typename GO, typename NT>
86void packCrsGraph(const CrsGraph<LO, GO, NT>& sourceGraph,
87 Teuchos::Array<typename CrsGraph<LO, GO, NT>::packet_type>& exports,
88 const Teuchos::ArrayView<size_t>& numPacketsPerLID,
89 const Teuchos::ArrayView<const LO>& exportLIDs,
90 size_t& constantNumPackets);
91
119template <typename LO, typename GO, typename NT>
120void packCrsGraphNew(const CrsGraph<LO, GO, NT>& sourceGraph,
121 const Kokkos::DualView<
122 const LO*,
123 typename CrsGraph<LO, GO, NT>::buffer_device_type>& exportLIDs,
124 const Kokkos::DualView<
125 const int*,
126 typename CrsGraph<LO, GO, NT>::buffer_device_type>& exportPIDs,
127 Kokkos::DualView<
130 Kokkos::DualView<
131 size_t*,
133 numPacketsPerLID,
134 size_t& constantNumPackets,
135 const bool pack_pids);
136
165template <typename LO, typename GO, typename NT>
166void packCrsGraphWithOwningPIDs(const CrsGraph<LO, GO, NT>& sourceGraph,
167 Kokkos::DualView<typename CrsGraph<LO, GO, NT>::packet_type*,
169 exports_dv,
170 const Teuchos::ArrayView<size_t>& numPacketsPerLID,
171 const Teuchos::ArrayView<const LO>& exportLIDs,
172 const Teuchos::ArrayView<const int>& sourcePIDs,
173 size_t& constantNumPackets);
174
175} // namespace Details
176} // namespace Tpetra
177
178#endif // TPETRA_DETAILS_PACKCRSGRAPH_DECL_HPP
Forward declaration of Tpetra::CrsGraph.
Declaration of the Tpetra::DistObject class.
global_ordinal_type packet_type
Type of each entry of the DistObject communication buffer.
typename dist_object_type::buffer_device_type buffer_device_type
Kokkos::Device specialization for communication buffers.
Implementation details of Tpetra.
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.
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 "new" DistObject interf...
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.
Namespace Tpetra contains the class and methods constituting the Tpetra library.