diff options
author | Tushar Krishna <tushar@csail.mit.edu> | 2011-03-21 22:51:59 -0400 |
---|---|---|
committer | Tushar Krishna <tushar@csail.mit.edu> | 2011-03-21 22:51:59 -0400 |
commit | 46cce440be4999cfdedebbf190c83570ba9f1b49 (patch) | |
tree | 814477ea1de4ac4fc40d6bfd00764316bb37a45c /src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc | |
parent | 1b9002eefc39654b18547d7adb77b6fec77d883e (diff) | |
download | gem5-46cce440be4999cfdedebbf190c83570ba9f1b49.tar.xz |
This patch makes garnet use the info about active and inactive vnets during allocation and power estimations etc
Diffstat (limited to 'src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc')
-rw-r--r-- | src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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] << |