From 46cce440be4999cfdedebbf190c83570ba9f1b49 Mon Sep 17 00:00:00 2001 From: Tushar Krishna Date: Mon, 21 Mar 2011 22:51:59 -0400 Subject: This patch makes garnet use the info about active and inactive vnets during allocation and power estimations etc --- src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc') diff --git a/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc b/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc index 8280360c4..205eb1472 100644 --- a/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc +++ b/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc @@ -260,6 +260,9 @@ GarnetNetwork::printStats(ostream& out) const out << "-------------" << endl; for (int i = 0; i < m_vcs_per_class*m_virtual_networks; i++) { + if (!m_in_use[i/m_vcs_per_class]) + continue; + average_vc_load[i] = (double(average_vc_load[i]) / (double(g_eventQueue_ptr->getTime()) - m_ruby_start)); out << "Average VC Load [" << i << "] = " << average_vc_load[i] << -- cgit v1.2.3