cuda streams in opencv

asked 2014-05-31 01:31:10 -0500

Tariq gravatar image

updated 2014-06-04 10:19:45 -0500

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

edit retag flag offensive close merge delete