fixed bug in SURF_GPU (reduce_sum25)
authorVladislav Vinogradov <no@email>
Wed, 25 May 2011 08:16:17 +0000 (08:16 +0000)
committerVladislav Vinogradov <no@email>
Wed, 25 May 2011 08:16:17 +0000 (08:16 +0000)
modules/gpu/src/cuda/surf.cu

index a7f49e8..695b0c0 100644 (file)
@@ -794,7 +794,7 @@ namespace cv { namespace gpu { namespace surf
         }\r
 \r
         // sum (reduce) from 16 to 1 (unrolled - aligned to a half-warp)\r
-        if (tid < 16)\r
+        if (tid < 8)\r
         {\r
             sdata1[tid] += sdata1[tid + 8];\r
             sdata1[tid] += sdata1[tid + 4];\r