opencv/modules
Zhigang Gong 0b08d2559e fix potential race condition in canny.cl.
See the below code snippet:

while(l_counter != 0)
{
    int mod = l_counter % LOCAL_TOTAL;
    int pix_per_thr = l_counter / LOCAL_TOTAL + ((lid < mod) ? 1 : 0);

    for (int i = 0; i < pix_per_thr; ++i)
    {
        int index = atomic_dec(&l_counter) - 1;
        ....
    }
    ....
    barrier(CLK_LOCAL_MEM_FENCE);
}

If we don't put a barrier before the for loop, then there is a possiblity
that some work item enter this loop but the others are not, the the l_counter
will be reduced in the for loop and may be changed to zero, and the other
work items may can't enter the while loop. If this happens, it breaks the
barrier's rule which requires all the work items reach the same barrier.
And it may hang the GPU depends on the implementation of opencl platform.

This issue is raised at:
https://github.com/Itseez/opencv/issues/5175

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2016-03-15 19:11:15 +08:00
..
calib3d gcc6: fix misleading indentation warning 2016-03-07 17:06:16 +05:30
core Linux bug fix for ThrustAllocator. 2016-03-14 11:09:52 -04:00
cudaarithm Fixed cv::cuda::reduce bug. 2016-02-27 08:30:10 +05:30
cudabgsegm move obsolete algorithms from cudabgsegm to cudalegacy: 2015-01-19 14:17:00 +03:00
cudacodec fixed to use NVCUVID in 'cudacodec' module. 2016-01-31 01:28:15 +09:00
cudafeatures2d Adding support for WinRT(WinPhone 8/8.1 and Win Store) via CMake 3.1 2015-03-02 22:26:43 +03:00
cudafilters CUDA median filtering using histograms 2016-01-29 20:05:40 -05:00
cudaimgproc CUDA median filtering using histograms 2016-01-29 20:05:40 -05:00
cudalegacy Some changes to support mingw-w64 2015-09-01 00:59:08 +03:00
cudaobjdetect change links from samples/python2 to samples/python 2015-12-18 11:00:30 +03:00
cudaoptflow Modified sparse pyrlk optical flow to allow input of an image pyramid which thus allows caching of image pyramids on successive calls. 2015-12-29 10:48:14 -05:00
cudastereo increase epsilons in some tests: 2015-11-27 16:46:20 +03:00
cudawarping Modified sparse pyrlk optical flow to allow input of an image pyramid which thus allows caching of image pyramids on successive calls. 2015-12-29 10:48:14 -05:00
cudev Fixed cv::cuda::reduce bug. 2016-02-27 08:30:10 +05:30
features2d Merge pull request #6025 from sovrasov:new_python_tests 2016-03-12 17:11:19 +00:00
flann gcc6: fix misleading indentation warning 2016-03-07 17:06:16 +05:30
highgui Cocoa backend: added checks before accessing sliders dictionary 2016-02-25 11:51:01 +03:00
imgcodecs EXIF reader: fixed file descriptor leak in case of broken tags 2016-02-25 12:19:11 +03:00
imgproc fix potential race condition in canny.cl. 2016-03-15 19:11:15 +08:00
java revert: java bindings become CMake modules (loadable plugins) 2016-03-09 12:13:46 +03:00
ml svmsgd.cpp, fix #6248 2016-03-14 08:02:09 +01:00
objdetect revert PR 5362 2016-02-04 13:20:21 +01:00
photo change links from samples/python2 to samples/python 2015-12-18 11:00:30 +03:00
python Use AKAZE detector instead of ORB in feature_homography test 2016-03-09 11:37:25 +03:00
shape fix mat copy in shape 2015-12-23 10:48:36 +01:00
stitching Added build warnings in case of macro definition conflicts 2016-02-25 11:51:02 +03:00
superres Fixed cmake and build issues when using Visual Studio 2015 2015-10-29 11:50:48 +03:00
ts gcc6: fix misleading indentation warning 2016-03-07 17:06:16 +05:30
video Merge pull request #6045 from matthieu-ft:master 2016-03-14 11:25:23 +00:00
videoio gcc6: fix misleading indentation warning 2016-03-07 17:06:16 +05:30
videostab Reduce variables scope 2016-02-01 11:10:13 +03:00
viz Added ability to disable lighting in the viz-module. 2016-01-14 19:02:18 +03:00
world cmake: turn off precompiled headers in case of opencv_world builds 2016-01-15 19:43:24 +03:00
CMakeLists.txt