Build OpenCV with OpenCL Enabled and ON

后端 未结 1 727
青春惊慌失措
青春惊慌失措 2021-01-15 12:23

I\'m trying to run simple code with OpenCL enabled on OpenCV.

I\'ve read the intro to OCL documentation and, as instructed, I built opencv with this flag: WITH_OPEN

相关标签:
1条回答
  • 2021-01-15 13:00

    That is how I installed OpenCV 3.0 and that is also how I checked that it was working. Checking the documentation here : http://docs.opencv.org/modules/ocl/doc/introduction.html

    To correctly run the OCL module, you need to have the OpenCL runtime provided by the device vendor, typically the device driver.

    To enable OCL support, configure OpenCV using CMake with WITH_OPENCL=ON. When the flag is set and if OpenCL SDK is installed, the full-featured OpenCV OCL module is built. Otherwise, the module may be not built.

    So I would try to make sure you have GPU that supports it and then make sure you have the drivers (SDK?) I actually did some work with OpenCL first before installing OpenCV to make sure I had some understanding of how they worked independently.

    0 讨论(0)
提交回复
热议问题