diff options
| author | sspenst <[email protected]> | 2016-08-25 15:56:02 -0700 |
|---|---|---|
| committer | sspenst <[email protected]> | 2016-08-25 15:56:02 -0700 |
| commit | 0afe825c212560c3b473366d005a50c2568cad1a (patch) | |
| tree | aafff090cd693aa9dee83bc50b502f5be9b87419 /src | |
| parent | 6a88a8fb947f6256dcf5dd9f315834f12322ad38 (diff) | |
OCD
Diffstat (limited to 'src')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index 78d6450..26d6285 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -3568,9 +3568,9 @@ void shfl_impl( const ptx_instruction *pI, core_t *core, warp_inst_t inst ) if (!p) src_idx = lane; // copy input from lane src_idx - ptx_thread_info *source = core->get_thread_info()[tid + src_idx]; ptx_reg_t data; if (inst.active(src_idx)) { + ptx_thread_info *source = core->get_thread_info()[tid + src_idx]; data = source->get_operand_value(src1, dst, i_type, source, 1); } else { printf("GPGPU-Sim PTX: WARNING: shfl input value unpredictable for inactive threads in a warp\n"); |
