summaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authoraamir <[email protected]>2018-09-14 01:42:35 -0700
committeraamir <[email protected]>2018-09-14 01:42:35 -0700
commitcc14e087c164a25cd9e2374777fdc4e57d9cec39 (patch)
tree88861927016e54baa124fb52c7157bcff50a3371 /src/cuda-sim
parent7845388e64b9617033a496d110902fa345c0ef8b (diff)
corrected the bug in vpcore functional model
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/instructions.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc
index 6f1b5d3..42c63ca 100644
--- a/src/cuda-sim/instructions.cc
+++ b/src/cuda-sim/instructions.cc
@@ -3363,7 +3363,7 @@ void vp_ld_impl(const ptx_instruction *pI, core_t *core, warp_inst_t &inst)
else if(wmma_layout==COL){
//mem->read(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<num_mem_txn;lll++)
+ {
+ printf("%x ",mem_txn_addr[lll]);
+ }
+ printf("\n");
+
int num_reg;
if(g_debug_instruction){
printf("\nvp_ld:thread%d= ",thrd);