diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-22 13:09:02 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-22 13:09:02 -0400 |
| commit | 067ca5fcce6ef4fa51ed3949dbffe62f60f6ad12 (patch) | |
| tree | b344dfc77c47d1d789ac503b0420f650c904972a /src/cuda-sim/instructions.cc | |
| parent | 3cac7525e1046285337e4dcf7fd8aa07c3a1f7c9 (diff) | |
| parent | 2f749f6969cd0582b7ac2bfe33309034185cc77c (diff) | |
Merge pull request #19 from echoedit/dev
Dev
Diffstat (limited to 'src/cuda-sim/instructions.cc')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index 186bb1e..46a262d 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -1528,6 +1528,7 @@ void bar_impl( const ptx_instruction *pIin, ptx_thread_info *thread ) op2_data = thread->get_operand_value(op2, op2, PRED_TYPE, thread, 1); op2_data.u32=!(op2_data.pred & 0x0001); pI->set_bar_id(op1_data.u32); + pI->set_bar_count(thread->get_ntid().x * thread->get_ntid().y * thread->get_ntid().z); switch(red_op){ case ATOMIC_POPC: thread->popc_reduction(ctaid,op1_data.u32,op2_data.u32); |
