projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04433b2
)
fix code in the kernel
author
vbystricky
<user@user-pc.(none)>
Fri, 23 May 2014 07:09:57 +0000
(11:09 +0400)
committer
vbystricky
<user@user-pc.(none)>
Mon, 26 May 2014 12:54:26 +0000
(16:54 +0400)
modules/core/src/opencl/reduce2.cl
patch
|
blob
|
history
diff --git
a/modules/core/src/opencl/reduce2.cl
b/modules/core/src/opencl/reduce2.cl
index
a41cc85
..
6f3ad7b
100644
(file)
--- a/
modules/core/src/opencl/reduce2.cl
+++ b/
modules/core/src/opencl/reduce2.cl
@@
-110,7
+110,7
@@
__kernel void reduce_horz_pre(__global const uchar * srcptr, int src_step, int s
dstT tmp[cn] = { INIT_VALUE };
int src_step_mul = BUF_COLS * cn;
- for (int
x = 0; x < cols;
x += BUF_COLS, src += src_step_mul)
+ for (int
idx = x; idx < cols; id
x += BUF_COLS, src += src_step_mul)
{
#pragma unroll
for (int c = 0; c < cn; ++c)