summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-08-30 03:08:52 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:54 -0700
commit66a788b7463bb92595977c7540afa8a2adba2726 (patch)
treece1bcd41bcfcae274f9ff28fb30fc95b03829521 /src/gpgpu-sim/shader.cc
parentfc37c72f0681d142371ff4f5fff5cd972faf51a9 (diff)
Fixed incorrect counting of predicated instruction. (Bug #15 external)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13918]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index ddb544a..b3e5fc5 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -872,9 +872,9 @@ void shader_core_ctx::warp_inst_complete(const warp_inst_t &inst)
printf("[warp_inst_complete] uid=%u core=%u warp=%u pc=%#x @ time=%llu issued@%llu\n",
inst.get_uid(), m_sid, inst.warp_id(), inst.pc, gpu_tot_sim_cycle + gpu_sim_cycle, inst.get_issue_cycle());
#endif
- m_stats->m_num_sim_insn[m_sid] += inst.active_count();
+ m_stats->m_num_sim_insn[m_sid] += inst.issued_count();
m_stats->m_num_sim_winsn[m_sid]++;
- m_gpu->gpu_sim_insn += inst.active_count();
+ m_gpu->gpu_sim_insn += inst.issued_count();
inst.completed(gpu_tot_sim_cycle + gpu_sim_cycle);
}