summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.h
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-06-09 21:56:23 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:47 -0700
commit5eebb5d3938302ffff1ab80e09bf6065e2fa1c92 (patch)
tree96d0c3e7a7c0967d6f181c127376948c17be3e98 /src/gpgpu-sim/shader.h
parentad5ea1e3b77bfa5b36d529de24e9b5c5c1113cf3 (diff)
Fixing interconnect stats bug
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16428]
Diffstat (limited to 'src/gpgpu-sim/shader.h')
-rw-r--r--src/gpgpu-sim/shader.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index f4d300b..3979ad1 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -1375,8 +1375,8 @@ struct shader_core_stats_pod {
unsigned *l1d_write_access; // L1 Data cache write access
unsigned *l1d_write_miss; // L1 Data cache write miss
- unsigned *n_simt_to_mem; // Interconnect power stats
- unsigned *n_mem_to_simt;
+ long *n_simt_to_mem; // Interconnect power stats
+ long *n_mem_to_simt;
};
class shader_core_stats : public shader_core_stats_pod {
@@ -1438,8 +1438,8 @@ public:
l1d_write_access = (unsigned *)calloc(config->num_shader(), sizeof(unsigned));
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));
+ n_simt_to_mem = (long *)calloc(config->num_shader(), sizeof(long));
+ n_mem_to_simt = (long *)calloc(config->num_shader(), sizeof(long));
gpgpu_n_shmem_bank_access = (unsigned *)calloc(config->num_shader(), sizeof(unsigned));
@@ -1586,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, unsigned &n_mem_to_simt) const;
+ void set_icnt_power_stats(long &n_simt_to_mem, long &n_mem_to_simt) const;
// debug:
void display_simt_state(FILE *fout, int mask ) const;
@@ -1830,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, unsigned &n_mem_to_simt) const;
+ void set_icnt_stats(long &n_simt_to_mem, long &n_mem_to_simt) const;
private:
unsigned m_cluster_id;
@@ -1854,8 +1854,8 @@ public:
}
virtual void push(mem_fetch *mf)
{
- m_cluster->icnt_inject_request_packet(mf);
- m_core->inc_simt_to_mem(mf->get_num_flits(true));
+ m_core->inc_simt_to_mem(mf->get_num_flits(true));
+ m_cluster->icnt_inject_request_packet(mf);
}
private:
shader_core_ctx *m_core;
@@ -1873,8 +1873,8 @@ public:
{
if ( mf && mf->isatomic() )
mf->do_atomic(); // execute atomic inside the "memory subsystem"
- m_cluster->push_response_fifo(mf);
m_core->inc_simt_to_mem(mf->get_num_flits(true));
+ m_cluster->push_response_fifo(mf);
}
private:
shader_core_ctx *m_core;