summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.h
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/shader.h
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/shader.h')
-rw-r--r--src/gpgpu-sim/shader.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index c3420e6..ba63634 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -1376,7 +1376,7 @@ struct shader_core_stats_pod {
unsigned *l1d_write_miss; // L1 Data cache write miss
unsigned *n_simt_to_mem; // Interconnect power stats
-
+ unsigned *n_mem_to_simt;
};
class shader_core_stats : public shader_core_stats_pod {
@@ -1439,6 +1439,7 @@ public:
l1d_write_miss = (unsigned *)calloc(config->num_shader(), sizeof(unsigned));
n_simt_to_mem = (unsigned *)calloc(config->num_shader(), sizeof(unsigned));
+ n_mem_to_simt = (unsigned *)calloc(config->num_shader(), sizeof(unsigned));
gpgpu_n_shmem_bank_access = (unsigned *)calloc(config->num_shader(), sizeof(unsigned));
@@ -1585,7 +1586,7 @@ public:
void print_cache_stats( FILE *fp, unsigned& dl1_accesses, unsigned& dl1_misses );
void get_cache_stats(unsigned &read_accesses, unsigned &write_accesses, unsigned &read_misses, unsigned &write_misses, unsigned cache_type);
- void set_icnt_power_stats(unsigned &n_simt_to_mem) const;
+ void set_icnt_power_stats(unsigned &n_simt_to_mem, unsigned &n_mem_to_simt) const;
// debug:
void display_simt_state(FILE *fout, int mask ) const;
@@ -1829,7 +1830,7 @@ public:
void print_cache_stats( FILE *fp, unsigned& dl1_accesses, unsigned& dl1_misses ) const;
void get_cache_stats(unsigned &read_accesses, unsigned &write_accesses, unsigned &read_misses, unsigned &write_misses, unsigned cache_type) const;
- void set_icnt_stats(unsigned &n_simt_to_mem) const;
+ void set_icnt_stats(unsigned &n_simt_to_mem, unsigned &n_mem_to_simt) const;
private:
unsigned m_cluster_id;