diff options
| author | aamir <[email protected]> | 2018-09-09 17:28:02 -0700 |
|---|---|---|
| committer | aamir <[email protected]> | 2018-09-09 17:28:02 -0700 |
| commit | 9e11279f0c7b631cbc989d3393dea40815af0cee (patch) | |
| tree | 87c986aa3dce607f4c89f3ec37efe72bbdb70086 /src/cuda-sim/cuda-sim.cc | |
| parent | 7a77d951e6a900d61436df12826bb677aeaee6e6 (diff) | |
generating correct number of mem transaction
Diffstat (limited to 'src/cuda-sim/cuda-sim.cc')
| -rw-r--r-- | src/cuda-sim/cuda-sim.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index 8f684e2..9735a0e 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -1403,15 +1403,15 @@ void ptx_thread_info::ptx_exec_inst( warp_inst_t &inst, unsigned lane_id) _memory_op_t insn_memory_op = no_memory_op; unsigned insn_data_size = 0; if ( (pI->has_memory_read() || pI->has_memory_write()) ) { - //if(!((inst_opcode==MMA_LD_OP||inst_opcode==MMA_ST_OP||inst_opcode==VP_LD_OP||inst_opcode==VP_ST_OP))) + if(!((inst_opcode==MMA_LD_OP||inst_opcode==MMA_ST_OP||inst_opcode==VP_LD_OP||inst_opcode==VP_ST_OP))) //if(!((inst_opcode==MMA_LD_OP||inst_opcode==VP_LD_OP))) - //{ + { insn_memaddr = last_eaddr(); insn_space = last_space(); unsigned to_type = pI->get_type(); insn_data_size = datatype2size(to_type); insn_memory_op = pI->has_memory_read() ? memory_load : memory_store; - //} + } } if ( pI->get_opcode() == BAR_OP && pI->barrier_op() == RED_OPTION) { @@ -1485,14 +1485,14 @@ void ptx_thread_info::ptx_exec_inst( warp_inst_t &inst, unsigned lane_id) // "Return values" if(!skip) { - //if(!((inst_opcode==MMA_LD_OP||inst_opcode==MMA_ST_OP||inst_opcode==VP_LD_OP||inst_opcode==VP_ST_OP))) + if(!((inst_opcode==MMA_LD_OP||inst_opcode==MMA_ST_OP||inst_opcode==VP_LD_OP||inst_opcode==VP_ST_OP))) //if(!((inst_opcode==MMA_LD_OP||inst_opcode==VP_LD_OP))) - //{ + { inst.space = insn_space; inst.set_addr(lane_id, insn_memaddr); inst.data_size = insn_data_size; // simpleAtomicIntrinsics assert( inst.memory_op == insn_memory_op ); - //} + } } } catch ( int x ) { |
