From 918b3ef50790f0ae7c8c079754f7332933572d5b Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Thu, 11 Apr 2013 05:17:09 -0800 Subject: Replaced the legacy L2 cache access stats with more meaningful breakdown that categorize access by their access type (global memory read/write, local memory read/write, instruction read, ... etc.). [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15784] --- src/gpgpu-sim/mem_latency_stat.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gpgpu-sim/mem_latency_stat.cc') diff --git a/src/gpgpu-sim/mem_latency_stat.cc b/src/gpgpu-sim/mem_latency_stat.cc index 7324033..a2c4177 100644 --- a/src/gpgpu-sim/mem_latency_stat.cc +++ b/src/gpgpu-sim/mem_latency_stat.cc @@ -30,6 +30,7 @@ #include "mem_latency_stat.h" #include "gpu-sim.h" #include "gpu-misc.h" +#include "gpu-cache.h" #include "shader.h" #include "mem_fetch.h" #include "stat-tool.h" @@ -124,10 +125,10 @@ memory_stats_t::memory_stats_t( unsigned n_shader, const struct shader_core_conf } } - L2_write_miss=0; - L2_write_access=0; - L2_read_access=0; - L2_read_miss=0; + // L2_write_miss=0; + // L2_write_access=0; + // L2_read_access=0; + // L2_read_miss=0; L2_cbtoL2length = (unsigned int*) calloc(mem_config->m_n_mem, sizeof(unsigned int)); L2_cbtoL2writelength = (unsigned int*) calloc(mem_config->m_n_mem, sizeof(unsigned int)); L2_L2tocblength = (unsigned int*) calloc(mem_config->m_n_mem, sizeof(unsigned int)); -- cgit v1.3