Set sync=true in ocl_minMaxIdx kernel call. For tests
authorvbystricky <user@user-pc.(none)>
Thu, 14 Aug 2014 08:14:56 +0000 (12:14 +0400)
committervbystricky <user@user-pc.(none)>
Thu, 14 Aug 2014 08:14:56 +0000 (12:14 +0400)
modules/core/src/stat.cpp

index 87e99e5..f3b6b9a 100644 (file)
@@ -1536,7 +1536,7 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int*
     }
 
     size_t globalsize = groupnum * wgs;
-    if (!k.run(1, &globalsize, &wgs, false))
+    if (!k.run(1, &globalsize, &wgs, true))
         return false;
 
     static const getMinMaxResFunc functab[7] =