I've been trying to use CUDA accelaration since a long time but am not able to do it.
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.
You forget to mention you have cuda compactible GPU in your PC or not!
Oh yes, I have a 960M with intel i5-6300HQ
Do you have the CUDA drivers from Nvidia installed? These are different from your normal graphics card drivers, you'll need to download and install them separately if you haven't already.