Commit 6259520a authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed bug in SURF_GPU (reduce_sum25)

parent 8a2c4342
......@@ -794,7 +794,7 @@ namespace cv { namespace gpu { namespace surf
}
// sum (reduce) from 16 to 1 (unrolled - aligned to a half-warp)
if (tid < 16)
if (tid < 8)
{
sdata1[tid] += sdata1[tid + 8];
sdata1[tid] += sdata1[tid + 4];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment