1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

core(ocl): run "reduce" kernels in synchronous mode

This commit is contained in:
Alexander Alekhin
2018-11-09 17:36:37 +03:00
parent 11eafca3e2
commit f74f1a94fe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1168,7 +1168,7 @@ static bool ocl_dot( InputArray _src1, InputArray _src2, double & res )
k.args(src1arg, src1.cols, (int)src1.total(), dbsize, dbarg, src2arg);
size_t globalsize = dbsize * wgs;
if (k.run(1, &globalsize, &wgs, false))
if (k.run(1, &globalsize, &wgs, true))
{
res = sum(db.getMat(ACCESS_READ))[0];
return true;