From cc14e087c164a25cd9e2374777fdc4e57d9cec39 Mon Sep 17 00:00:00 2001 From: aamir Date: Fri, 14 Sep 2018 01:42:35 -0700 Subject: corrected the bug in vpcore functional model --- src/abstract_hardware_model.cc | 3 ++- src/cuda-sim/instructions.cc | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc index b24a77e..83e76fe 100644 --- a/src/abstract_hardware_model.cc +++ b/src/abstract_hardware_model.cc @@ -389,7 +389,8 @@ void warp_inst_t::memory_coalescing_arch_13( bool is_write, mem_access_type acce assert(num_accesses <= MAX_ACCESSES_PER_INSN_PER_THREAD); - for(unsigned access=0; accessread(new_addr+4*stride*i,size/8,&data[i].s64); mem->read(new_addr+4*stride*i,size/8,&data[i].s64); - mem_txn_addr[num_mem_txn++]=new_addr+4*i; + mem_txn_addr[num_mem_txn++]=new_addr+4*stride*i; } } } @@ -3410,7 +3410,13 @@ void vp_ld_impl(const ptx_instruction *pI, core_t *core, warp_inst_t &inst) inst.set_addr(thrd, (new_addr_type *)mem_txn_addr , num_mem_txn); inst.data_size = 4; // 4 byte transaction assert( inst.memory_op == insn_memory_op ); - + printf("\nVPLOAD_THREAD%d:",thrd); + for(int lll=0;lll