summaryrefslogtreecommitdiff
path: root/src/trace-driven
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-11-12 18:48:46 -0500
committerMahmoud <[email protected]>2019-11-12 18:48:46 -0500
commita009318f6ffae0c71b5735c3e6b49b5a0bd09029 (patch)
treef5cc5c40d7eadfc32dc735a409756866fbf27ba2 /src/trace-driven
parentab4324b69eb4ec7767706d3fb0db7a27c9670431 (diff)
handling the atomics in trace-driven and add the missing two instructions of Nvbits
Diffstat (limited to 'src/trace-driven')
-rw-r--r--src/trace-driven/trace_driven.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/trace-driven/trace_driven.cc b/src/trace-driven/trace_driven.cc
index b4ccf48..3cedd5c 100644
--- a/src/trace-driven/trace_driven.cc
+++ b/src/trace-driven/trace_driven.cc
@@ -632,8 +632,12 @@ void trace_shader_core_ctx::checkExecutionStatusAndUpdate(warp_inst_t &inst, uns
if(inst.isatomic())
m_warp[inst.warp_id()].inc_n_atomic();
- if ( inst.op == EXIT_OPS )
+ if ( inst.op == EXIT_OPS ) {
m_warp[inst.warp_id()].set_completed(t);
+ //We did that because the Nvbit misses two instruction to report at the end of the kernel after the EXIT instruction
+ //so we add them here to have better correlation with HW counters
+ m_stats->m_num_sim_winsn[m_sid] += 2;
+ }
}