the mailbox of the processes of a communicator for the messages that are not trivially copyable, each the record of the bytes that MPICodec< Msg > gives, on an MPIByteMailbox (the same waves, the same stop and the same leftovers())
More...
#include <ADS/distributed/MPIMailbox.h>
|
| using | Message = Msg |
| | the type of the messages
|
|
| | MPIMailbox (MPI_Comm comm=MPI_COMM_WORLD, std::size_t batch=65536) |
| | the mailbox of the processes of comm, which sends an outbox when it holds batch bytes; a collective operation
|
| std::size_t | rank (void) const |
| | the rank of this process
|
| std::size_t | size (void) const |
| | the number of the processes
|
| void | send (std::size_t to, const Msg &x) |
| | the bytes of \( x \) appended to the outbox for to, as MPIByteMailbox::send()
|
| void | flush (void) |
| | the outboxes sent, unless stopped
|
| template<class F> |
| std::size_t | poll (F &&f) |
| | the calls f( x ) on the messages received, rebuilt, and their number
|
| bool | quiescent (void) |
| | as MPIByteMailbox::quiescent()
|
| template<class F> |
| std::size_t | leftovers (F &&f) |
| | as MPIByteMailbox::leftovers(), the messages rebuilt
|
| void | stop (void) |
| | as MPIByteMailbox::stop()
|
| bool | stopped (void) const |
| | true once this process has stopped
|
| bool | terminated (void) const |
| | true once quiescent() has seen the end
|
| std::uint64_t | sent (void) const |
| | the messages sent by this process so far
|
| std::uint64_t | batches (void) const |
| | the batches sent by MPI so far
|
| std::uint64_t | received (void) const |
| | the messages received by this process so far
|
| std::uint64_t | waves (void) const |
| | the waves completed so far
|
| MPI_Comm | comm (void) const |
| | the communicator of the mailbox
|
| | ~MPIMailbox () |
| | the closing, if leftovers() did not do it, its messages dropped; a collective operation
|
template<class Msg>
class ADS::MPIMailbox< Msg, false >
the mailbox of the processes of a communicator for the messages that are not trivially copyable, each the record of the bytes that MPICodec< Msg > gives, on an MPIByteMailbox (the same waves, the same stop and the same leftovers())
◆ Message
◆ MPIMailbox()
template<class Msg>
| ADS::MPIMailbox< Msg, false >::MPIMailbox |
( |
MPI_Comm | comm = MPI_COMM_WORLD, |
|
|
std::size_t | batch = 65536 ) |
|
inlineexplicit |
the mailbox of the processes of comm, which sends an outbox when it holds batch bytes; a collective operation
- Precondition
- MPI is initialized, \( \mathit{batch} \ge 1 \)
◆ ~MPIMailbox()
the closing, if leftovers() did not do it, its messages dropped; a collective operation
◆ batches()
the batches sent by MPI so far
◆ comm()
the communicator of the mailbox
◆ flush()
the outboxes sent, unless stopped
◆ leftovers()
template<class Msg>
template<class F>
◆ poll()
template<class Msg>
template<class F>
the calls f( x ) on the messages received, rebuilt, and their number
◆ quiescent()
◆ rank()
◆ received()
the messages received by this process so far
◆ send()
◆ sent()
the messages sent by this process so far
◆ size()
the number of the processes
◆ stop()
as MPIByteMailbox::stop()
◆ stopped()
true once this process has stopped
◆ terminated()
◆ waves()
the waves completed so far
The documentation for this class was generated from the following file: