summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-12-21 09:41:26 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:24 -0700
commit9d47a2d11fa85c6cba55a6b6b5c6f6133093ce39 (patch)
tree84334cbba6772ca5fa100c3a9c663d0a4897e62a /src/gpgpu-sim
parente5516925760944519a674d0e5ac94d7dbd4d2788 (diff)
cleaing the writeback from unnecessary if/else (should be cleaned with CL14828)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14867]
Diffstat (limited to 'src/gpgpu-sim')
-rw-r--r--src/gpgpu-sim/shader.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 0aa8532..5989a1a 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -1016,11 +1016,7 @@ void shader_core_ctx::writeback()
Yet, it is forced to an upper limit to avoid unrealistic power results.
*/
- if(m_config->gpgpu_clock_gated_lanes==false){
- m_stats->m_pipeline_duty_cycle[m_sid]=(m_stats->m_num_sim_insn[m_sid]-m_stats->m_last_num_sim_insn[m_sid])/max_num_committed_instructions;
- }else {
- m_stats->m_pipeline_duty_cycle[m_sid]=(m_stats->m_num_sim_insn[m_sid]-m_stats->m_last_num_sim_insn[m_sid])/max_num_committed_instructions;
- }
+ m_stats->m_pipeline_duty_cycle[m_sid]=(m_stats->m_num_sim_insn[m_sid]-m_stats->m_last_num_sim_insn[m_sid])/max_num_committed_instructions;
m_stats->m_last_num_sim_insn[m_sid]=m_stats->m_num_sim_insn[m_sid];
m_stats->m_last_num_sim_winsn[m_sid]=m_stats->m_num_sim_winsn[m_sid];