From aab6f6c56f07bf4d03e75d416a9d77384bb087f4 Mon Sep 17 00:00:00 2001 From: vbystricky Date: Thu, 14 Aug 2014 12:14:56 +0400 Subject: [PATCH] Set sync=true in ocl_minMaxIdx kernel call. For tests --- modules/core/src/stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 87e99e585..f3b6b9a2f 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -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] =