From ab2bd58f5c14a986a991e1ec9e128213edba38f7 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Mon, 28 Oct 2013 14:17:59 +0800 Subject: [PATCH] Fixed a missing barrier. --- modules/ocl/src/opencl/imgproc_canny.cl | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ocl/src/opencl/imgproc_canny.cl b/modules/ocl/src/opencl/imgproc_canny.cl index 2e4451e..c0d6af3 100644 --- a/modules/ocl/src/opencl/imgproc_canny.cl +++ b/modules/ocl/src/opencl/imgproc_canny.cl @@ -553,6 +553,7 @@ edgesHysteresisGlobal if (subTaskIdx < portion) pos = s_st[s_counter - 1 - subTaskIdx]; + barrier(CLK_LOCAL_MEM_FENCE); if (lidx == 0) s_counter -= portion; -- 2.7.4