diff options
| author | Tor Aamodt <[email protected]> | 2010-10-24 13:05:48 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-24 13:05:48 -0800 |
| commit | 826a0dc10ca939af1f2c24d0d2e63eb2b33cb731 (patch) | |
| tree | 109e36f1d5a1f1c8e6d9c94b4c81c27e8fd46944 /src/gpgpu-sim/shader.h | |
| parent | ad07a5645d60d1db972d1a063585deb1a9ac229c (diff) | |
1. updates to .gdbinit file
2. update texture to bypass ROP-delay queue... correlation now 0.9592
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7912]
Diffstat (limited to 'src/gpgpu-sim/shader.h')
| -rw-r--r-- | src/gpgpu-sim/shader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h index dd3d89e..52a7e35 100644 --- a/src/gpgpu-sim/shader.h +++ b/src/gpgpu-sim/shader.h @@ -936,6 +936,9 @@ struct shader_core_config : public core_config void reg_options(class OptionParser * opp ); unsigned max_cta( const kernel_info_t &k ) const; unsigned num_shader() const { return n_simt_clusters*n_simt_cores_per_cluster; } + unsigned sid_to_cluster( unsigned sid ) const { return sid / n_simt_cores_per_cluster; } + unsigned sid_to_cid( unsigned sid ) const { return sid % n_simt_cores_per_cluster; } + unsigned cid_to_sid( unsigned cid, unsigned cluster_id ) const { return cluster_id*n_simt_cores_per_cluster + cid; } // data char *gpgpu_shader_core_pipeline_opt; @@ -1183,9 +1186,6 @@ public: void display_pipeline( unsigned sid, FILE *fout, int print_mem, int mask ); private: - unsigned sid_to_cid( unsigned sid ) const { return sid % m_config->n_simt_cores_per_cluster; } - unsigned cid_to_sid( unsigned cid ) const { return m_cluster_id*m_config->n_simt_cores_per_cluster + cid; } - unsigned m_cluster_id; gpgpu_sim *m_gpu; const shader_core_config *m_config; |
