harinath-palavalli / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Error when running tesseract 3.04 with --enable-opencl option #1325

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.1
4_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.

Original issue reported on code.google.com by vungoctr...@gmail.com on 1 Oct 2014 at 5:59

GoogleCodeExporter commented 9 years ago
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

Original comment by zde...@gmail.com on 14 Oct 2014 at 8:56

GoogleCodeExporter commented 9 years ago
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-pro
cessing-app-sdk/

Original comment by vungoctr...@gmail.com on 16 Oct 2014 at 1:47

GoogleCodeExporter commented 9 years ago
Was this issue solved? I am facing a similar error.

Original comment by raghavr...@gmail.com on 6 Apr 2015 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by zde...@gmail.com on 16 Apr 2015 at 7:27

GoogleCodeExporter commented 9 years ago
Can you check current code from https://github.com/tesseract-ocr/tesseract and 
report issue there?

Original comment by zde...@gmail.com on 24 Aug 2015 at 1:54