Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OCL error - assertion failed

Hi,

I´m working on OpenCV 2.4.4(C++), built using CMAKE with OCL support.

  • GPU - NVIDIA GeForce 9800 GT

  • CPU - AMD Opteron 252 (2 processors)

Code compiles with no errors, but during runtime I get this error (tried surf_matcher and squares samples):

OpenCV Error: Assertion failed ((localThreads[0] <= clCxt->impl->maxWorkItemSize s[0]) && (localThreads[1] <= clCxt->impl->maxWorkItemSizes[1]) && (localThreads[ 2] <= clCxt->impl->maxWorkItemSizes[2]) && ((localThreads[0] * localThreads[1] * localThreads[2]) <= kernelWorkGroupSize) && (localThreads[0] * localThreads[1] * localThreads[2]) <= clCxt->impl->maxWorkGroupSize) in unknown function, file . .....\modules\ocl\src\initialization.cpp, line 553

Also, while trying to run CUDA code for surf_matcher, I got runtime error saying:

"Too many resources requested for launch."

Anyone encountered this kind of problems? Could it be a GPU issue or OpenCV/OpenCL installation related? Thanks.