How to stop using GPU in OpenCV 3.2? [closed]
I set cv::ocl::setUseOpenCL(false); and verified using useOpenCL(). But my code is still using GPU when I use UMat. How can I stop using GPU? Temporarily I am using a workaround that uses Mat instead of UMat.
Anybody else is facing the same issue?
How can you know that's GPU is used?
Somehow I knew this question would be asked :). I used TechPowerUp GPU-Z tool to figure that out.
Ok Now I think cv::ocl::setUseOpenCL(false) disable opencl call and not opencl storage. When UMat is used I think data are stored in GPU even when setUseOpenCL(false) is called. I have checked in debug mode. Now how to disable this ?
You can check speed using this source files
Thanks LBerger for confirming, So I am not the only one who sees the issue and therefore, my question stands.
you can make an issue
https://github.com/opencv/opencv/issues/8035 (Created). thnx
Found the solution: You have to call cv::ocl::setUseOpenCL(false); in every thread that uses UMat.