Skip to content

cv::ocl::setUseOpenCL(false) does not really stop using GPU #8035

@caruofc

Description

@caruofc
System information (version)
  • OpenCV => 3.2
  • Operating System / Platform => Windows 10
  • Compiler => VS 2013
Detailed description

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. UMat should not use GPU when ocl is not used.

Steps to reproduce

Just use UMat in your code. Do some computation. Set cv::ocl::setUseOpenCL(false).
I used GPU-Z to verify GPU load/usage.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions