Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is cud::detectMultiScale method thread safe for Cuda?

Hi, I tried sample with threads for CPU all ok, for Cuda I had Assertion:

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=/Users/User/Documents/Dev/OpenCV/modules/cudalegacy/src/cuda/NCVHaarObjectDetection.cu, line=1313) in NCVDebugOutputHandler, file /Users/User/Documents/Dev/OpenCV/modules/cudaobjdetect/src/cascadeclassifier.cpp, line 156

If run only one thread for Cuda all ok.

I saw the same problem: https://github.com/opencv/opencv/issues/4766

but it was in 2015 (

You can see my sample here link text.

Platform: MacOsX OpenCV 3.2.0-dev Cuda: 8.0.61

Other strange situation when I tried use Stream for method cud::detectMultiScale but I can't use in method I found line CV_Assert( !stream );

Is cud::detectMultiScale method thread safe for Cuda?

Hi, I tried sample with threads for CPU all ok, for Cuda I had Assertion:

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=/Users/User/Documents/Dev/OpenCV/modules/cudalegacy/src/cuda/NCVHaarObjectDetection.cu, line=1313) in NCVDebugOutputHandler, file /Users/User/Documents/Dev/OpenCV/modules/cudaobjdetect/src/cascadeclassifier.cpp, line 156

If run only one thread for Cuda all ok.

I saw the same problem: https://github.com/opencv/opencv/issues/4766

but it was in 2015 (

You can see my sample here link text.

Platform: MacOsX OpenCV 3.2.0-dev Cuda: 8.0.61

Other strange situation when I tried use Stream for method cud::detectMultiScale cuda::detectMultiScale but I can't use in method I found line CV_Assert( !stream );

Is cud::detectMultiScale cuda::detectMultiScale method thread safe for Cuda?

Hi, I tried sample with threads for CPU all ok, for Cuda I had Assertion:

OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=/Users/User/Documents/Dev/OpenCV/modules/cudalegacy/src/cuda/NCVHaarObjectDetection.cu, line=1313) in NCVDebugOutputHandler, file /Users/User/Documents/Dev/OpenCV/modules/cudaobjdetect/src/cascadeclassifier.cpp, line 156

If run only one thread for Cuda all ok.

I saw the same problem: https://github.com/opencv/opencv/issues/4766

but it was in 2015 (

You can see my sample here link text.

Platform: MacOsX OpenCV 3.2.0-dev Cuda: 8.0.61

Other strange situation when I tried use Stream for method cuda::detectMultiScale but I can't use in method I found line CV_Assert( !stream );