ruby: network: removes unused code.
This commit is contained in:
parent
dd5c72e5a7
commit
db5b3d37fe
8 changed files with 1 additions and 27 deletions
|
@ -98,9 +98,3 @@ Network::MessageSizeType_to_int(MessageSizeType size_type)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<Throttle*>*
|
|
||||||
Network::getThrottles(NodeID id) const
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
|
@ -75,7 +75,6 @@ class Network : public ClockedObject
|
||||||
int netNumber, std::string vnet_type) = 0;
|
int netNumber, std::string vnet_type) = 0;
|
||||||
virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
|
virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
|
||||||
int netNumber, std::string vnet_type) = 0;
|
int netNumber, std::string vnet_type) = 0;
|
||||||
virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
|
|
||||||
virtual int getNumNodes() {return 1;}
|
virtual int getNumNodes() {return 1;}
|
||||||
|
|
||||||
virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
||||||
|
|
|
@ -343,7 +343,7 @@ NetworkInterface_d::scheduleOutputLink()
|
||||||
int
|
int
|
||||||
NetworkInterface_d::get_vnet(int vc)
|
NetworkInterface_d::get_vnet(int vc)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_net_ptr->getNumberOfVirtualNetworks(); i++) {
|
for (int i = 0; i < m_virtual_networks; i++) {
|
||||||
if (vc >= (i*m_vc_per_vnet) && vc < ((i+1)*m_vc_per_vnet)) {
|
if (vc >= (i*m_vc_per_vnet) && vc < ((i+1)*m_vc_per_vnet)) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,15 +196,6 @@ SimpleNetwork::getFromNetQueue(NodeID id, bool ordered, int network_num,
|
||||||
return m_fromNetQueues[id][network_num];
|
return m_fromNetQueues[id][network_num];
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<Throttle*>*
|
|
||||||
SimpleNetwork::getThrottles(NodeID id) const
|
|
||||||
{
|
|
||||||
assert(id >= 0);
|
|
||||||
assert(id < m_nodes);
|
|
||||||
assert(m_endpoint_switches[id] != NULL);
|
|
||||||
return m_endpoint_switches[id]->getThrottles();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SimpleNetwork::regStats()
|
SimpleNetwork::regStats()
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,7 +62,6 @@ class SimpleNetwork : public Network
|
||||||
// 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);
|
||||||
MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
|
MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
|
||||||
virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
|
|
||||||
|
|
||||||
bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
|
bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
|
||||||
bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
|
bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
|
||||||
|
|
|
@ -116,12 +116,6 @@ Switch::getThrottle(LinkID link_number) const
|
||||||
return m_throttles[link_number];
|
return m_throttles[link_number];
|
||||||
}
|
}
|
||||||
|
|
||||||
const vector<Throttle*>*
|
|
||||||
Switch::getThrottles() const
|
|
||||||
{
|
|
||||||
return &m_throttles;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Switch::regStats()
|
Switch::regStats()
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,7 +67,6 @@ class Switch : public BasicRouter
|
||||||
const NetDest& routing_table_entry, Cycles link_latency,
|
const NetDest& routing_table_entry, Cycles link_latency,
|
||||||
int bw_multiplier);
|
int bw_multiplier);
|
||||||
const Throttle* getThrottle(LinkID link_number) const;
|
const Throttle* getThrottle(LinkID link_number) const;
|
||||||
const std::vector<Throttle*>* getThrottles() const;
|
|
||||||
|
|
||||||
void resetStats();
|
void resetStats();
|
||||||
void collateStats();
|
void collateStats();
|
||||||
|
|
|
@ -39,8 +39,6 @@
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
const int HIGH_RANGE = 256;
|
|
||||||
const int ADJUST_INTERVAL = 50000;
|
|
||||||
const int MESSAGE_SIZE_MULTIPLIER = 1000;
|
const int MESSAGE_SIZE_MULTIPLIER = 1000;
|
||||||
//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems
|
//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems
|
||||||
const int BROADCAST_SCALING = 1;
|
const int BROADCAST_SCALING = 1;
|
||||||
|
|
Loading…
Reference in a new issue