Running into memory issues when using cv::cuda::sum
I want calculate run cv::sum
on the GPU - so I looked to cv::cuda::sum
. However, I'm running into issues. This github gist has all the details. I've launched
https://gist.github.com/liquidmetal/9...
Any help on how to fix this would be appreciated. I suspect I may be doing something wrong.
On my computer, the following code works in a cpp file:
The result is:
But as I never used cuda OpenCV before, I cannot help you more.
Also, I tested your gist code without any problem (W7 x64, VS2010). The output:
PS:
Had to add the include
#include "cuda_runtime.h"
. Works also withoutinitialize_cuda();
.