remove redundant code from reduction kernel
@@ -51,7 +51,6 @@ extern "C" __global__ void ${name}(${params}) {
_type_reduce _a = static_cast<_type_reduce>(${pre_map_expr});
_s = REDUCE(_s, _a);
}
- if (_block_stride < ${block_size}) {
_sdata[_tid] = _s;
__syncthreads();
for (unsigned int _block = ${block_size} / 2;
@@ -64,8 +63,6 @@ extern "C" __global__ void ${name}(${params}) {
if (_tid < _block_stride) {
_s = _sdata[_tid];
}
- __syncthreads();
- }
if (_tid < _block_stride && _i < _out_ind.size()) {
_out_ind.set(static_cast<ptrdiff_t>(_i));
${output_expr}
