program cashing in "Gpu API call line (unknown error) at line 1415"
I am running a multithreaded application on GPU using pthreads. My error is not related to memory error (as far as I can see)
I create a separate thread for processing a video file. The code does not crash for 2 threads and performs the job. As soon as I start three threads, my code crashes for 3rd thread at the following line:
OpenCV Error: Gpu API call (unknown error) in unknown function, file C:\Users\Ab dullah\Downloads\opencv-2.4.6\modules\core\src\gpumat.cpp, line 1415 C:\Users\Abdullah\Downloads\opencv-2.4.6\modules\core\src\gpumat.cpp:1415: error : (-217) unknown error
void mallocPitch(void** devPtr, size_t* step, size_t width, size_t height) const
{
cudaSafeCall( cudaMallocPitch(devPtr, step, width, height) );
}
Does anybody have any idea of this crashing behavior?
Could you please provide the relevant part of your code, otherwise it's hard to say.
Thanks for your comment.
I explained my setup in this thread (http://answers.opencv.org/question/34609/profiling-multi-threaded-opencv-gpu-module/).
I posted the detailed error list in this thread (http://answers.opencv.org/question/34576/opencv-gpu-module-exceptions-from-its-cuda/)
Please go through these and hope the above links would provide you more details to answer my question.
Regards,