Issue 1325 in tesseract-ocr: Error when running tesseract 3.04 with --enable-opencl option

74 views
Skip to first unread message

tesser...@googlecode.com

unread,
Oct 1, 2014, 1:59:26 AM10/1/14
to tesserac...@googlegroups.com
Status: New
Owner: ----

New issue 1325 by vungoctr...@gmail.com: Error when running tesseract 3.04
with --enable-opencl option
https://code.google.com/p/tesseract-ocr/issues/detail?id=1325

What steps will reproduce the problem?
1.Install NVIDIA OpenCL SDK
(http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run)
2. Install leptonica 1.71 then install tesseract with below command:
./autogen.sh
configure --enable-opencl
sudo make -j install LANGS=
3. Run tesseract with any picture

What is the expected output? What do you see instead?
Expected: tesseract should run normally
Result: Error log comes as below:
Tesseract Open Source OCR Engine v3.04.00 with Leptonica
[DS] Profile read from file (tesseract_opencl_profile_devices.dat).
[DS] Device[1] 1: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz score is
0.679009
[DS] Device[2] 1:GeForce GT 520MX score is 0.255933
[DS] Device[3] 0:(null) score is 1.082915
[DS] Selected Device[2]: "GeForce GT 520MX" (OpenCL)
OpenCL error code is -44 at when clCreateKernel
kernel_HistogramRectOneChannel .
OpenCL error code is -44 at when clCreateKernel
kernel_HistogramRectOneChannelReduction .
OpenCL error code is -48 at when clSetKernelArg imageBuffer .
OpenCL error code is -48 at when clSetKernelArg numPixels .
OpenCL error code is -48 at when clSetKernelArg tmpHistogramBuffer .
OpenCL error code is -48 at when clSetKernelArg imageBuffer .
OpenCL error code is -48 at when clSetKernelArg tmpHistogramBuffer .
OpenCL error code is -48 at when clSetKernelArg histogramBuffer .
OpenCL error code is -48 at when clEnqueueNDRangeKernel
kernel_HistogramRectAllChannels .
OpenCL error code is -48 at when clEnqueueNDRangeKernel
kernel_HistogramRectAllChannelsReduction .
OpenCL error code is -44 at when clCreateKernel
kernel_ThresholdRectToPix_OneChan .
OpenCL error code is -48 at when clSetKernelArg imageBuffer .
OpenCL error code is -48 at when clSetKernelArg height .
OpenCL error code is -48 at when clSetKernelArg width .
OpenCL error code is -48 at when clSetKernelArg wpl .
OpenCL error code is -48 at when clSetKernelArg thresholdsBuffer .
OpenCL error code is -48 at when clSetKernelArg hiValuesBuffer .
OpenCL error code is -48 at when clSetKernelArg pixThBuffer .
OpenCL error code is -48 at when clEnqueueNDRangeKernel
kernel_ThresholdRectToPix .
OpenCL error code is -44 at when clCreateKernel
kernel_HistogramRectOneChannel .
OpenCL error code is -44 at when clCreateKernel
kernel_HistogramRectOneChannelReduction .
OpenCL error code is -48 at when clSetKernelArg imageBuffer .
OpenCL error code is -48 at when clSetKernelArg numPixels .
OpenCL error code is -48 at when clSetKernelArg tmpHistogramBuffer .
OpenCL error code is -48 at when clSetKernelArg imageBuffer .
OpenCL error code is -48 at when clSetKernelArg tmpHistogramBuffer .
OpenCL error code is -48 at when clSetKernelArg histogramBuffer .
OpenCL error code is -48 at when clEnqueueNDRangeKernel
kernel_HistogramRectAllChannels .
OpenCL error code is -48 at when clEnqueueNDRangeKernel
kernel_HistogramRectAllChannelsReduction .


What version of the product are you using? On what operating system?
Tesseract 3.04
Ubuntu 12.04 LTS

Please provide any additional information below.
Information from "tesseract -v"

tesseract 3.04.00
leptonica-1.71
libjpeg 8b : libpng 1.2.46 : libtiff 3.9.5 : zlib 1.2.3.4

OpenCL info:
Found 2 platforms.
Platform name: Intel(R) OpenCL.
Version: OpenCL 1.2 LINUX.
Found 1 devices.
Device 1 name: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

tesser...@googlecode.com

unread,
Oct 14, 2014, 4:56:24 PM10/14/14
to tesserac...@googlegroups.com

Comment #1 on issue 1325 by zde...@gmail.com: Error when running tesseract
I am not opencl expert, but you wrote that you use NVIDIA OpenCL SDK, but
your OpenCL info shows you have no nvidia device. Did you try to use Intel
OpenCL SDK[1]?

[1] https://software.intel.com/en-us/intel-opencl/details#devices

tesser...@googlecode.com

unread,
Oct 15, 2014, 9:47:47 PM10/15/14
to tesserac...@googlegroups.com

Comment #2 on issue 1325 by vungoctr...@gmail.com: Error when running
tesseract 3.04 with --enable-opencl option
https://code.google.com/p/tesseract-ocr/issues/detail?id=1325

Both Nvidia and Intel SDK are not working with my system.
But AMD APP SDK[1] can work fine with Open CL option.

[1]
http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/

tesser...@googlecode.com

unread,
Apr 6, 2015, 2:52:10 AM4/6/15
to tesserac...@googlegroups.com

Comment #3 on issue 1325 by raghavr...@gmail.com: Error when running
tesseract 3.04 with --enable-opencl option
https://code.google.com/p/tesseract-ocr/issues/detail?id=1325

Was this issue solved? I am facing a similar error.

tesser...@googlecode.com

unread,
Apr 16, 2015, 3:28:45 AM4/16/15
to tesserac...@googlegroups.com
Updates:
Labels: OpenCL

Comment #4 on issue 1325 by zde...@gmail.com: Error when running tesseract
(No comment was entered for this change.)

tesser...@googlecode.com

unread,
Aug 24, 2015, 9:54:58 AM8/24/15
to tesserac...@googlegroups.com

Comment #5 on issue 1325 by zde...@gmail.com: Error when running tesseract
Can you check current code from https://github.com/tesseract-ocr/tesseract
and report issue there?
Reply all
Reply to author
Forward
0 new messages