From 6259520aa1a21c4a06672ca948672ec6ef956f27 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 25 May 2011 08:16:17 +0000 Subject: [PATCH] fixed bug in SURF_GPU (reduce_sum25) --- modules/gpu/src/cuda/surf.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpu/src/cuda/surf.cu b/modules/gpu/src/cuda/surf.cu index a7f49e8f42..695b0c06b2 100644 --- a/modules/gpu/src/cuda/surf.cu +++ b/modules/gpu/src/cuda/surf.cu @@ -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];