You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently discovered that as of v3.x OpenCV will silently attempt to use OpenCL (and thus the GPU) if it finds the required libraries on the system (https://opencv.org/opencl/). Unfortunately operating multiple threads in OpenCV (eg: 2 x video capture streams + processing, in particular cv::cvtColor() calls) appears to randomly cause errors or segmentation faults in the OpenCL backend
Workaround: set the following environment variable to disable this silent use of OpenCL
% OPENCV_OPENCL_RUNTIME=disabled backscrub ...
NB: this wasted a good hour of my time today, as I thought the problem was in my code 😠
The text was updated successfully, but these errors were encountered:
I've recently discovered that as of v3.x OpenCV will silently attempt to use OpenCL (and thus the GPU) if it finds the required libraries on the system (https://opencv.org/opencl/). Unfortunately operating multiple threads in OpenCV (eg: 2 x video capture streams + processing, in particular
cv::cvtColor()
calls) appears to randomly cause errors or segmentation faults in the OpenCL backendWorkaround: set the following environment variable to disable this silent use of OpenCL
NB: this wasted a good hour of my time today, as I thought the problem was in my code 😠
The text was updated successfully, but these errors were encountered: