42 #ifndef TPETRA_DETAILS_TRANSFER_DECL_HPP
43 #define TPETRA_DETAILS_TRANSFER_DECL_HPP
48 #include "Teuchos_Describable.hpp"
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 #endif // DOXYGEN_SHOULD_SKIP_THIS
76 using execution_space =
typename NT::device_type::execution_space;
79 using device_type = Kokkos::Device<execution_space, memory_space>;
101 Transfer (
const Teuchos::RCP<const map_type>& source,
102 const Teuchos::RCP<const map_type>& target,
103 const Teuchos::RCP<Teuchos::FancyOStream>& out,
104 const Teuchos::RCP<Teuchos::ParameterList>& plist,
105 const std::string& className);
109 struct reverse_tag {};
225 describe (Teuchos::FancyOStream& out,
226 const Teuchos::EVerbosityLevel verbLevel =
227 Teuchos::Describable::verbLevel_default)
const;
254 const std::string& className,
255 const Teuchos::EVerbosityLevel verbLevel =
256 Teuchos::Describable::verbLevel_default)
const;
267 setParameterList (
const Teuchos::RCP<Teuchos::ParameterList>& plist,
268 const std::string& className);
277 globalDescribe (Teuchos::FancyOStream& out,
278 const Teuchos::EVerbosityLevel vl)
const;
285 localDescribeToString (
const Teuchos::EVerbosityLevel vl)
const;
298 #define TPETRA_DETAILS_TRANSFER_INSTANT(LO, GO, NODE) \
299 template class Transfer< LO , GO , NODE >;
301 #endif // TPETRA_DETAILS_TRANSFER_DECL_HPP
Kokkos::DualView< const LO *, device_type > getRemoteLIDs_dv() const
List of entries in the target Map to receive from other processes, as a const DualView (that is sync'...
Forward declaration of Tpetra::Details::Transfer.
void describeImpl(Teuchos::FancyOStream &out, const std::string &className, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Implementation of describe() for subclasses (Tpetra::Import and Tpetra::Export).
Common base class of Import and Export.
Teuchos::FancyOStream & verboseOutputStream() const
Valid (nonnull) output stream for verbose output.
typename ExecutionSpace::memory_space comm_buffer_memory_space
Memory space used for MPI communication buffers.
Forward declaration of Tpetra::ImportExportData.
Teuchos::ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
Teuchos::ArrayView< const LO > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
Teuchos::RCP< const map_type > getTargetMap() const
The target Map used to construct this Export or Import.
size_t getNumSameIDs() const
Number of initial identical IDs.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
Kokkos::DualView< const LO *, device_type > getPermuteFromLIDs_dv() const
List of local IDs in the source Map that are permuted, as a const DualView (that is sync'd to both ho...
Declaration of the Tpetra::Map class and related nonmember constructors.
Teuchos::ArrayView< const LO > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
virtual ~Transfer()=default
Destructor (declared virtual for memory safety of derived classes).
Kokkos::DualView< const LO *, device_type > getPermuteToLIDs_dv() const
List of local IDs in the target Map that are permuted, as a const DualView (that is sync'd to both ho...
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
Sets up and executes a communication plan for a Tpetra DistObject.
Teuchos::RCP< ImportExportData< LO, GO, NT > > TransferData_
All the data needed for executing the Export communication plan.
Kokkos::DualView< const LO *, device_type > getExportLIDs_dv() const
List of entries in the source Map that will be sent to other processes, as a const DualView (that is ...
Teuchos::RCP< const map_type > getSourceMap() const
The source Map used to construct this Export or Import.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
bool isLocallyComplete() const
Is this Export or Import locally complete?
Teuchos::ArrayView< const LO > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
Teuchos::ArrayView< const LO > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
A parallel distribution of indices over processes.
::Tpetra::Distributor & getDistributor() const
The Distributor that this Export or Import object uses to move data.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Describe this object in a human-readable way to the given output stream.
bool verbose() const
Whether to print verbose debugging output.