OpenCV GPU Module exceptions (from its CUDA implementation)

asked 2014-06-04 09:11:48 -0600

Tariq gravatar image

Dear all,

I am trying to run a multi-threaded application using OpenCV GPU module. The application is developed in Visual Studio 2012 professionl + CUDA 5.5 + OpenCV 2.4.6 and uses pthreads for multi-threading. I built OpenCV 2.4.6 for this environment.

My application executes with two threads and there are no exceptions. I start getting a number of CUDA related exceptions with 3 or more that three threads.

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1306) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

OpenCV Error: Gpu API call (unspecified launch failure) in unknown function, file C:\opencv-2.4.6\modules\core\src\gpumat.cpp, line 1196

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1306) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1523) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

OpenCV Error: Gpu API call (unspecified launch failure) in unknown function, file C:\opencv-2.4.6\modules\core\src\gpumat.cpp, line 1415

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1523) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

OpenCV Error: Gpu API call (NCV Assertion Failed: retcode=2, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1768) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

OpenCV Error: Gpu API call (NCV Assertion Failed: retcode=5, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1575) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

cudaError_t=4 = cudaErrorLaunchFailure

Any help is appreciated.

Regards,

edit retag flag offensive close merge delete