Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 > Class Template Reference

Partial pecialization for rank-0 (single-value) send and receive buffers. More...

#include <Tpetra_Details_iallreduce.hpp>

Inheritance diagram for Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >:
Inheritance graph
[legend]

Public Types

typedef ::Kokkos::View< const
PacketType, SendLayoutType,
SendDeviceType > 
send_buffer_type
 Type of the send buffer. More...
 
typedef ::Kokkos::View
< PacketType, RecvLayoutType,
RecvDeviceType > 
recv_buffer_type
 Type of the receive buffer. More...
 

Public Member Functions

 IallreduceCommRequest ()
 Default constructor. More...
 
 IallreduceCommRequest (const std::shared_ptr< CommRequest > &req, const send_buffer_type &sendbuf, const recv_buffer_type &recvbuf)
 Constructor that takes a wrapped request (representing the pending MPI_Iallreduce operation itself), and saved buffers. More...
 
virtual ~IallreduceCommRequest ()
 Destructor (virtual for memory safety). More...
 
void wait ()
 Wait on this communication request to complete. More...
 
void cancel ()
 Cancel the pending communication request. More...
 

Detailed Description

template<class PacketType, class SendLayoutType, class SendDeviceType, class RecvLayoutType, class RecvDeviceType>
class Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >

Partial pecialization for rank-0 (single-value) send and receive buffers.

Definition at line 346 of file Tpetra_Details_iallreduce.hpp.

Member Typedef Documentation

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
typedef ::Kokkos::View<const PacketType, SendLayoutType, SendDeviceType> Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::send_buffer_type

Type of the send buffer.

Definition at line 360 of file Tpetra_Details_iallreduce.hpp.

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
typedef ::Kokkos::View<PacketType, RecvLayoutType, RecvDeviceType> Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::recv_buffer_type

Type of the receive buffer.

Definition at line 363 of file Tpetra_Details_iallreduce.hpp.

Constructor & Destructor Documentation

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::IallreduceCommRequest ( )
inline

Default constructor.

Definition at line 355 of file Tpetra_Details_iallreduce.hpp.

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::IallreduceCommRequest ( const std::shared_ptr< CommRequest > &  req,
const send_buffer_type sendbuf,
const recv_buffer_type recvbuf 
)
inline

Constructor that takes a wrapped request (representing the pending MPI_Iallreduce operation itself), and saved buffers.

Definition at line 368 of file Tpetra_Details_iallreduce.hpp.

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
virtual Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::~IallreduceCommRequest ( )
inlinevirtual

Destructor (virtual for memory safety).

Definition at line 386 of file Tpetra_Details_iallreduce.hpp.

Member Function Documentation

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
void Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::wait ( )
inlinevirtual

Wait on this communication request to complete.

This is a blocking operation. The user is responsible for avoiding deadlock.

Implements Tpetra::Details::CommRequest.

Definition at line 407 of file Tpetra_Details_iallreduce.hpp.

template<class PacketType , class SendLayoutType , class SendDeviceType , class RecvLayoutType , class RecvDeviceType >
void Tpetra::Details::Impl::IallreduceCommRequest< PacketType, SendLayoutType, SendDeviceType, RecvLayoutType, RecvDeviceType, 0 >::cancel ( )
inlinevirtual

Cancel the pending communication request.

This operation must be idempotent.

Implements Tpetra::Details::CommRequest.

Definition at line 424 of file Tpetra_Details_iallreduce.hpp.


The documentation for this class was generated from the following file: