From 7092b55e927a46128d279d544ff2a32887e81126 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Mon, 20 Feb 2012 23:56:01 -0800 Subject: Fix for bug 129. Created a directed test with a pre-known instruction count, and observed the over-count for vector memory instruction. The fix eliminates the over-count. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11481] --- src/abstract_hardware_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/abstract_hardware_model.cc') diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc index 841be93..6010bf6 100644 --- a/src/abstract_hardware_model.cc +++ b/src/abstract_hardware_model.cc @@ -489,7 +489,7 @@ void warp_inst_t::memory_coalescing_arch_13_reduce_and_send( bool is_write, mem_ m_accessq.push_back( mem_access_t(access_type,addr,size,is_write,info.active,info.bytes) ); } -void warp_inst_t::completed( unsigned long long cycle ) +void warp_inst_t::completed( unsigned long long cycle ) const { unsigned long long latency = cycle - issue_cycle; assert(latency <= cycle); // underflow detection -- cgit v1.3