ns-3
|
#include <mpi-interface.h>
Static Public Member Functions | |
static void | Destroy () |
static uint32_t | GetSystemId () |
static uint32_t | GetSize () |
static bool | IsEnabled () |
static void | Enable (int *pargc, char ***pargv) |
static void | Disable () |
static void | SendPacket (Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev) |
static void | ReceiveMessages () |
static void | TestSendComplete () |
static uint32_t | GetRxCount () |
static uint32_t | GetTxCount () |
Interface between ns-3 and MPI
|
static |
Delete all buffers
References GetSize().
|
static |
Terminates the MPI environment by calling MPI_Finalize This function must be called after Destroy () It also resets m_initialized, m_enabled
References NS_FATAL_ERROR.
|
static |
pargc | number of command line arguments |
pargv | command line arguments |
Sets up MPI interface
References GetSize(), ns3::MAX_MPI_MSG_SIZE, and NS_FATAL_ERROR.
|
static |
Referenced by ns3::DistributedSimulatorImpl::Run().
|
static |
Referenced by Destroy(), Enable(), and ReceiveMessages().
|
static |
Referenced by ns3::GlobalRouteManagerImpl::InitializeRoutes(), and ns3::PointToPointHelper::Install().
|
static |
Referenced by ns3::DistributedSimulatorImpl::Run().
|
static |
Referenced by ns3::PointToPointHelper::Install().
|
static |
Check for received messages complete
References ns3::Node::GetDevice(), ns3::Node::GetId(), ns3::NetDevice::GetIfIndex(), ns3::Node::GetNDevices(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), GetSize(), ns3::MAX_MPI_MSG_SIZE, ns3::NanoSeconds(), ns3::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
References ns3::Time::GetNanoSeconds(), ns3::NodeList::GetNode(), ns3::Packet::GetSerializedSize(), ns3::Node::GetSystemId(), and NS_FATAL_ERROR.
|
static |
Check for completed sends
References NS_FATAL_ERROR.
Referenced by ns3::DistributedSimulatorImpl::Run().