cuda streams in opencv
I am trying to run a multithreaded application in OpenCV using its GPU module. The application is working fine on CPU. I keep the same logice and change the image processing part from CPU to GPU module of OpenCV. My applciation crashes for more than 2 threads in GPU module. Most forums relate it to "out of memory" error. This is not the case for my application as only 495MB out 1GB GPU RAM is being used.
I have described my error in this thread as well.
Some forums suggest using CUDA streams in multi-threaded version of the applicaion for running multiple threads in the application. Can someone provide some example for it?
NOTE: It does not appear to be a resource issue. My application is only using 12% of CPU processing and 11% of the GPU meory