diff options
| author | Tim Rogers <[email protected]> | 2011-10-25 09:33:47 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:18:23 -0700 |
| commit | 90edcc1de1fab2889aed1e4a1fa0203fb7b57106 (patch) | |
| tree | 02e66fa6efadc2909367e0d8b2915916ecdd164b /src/gpgpu-sim/shader.h | |
| parent | 1bfd7b930ccdbd758c5eec202f43e7ba7ab9c377 (diff) | |
Integration change. CL 8980 - l1 cache stat print
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10726]
Diffstat (limited to 'src/gpgpu-sim/shader.h')
| -rw-r--r-- | src/gpgpu-sim/shader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h index 871a7ce..dcb24be 100644 --- a/src/gpgpu-sim/shader.h +++ b/src/gpgpu-sim/shader.h @@ -891,6 +891,7 @@ public: virtual bool stallable() const { return true; } bool response_buffer_full() const; void print(FILE *fout) const; + void print_cache_stats( FILE *fp, unsigned& dl1_accesses, unsigned& dl1_misses ); private: bool shared_cycle( warp_inst_t &inst, mem_stage_stall_type &rc_fail, mem_stage_access_type &fail_type); @@ -1185,6 +1186,7 @@ public: // accessors std::list<unsigned> get_regs_written( const inst_t &fvt ) const; const shader_core_config *get_config() const { return m_config; } + void print_cache_stats( FILE *fp, unsigned& dl1_accesses, unsigned& dl1_misses ); // debug: void display_simt_state(FILE *fout, int mask ) const; @@ -1301,6 +1303,7 @@ public: gpgpu_sim *get_gpu() { return m_gpu; } void display_pipeline( unsigned sid, FILE *fout, int print_mem, int mask ); + void print_cache_stats( FILE *fp, unsigned& dl1_accesses, unsigned& dl1_misses ) const; private: unsigned m_cluster_id; |
