program cashing in "Gpu API call line (unknown error) at line 1415"

asked 2014-05-30 11:09:17 -0600

Tariq gravatar image

updated 2014-05-30 11:35:44 -0600

berak gravatar image

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?

edit retag flag offensive close merge delete

Comments

Could you please provide the relevant part of your code, otherwise it's hard to say.

Mathieu Barnachon gravatar imageMathieu Barnachon ( 2014-06-16 06:59:14 -0600 )edit

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,

Tariq gravatar imageTariq ( 2014-06-24 03:38:35 -0600 )edit