Interface between ns-3 and MPI. More...
#include <granted-time-window-mpi-interface.h>
Inheritance diagram for ns3::GrantedTimeWindowMpiInterface:
Collaboration diagram for ns3::GrantedTimeWindowMpiInterface:Public Member Functions | |
| virtual void | Destroy () |
| Delete all buffers. More... | |
| virtual void | Disable () |
| Terminates the MPI environment by calling MPI_Finalize This function must be called after Destroy () It also resets m_initialized, m_enabled. More... | |
| virtual void | Enable (int *pargc, char ***pargv) |
| virtual uint32_t | GetSize () |
| virtual uint32_t | GetSystemId () |
| virtual bool | IsEnabled () |
| virtual void | SendPacket (Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev) |
Public Member Functions inherited from ns3::ParallelCommunicationInterface | |
| virtual | ~ParallelCommunicationInterface () |
| Destructor. More... | |
Static Public Member Functions | |
| static uint32_t | GetRxCount () |
| static uint32_t | GetTxCount () |
| static TypeId | GetTypeId (void) |
| static void | ReceiveMessages () |
| Check for received messages complete. More... | |
| static void | TestSendComplete () |
| Check for completed sends. More... | |
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 |
Additional Inherited Members | |
Private Member Functions inherited from ns3::Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| void | AggregateObject (Ptr< Object > other) |
| Aggregate two Objects together. More... | |
| void | Dispose (void) |
| Dispose of this Object. More... | |
| AggregateIterator | GetAggregateIterator (void) const |
| Get an iterator to the Objects aggregated to this one. More... | |
| virtual TypeId | GetInstanceTypeId (void) const |
| Implement the GetInstanceTypeId method defined in ObjectBase. More... | |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| Get a pointer to the requested aggregated Object. More... | |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| Get a pointer to the requested aggregated Object. More... | |
| void | Initialize (void) |
| Invoke DoInitialize on all Objects aggregated to this one. More... | |
| Object (const Object &o) | |
| Copy an Object. More... | |
| virtual void | DoDispose (void) |
| Destructor implementation. More... | |
| virtual void | DoInitialize (void) |
| Initialize() implementation. More... | |
| virtual void | NotifyNewAggregate (void) |
| Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Private Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| Constructor. More... | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. More... | |
| uint32_t | GetReferenceCount (void) const |
| Get the reference count of the object. More... | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment. More... | |
| void | Ref (void) const |
| Increment the reference count. More... | |
| void | Unref (void) const |
| Decrement the reference count. More... | |
Private Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. More... | |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
| Get the value of an attribute without raising erros. More... | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set a single attribute, raising fatal errors if unsuccessful. More... | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| Set a single attribute without raising errors. More... | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| Connect a TraceSource to a Callback with a context. More... | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| Connect a TraceSource to a Callback without a context. More... | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected with a context. More... | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected without a context. More... | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| Complete construction of ObjectBase; invoked by derived classes. More... | |
| virtual void | NotifyConstructionCompleted (void) |
| Notifier called once the ObjectBase is fully constructed. More... | |
Static Private Member Functions inherited from ns3::Object | |
| static TypeId | GetTypeId (void) |
| Register this type. More... | |
Static Private Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| static void | Cleanup (void) |
| Noop. More... | |
Static Private Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId (void) |
| Get the type ID. More... | |
Related Functions inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid (void) |
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Interface between ns-3 and MPI.
Implements the interface used by the singleton parallel controller to interface between NS3 and the communications layer being used for inter-task packet transfers.
Definition at line 91 of file granted-time-window-mpi-interface.h.
|
virtual |
Delete all buffers.
Implements ns3::ParallelCommunicationInterface.
Definition at line 102 of file granted-time-window-mpi-interface.cc.
References GetSize(), m_pendingTx, m_pRxBuffers, m_requests, and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
virtual |
Terminates the MPI environment by calling MPI_Finalize This function must be called after Destroy () It also resets m_initialized, m_enabled.
Implements ns3::ParallelCommunicationInterface.
Definition at line 314 of file granted-time-window-mpi-interface.cc.
References m_enabled, m_initialized, NS_FATAL_ERROR, and NS_LOG_FUNCTION_NOARGS.
|
virtual |
| pargc | number of command line arguments |
| pargv | command line arguments |
Sets up MPI interface
Implements ns3::ParallelCommunicationInterface.
Definition at line 164 of file granted-time-window-mpi-interface.cc.
References GetSize(), m_enabled, m_initialized, m_pRxBuffers, m_requests, m_sid, m_size, ns3::MAX_MPI_MSG_SIZE, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
static |
Definition at line 119 of file granted-time-window-mpi-interface.cc.
References m_rxCount.
Referenced by ns3::DistributedSimulatorImpl::Run().
Here is the caller graph for this function:
|
virtual |
Implements ns3::ParallelCommunicationInterface.
Definition at line 142 of file granted-time-window-mpi-interface.cc.
References ns3::Simulator::GetImplementation(), m_initialized, and m_size.
Referenced by Destroy(), and Enable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements ns3::ParallelCommunicationInterface.
Definition at line 131 of file granted-time-window-mpi-interface.cc.
References ns3::Simulator::GetImplementation(), m_initialized, and m_sid.
Here is the call graph for this function:
|
static |
Definition at line 125 of file granted-time-window-mpi-interface.cc.
References m_txCount.
Referenced by ns3::DistributedSimulatorImpl::Run().
Here is the caller graph for this function:
|
static |
Definition at line 92 of file granted-time-window-mpi-interface.cc.
References ns3::TypeId::SetParent().
Here is the call graph for this function:
|
virtual |
Implements ns3::ParallelCommunicationInterface.
Definition at line 153 of file granted-time-window-mpi-interface.cc.
References ns3::Simulator::GetImplementation(), m_enabled, and m_initialized.
Here is the call graph for this function:
|
static |
Check for received messages complete.
Definition at line 226 of file granted-time-window-mpi-interface.cc.
References ns3::Node::GetDevice(), ns3::Node::GetId(), ns3::Node::GetNDevices(), ns3::NodeList::GetNode(), ns3::MpiInterface::GetSize(), m_pRxBuffers, m_requests, m_rxCount, ns3::MAX_MPI_MSG_SIZE, ns3::Simulator::Now(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION_NOARGS, ns3::MpiReceiver::Receive(), and ns3::Simulator::ScheduleWithContext().
Referenced by ns3::DistributedSimulatorImpl::Run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| 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
Implements ns3::ParallelCommunicationInterface.
Definition at line 191 of file granted-time-window-mpi-interface.cc.
References ns3::Time::GetInteger(), ns3::NodeList::GetNode(), ns3::Packet::GetSerializedSize(), ns3::Node::GetSystemId(), ns3::Time::GetTimeStep(), m_pendingTx, m_txCount, NS_FATAL_ERROR, NS_LOG_FUNCTION, and ns3::Packet::Serialize().
Here is the call graph for this function:
|
static |
Check for completed sends.
Definition at line 290 of file granted-time-window-mpi-interface.cc.
References m_pendingTx, NS_FATAL_ERROR, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::DistributedSimulatorImpl::Run().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 161 of file granted-time-window-mpi-interface.h.
Referenced by Disable(), Enable(), and IsEnabled().
|
staticprivate |
Definition at line 160 of file granted-time-window-mpi-interface.h.
Referenced by Disable(), Enable(), GetSize(), GetSystemId(), and IsEnabled().
|
staticprivate |
Definition at line 170 of file granted-time-window-mpi-interface.h.
Referenced by Destroy(), SendPacket(), and TestSendComplete().
|
staticprivate |
Definition at line 167 of file granted-time-window-mpi-interface.h.
Referenced by Destroy(), Enable(), and ReceiveMessages().
|
staticprivate |
Definition at line 164 of file granted-time-window-mpi-interface.h.
Referenced by Destroy(), Enable(), and ReceiveMessages().
|
staticprivate |
Definition at line 156 of file granted-time-window-mpi-interface.h.
Referenced by GetRxCount(), and ReceiveMessages().
|
staticprivate |
Definition at line 152 of file granted-time-window-mpi-interface.h.
Referenced by Enable(), and GetSystemId().
|
staticprivate |
Definition at line 153 of file granted-time-window-mpi-interface.h.
|
staticprivate |
Definition at line 159 of file granted-time-window-mpi-interface.h.
Referenced by GetTxCount(), and SendPacket().