summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/l2cache.cc
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-04-07 22:57:26 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:45 -0700
commit6f6c192ff335a5ed41008b69e7eb34929d7db3dd (patch)
tree6e5f437274d2bebf89e728985a281470afaa22c5 /src/gpgpu-sim/l2cache.cc
parent2fd5f159b3729c021ac4fbf8aa54f91c2f3ec166 (diff)
Cleaning up interconnection network memory partition to core statistics. Now counting the number of flits arriving at the cores instead of the number of flits leaving each memory partition.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15746]
Diffstat (limited to 'src/gpgpu-sim/l2cache.cc')
-rw-r--r--src/gpgpu-sim/l2cache.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc
index 21f837d..0a3d56f 100644
--- a/src/gpgpu-sim/l2cache.cc
+++ b/src/gpgpu-sim/l2cache.cc
@@ -76,7 +76,6 @@ memory_partition_unit::memory_partition_unit( unsigned partition_id,
if(!m_config->m_L2_config.disabled())
m_L2cache = new l2_cache(L2c_name,m_config->m_L2_config,-1,-1,m_L2interface,m_mf_allocator,IN_PARTITION_L2_MISS_QUEUE);
- n_mem_to_simt=0;
unsigned int icnt_L2;
unsigned int L2_dram;
unsigned int dram_L2;
@@ -109,7 +108,6 @@ void memory_partition_unit::cache_cycle( unsigned cycle )
mf->set_reply();
mf->set_status(IN_PARTITION_L2_TO_ICNT_QUEUE,gpu_sim_cycle+gpu_tot_sim_cycle);
m_L2_icnt_queue->push(mf);
- n_mem_to_simt+=mf->get_num_flits(false); // Interconnect power stats (# of flits sent to the SMs)
}else{
m_request_tracker.erase(mf);
delete mf;
@@ -128,7 +126,6 @@ void memory_partition_unit::cache_cycle( unsigned cycle )
mf->set_status(IN_PARTITION_L2_TO_ICNT_QUEUE,gpu_sim_cycle+gpu_tot_sim_cycle);
m_L2_icnt_queue->push(mf);
m_dram_L2_queue->pop();
- n_mem_to_simt+=mf->get_num_flits(false); // Interconnect power stats (# of flits sent to the SMs)
}
}
@@ -160,7 +157,6 @@ void memory_partition_unit::cache_cycle( unsigned cycle )
mf->set_reply();
mf->set_status(IN_PARTITION_L2_TO_ICNT_QUEUE,gpu_sim_cycle+gpu_tot_sim_cycle);
m_L2_icnt_queue->push(mf);
- n_mem_to_simt+=mf->get_num_flits(false); // Interconnect power stats (# of flits sent to the SMs)
}
m_icnt_L2_queue->pop();
} else {
@@ -413,7 +409,3 @@ void memory_partition_unit::set_L2cache_power_stats(unsigned &n_read_access,
unsigned &n_write_miss) const{
m_L2cache->get_data_stats(n_read_access,n_read_miss,n_write_access,n_write_miss);
}
-
-void memory_partition_unit::set_icnt_power_stats(unsigned &mem_to_simt) const{
- mem_to_simt = n_mem_to_simt;
-}