I've built the libraries with CMake with CUDA flag=ON, but still when I use the function cuda::getCudaEnabledDeviceCount() it returns with a value of zero.I'm trying to do this since last few weeks and have used almost every googled technique.Please help!. I'm using OpenCV 3.2.0 with CUDA 8.0 toolkit and Visual Studio 2015.