Go to the documentation of this file.
18 #ifndef __BIN_MPIPING_MPIPING_H
19 #define __BIN_MPIPING_MPIPING_H
81 const int number)
const;
92 const int expectedNumber)
const;
virtual Result exec()
Execute the application.
Result receiveNumber(const Size coreId, const int expectedNumber) const
Receive a message containing a number.
static const int PongMagicNumber
Magic number send for the pong message.
Send a ping message via MPI to all available nodes.
POSIX-compatible application.
virtual ~MpiPing()
Destructor.
virtual Result initialize()
Initialize the application.
unsigned int Size
Any sane size indicator cannot go negative.
Result sendNumber(const Size coreId, const int number) const
Send a message containing a number.
int m_mpiInitResult
Result of MPI initialization.
static const int PingMagicNumber
Magic number to send as ping message.
MpiPing(int argc, char **argv)
Constructor.
int m_id
MPI core identifier (rank) of the current process.