#include <mpi-interface.h>
Static Public Member Functions | |
| static void | Destroy () |
| static void | Disable () |
| static void | Enable (int *pargc, char ***pargv) |
| static uint32_t | GetRxCount () |
| static uint32_t | GetSize () |
| static uint32_t | GetSystemId () |
| static uint32_t | GetTxCount () |
| static bool | IsEnabled () |
| static void | ReceiveMessages () |
| static void | SendPacket (Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev) |
| static void | TestSendComplete () |
Static Private Attributes | |
| static bool | m_enabled = false |
| static bool | m_initialized = false |
| static std::list< SentBuffer > | m_pendingTx |
| static char ** | m_pRxBuffers |
| static MPI_Request * | m_requests |
| static uint32_t | m_rxCount = 0 |
| static uint32_t | m_sid = 0 |
| static uint32_t | m_size = 1 |
| static uint32_t | m_txCount = 0 |
Interface between ns-3 and MPI
Definition at line 89 of file mpi-interface.h.
|
static |
Delete all buffers
Definition at line 87 of file mpi-interface.cc.
References GetSize().
Referenced by ns3::DistributedSimulatorImpl::Destroy().
|
static |
Terminates the MPI environment by calling MPI_Finalize This function must be called after Destroy () It also resets m_initialized, m_enabled
Definition at line 288 of file mpi-interface.cc.
References NS_FATAL_ERROR.
|
static |
| pargc | number of command line arguments |
| pargv | command line arguments |
Sets up MPI interface
Definition at line 147 of file mpi-interface.cc.
References GetSize(), ns3::MAX_MPI_MSG_SIZE, and NS_FATAL_ERROR.
|
static |
Definition at line 102 of file mpi-interface.cc.
Referenced by ns3::DistributedSimulatorImpl::Run().
|
static |
Definition at line 125 of file mpi-interface.cc.
Referenced by Destroy(), Enable(), and ReceiveMessages().
|
static |
Definition at line 114 of file mpi-interface.cc.
Referenced by ns3::GlobalRouteManagerImpl::InitializeRoutes(), and ns3::PointToPointHelper::Install().
|
static |
Definition at line 108 of file mpi-interface.cc.
Referenced by ns3::DistributedSimulatorImpl::Run().
|
static |
Definition at line 136 of file mpi-interface.cc.
Referenced by ns3::PointToPointHelper::Install().
|
static |
Check for received messages complete
Definition at line 205 of file mpi-interface.cc.
References ns3::Node::GetDevice(), ns3::Node::GetId(), ns3::Node::GetNDevices(), ns3::NodeList::GetNode(), GetSize(), ns3::MAX_MPI_MSG_SIZE, ns3::NanoSeconds(), ns3::Simulator::Now(), NS_ASSERT, NS_FATAL_ERROR, ns3::MpiReceiver::Receive(), and ns3::Simulator::ScheduleWithContext().
Referenced by ns3::DistributedSimulatorImpl::Run().
|
static |
| p | packet to send |
| rxTime | received time at destination node |
| node | destination node |
| dev | destination device |
Serialize and send a packet to the specified node and net device
Definition at line 172 of file mpi-interface.cc.
References ns3::Time::GetNanoSeconds(), ns3::NodeList::GetNode(), ns3::Packet::GetSerializedSize(), ns3::Node::GetSystemId(), and NS_FATAL_ERROR.
Referenced by ns3::PointToPointRemoteChannel::TransmitStart().
|
static |
Check for completed sends
Definition at line 266 of file mpi-interface.cc.
References NS_FATAL_ERROR.
Referenced by ns3::DistributedSimulatorImpl::Run().