summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-12-23 03:32:31 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:24 -0700
commita27f7e22eb1d0f8285f0023cd48a2f825db86ced (patch)
treeea848f425087cb1473d02a08e23b7654e46ee8c6
parent9d47a2d11fa85c6cba55a6b6b5c6f6133093ce39 (diff)
-remove unclear comment
-fix the power model stats to match the performance model [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14875]
-rw-r--r--src/gpgpu-sim/shader.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 5989a1a..b3016b3 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -1009,13 +1009,7 @@ void shader_core_ctx::warp_inst_complete(const warp_inst_t &inst)
void shader_core_ctx::writeback()
{
- unsigned max_num_committed_instructions=m_config->warp_size * MAX(m_config->gpgpu_num_sp_units,m_config->gpgpu_num_sfu_units);
- /*
- With this writeback code the maximum number of committed instructions
- may exceed MAX(m_config->gpgpu_num_sp_units,m_config->gpgpu_num_sfu_units).
- Yet, it is forced to an upper limit to avoid unrealistic power results.
- */
-
+ unsigned max_committed_thread_instructions=m_config->warp_size * (m_config->pipe_widths[EX_WB]); //from the functional units
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];