My laptop has two graphics cards, Intel HD Graphics 530 and Nvidia Geforce GTX 965M. When I was using opencv3 with opencl, it automatically chose Intel. For faster speed, I want to use Nvidia instead. I tried adding
OPENCV_OPENCL_DEVICE = NVIDIA:GPU:GTX 965M
to environment variables, but it didn't work.
Environments:
Windows 10, OpenCV 3.4.5, Cuda 9.2, Visual Studio 2017