Runtime error “CL_INVALID_KERNEL_NAME” when calling ocl::StereoBeliefPropagation module in OpenCV 2.4.5 (Bug #3078)


Added by Costas Laudas over 1 year ago. Updated 10 months ago.


Status:Cancelled Start date:2013-06-10
Priority:Normal Due date:
Assignee:yao wang % Done:

0%

Category:ocl
Target version:-
Affected version:branch '2.4' (2.4-dev) Operating System:Any
Difficulty: HW Platform:Any
Pull request:

Description

I am trying to use ocl::StereoBeliefPropagation class for dense stereo correspondence, but the program is terminated at runtime with the following message:

" OpenCV Error: Gpu API call (CL_INVALID_KERNEL_NAME) in openCLGetKernelFromSource, file D:\OpenCV\modules\ocl\src\initialization.cpp, line 647

terminate called after throwing an instance of 'cv::Exception' what(): D:\OpenCV\modules\ocl\src\initialization.cpp:647: error: (-217) CL_INVALID_KERNEL_NAME in function openCLGetKernelFromSource "

I edited the file initialization.cpp, added a std::cout just before the indicated line, recompiled OpenCV and now the message "Trying to access kernel convert_to_S3_C1_D0..." is printed just before the fatal exception is raised. Several other kernel names are similarly printed before the exception, without causing any problems. Apparently, something is wrong with a call to "convert_to_S3_C1_D0" kernel.

I own a GeForce GTX 560 Ti GPU with updated drivers and the CUDA Toolkit 5.0 installed, in a PC with Intel Sandy Bridge CPU. I am compiling OpenCV in 32-bit Windows XP, using GCC 4.7.1 (MinGW), with neither IPP or OpenMP enabled, but with all SSE options turned on.


Related issues (Add)


History

Updated by yao wang over 1 year ago

Please have a check if the problem is caused by binary cache. In release mode, now it automatically cache the binary. So when you use the old binary cache with updated code, this problem is likely to happen. Please delete the .clb files and run again.

Updated by Costas Laudas over 1 year ago

I am afraid I do not know where to find these .clb files on disk. Also, I was under the impression that in OpenCL the binary format is .ptx files.

Thank you

Updated by Ilya Lavrenov 10 months ago

I'm sure that the problems isn't longer observed, so let's close the issue

  • Status changed from Open to Cancelled
  • Affected version changed from 2.4.5 (latest release) to branch '2.4' (2.4-dev)
  • Operating System set to Any
  • HW Platform set to Any

Also available in: Atom PDF