fixed bug in SURF_GPU (reduce_sum25)

This commit is contained in:
Vladislav Vinogradov
2011-05-25 08:16:17 +00:00
parent 8a2c434260
commit 6259520aa1

View File

@@ -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];