ruby: network: removes reset functionality
This commit is contained in:
parent
e7bd70e079
commit
0280997fbf
7 changed files with 0 additions and 44 deletions
|
@ -88,8 +88,6 @@ class Network : public ClockedObject
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry) = 0;
|
const NetDest& routing_table_entry) = 0;
|
||||||
|
|
||||||
virtual void reset() = 0;
|
|
||||||
|
|
||||||
virtual void printStats(std::ostream& out) const = 0;
|
virtual void printStats(std::ostream& out) const = 0;
|
||||||
virtual void clearStats() = 0;
|
virtual void clearStats() = 0;
|
||||||
virtual void print(std::ostream& out) const = 0;
|
virtual void print(std::ostream& out) const = 0;
|
||||||
|
|
|
@ -128,17 +128,6 @@ GarnetNetwork_d::~GarnetNetwork_d()
|
||||||
delete m_topology_ptr;
|
delete m_topology_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
GarnetNetwork_d::reset()
|
|
||||||
{
|
|
||||||
for (int node = 0; node < m_nodes; node++) {
|
|
||||||
for (int j = 0; j < m_virtual_networks; j++) {
|
|
||||||
m_toNetQueues[node][j]->clear();
|
|
||||||
m_fromNetQueues[node][j]->clear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function creates a link from the Network Interface (NI)
|
* This function creates a link from the Network Interface (NI)
|
||||||
* into the Network.
|
* into the Network.
|
||||||
|
|
|
@ -74,8 +74,6 @@ class GarnetNetwork_d : public BaseGarnetNetwork
|
||||||
return m_vnet_type[vnet];
|
return m_vnet_type[vnet];
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset();
|
|
||||||
|
|
||||||
// Methods used by Topology to setup the network
|
// Methods used by Topology to setup the network
|
||||||
void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
|
|
|
@ -97,17 +97,6 @@ GarnetNetwork::~GarnetNetwork()
|
||||||
delete m_topology_ptr;
|
delete m_topology_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
GarnetNetwork::reset()
|
|
||||||
{
|
|
||||||
for (int node = 0; node < m_nodes; node++) {
|
|
||||||
for (int j = 0; j < m_virtual_networks; j++) {
|
|
||||||
m_toNetQueues[node][j]->clear();
|
|
||||||
m_fromNetQueues[node][j]->clear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
|
|
|
@ -61,8 +61,6 @@ class GarnetNetwork : public BaseGarnetNetwork
|
||||||
|
|
||||||
int getNumNodes(){ return m_nodes; }
|
int getNumNodes(){ return m_nodes; }
|
||||||
|
|
||||||
void reset();
|
|
||||||
|
|
||||||
void printLinkStats(std::ostream& out) const;
|
void printLinkStats(std::ostream& out) const;
|
||||||
void printPowerStats(std::ostream& out) const;
|
void printPowerStats(std::ostream& out) const;
|
||||||
void print(std::ostream& out) const;
|
void print(std::ostream& out) const;
|
||||||
|
|
|
@ -99,21 +99,6 @@ SimpleNetwork::init()
|
||||||
m_topology_ptr->createLinks(this);
|
m_topology_ptr->createLinks(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
SimpleNetwork::reset()
|
|
||||||
{
|
|
||||||
for (int node = 0; node < m_nodes; node++) {
|
|
||||||
for (int j = 0; j < m_virtual_networks; j++) {
|
|
||||||
m_toNetQueues[node][j]->clear();
|
|
||||||
m_fromNetQueues[node][j]->clear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for(int i = 0; i < m_switches.size(); i++){
|
|
||||||
m_switches[i]->clearBuffers();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SimpleNetwork::~SimpleNetwork()
|
SimpleNetwork::~SimpleNetwork()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_nodes; i++) {
|
for (int i = 0; i < m_nodes; i++) {
|
||||||
|
|
|
@ -58,7 +58,6 @@ class SimpleNetwork : public Network
|
||||||
|
|
||||||
void printStats(std::ostream& out) const;
|
void printStats(std::ostream& out) const;
|
||||||
void clearStats();
|
void clearStats();
|
||||||
void reset();
|
|
||||||
|
|
||||||
// returns the queue requested for the given component
|
// returns the queue requested for the given component
|
||||||
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
|
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
|
||||||
|
|
Loading…
Reference in a new issue