mmoghimi / tesseract-ocr

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

BuildProgram error! on AMD Radeon HD 5450 "Cedar" #1449

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have this setup (output of clinfo):

  Platform Name:                 AMD Accelerated Parallel Processing
Number of devices:               2
  Device Type:                   CL_DEVICE_TYPE_GPU
  Vendor ID:                     1002h
  Board name:                    AMD Radeon HD 5450  
  Device Topology:               PCI[ B#1, D#0, F#0 ]
  Max compute units:                 2
  Max work items dimensions:             3
    Max work items[0]:               128
    Max work items[1]:               128
    Max work items[2]:               128
  Max work group size:               128
  Preferred vector width char:           16
  Preferred vector width short:          8
  Preferred vector width int:            4
  Preferred vector width long:           2
  Preferred vector width float:          4
  Preferred vector width double:         0
  Native vector width char:          16
  Native vector width short:             8
  Native vector width int:           4
  Native vector width long:          2
  Native vector width float:             4
  Native vector width double:            0
  Max clock frequency:               650Mhz
  Address bits:                  32
  Max memory allocation:             134217728
  Image support:                 Yes
  Max number of images read arguments:       128
  Max number of images write arguments:      8
  Max image 2D width:                16384
  Max image 2D height:               16384
  Max image 3D width:                2048
  Max image 3D height:               2048
  Max image 3D depth:                2048
  Max samplers within kernel:            16
  Max size of kernel argument:           1024
  Alignment (bits) of base address:      2048
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                     No
    Quiet NaNs:                  Yes
    Round to nearest even:           Yes
    Round to zero:               Yes
    Round to +ve and infinity:           Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                    None
  Cache line size:               0
  Cache size:                    0
  Global memory size:                268435456
  Constant buffer size:              65536
  Max number of constant args:           8
  Local memory type:                 Scratchpad
  Local memory size:                 32768
  Kernel Preferred work group size multiple:     32
  Error correction support:          0
  Unified memory for Host and Device:        0
  Profiling timer resolution:            1
  Device endianess:              Little
  Available:                     Yes
  Compiler available:                Yes
  Execution capabilities:                
    Execute OpenCL kernels:          Yes
    Execute native function:             No
  Queue properties:              
    Out-of-Order:                No
    Profiling :                  Yes
  Platform ID:                   0x00007fc16a27ade0
  Name:                      Cedar
  Vendor:                    Advanced Micro Devices, Inc.
  Device OpenCL C version:           OpenCL C 1.2 
  Driver version:                1445.5
  Profile:                   FULL_PROFILE
  Version:                   OpenCL 1.2 AMD-APP (1445.5)
  Extensions:                    cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_amd_image2d_from_buffer_read_only cl_khr_spir cl_khr_gl_event

2. Compile tesseract 3.03-rc1 with --enable-opencl configuration

3. Attempt to run: `tesseract eurotext.tif stdout` or `tesseract eurotext.tif 
out.txt` or `tesseract whatever.png out.txt` or anything

What is the expected output? What do you see instead?
Here is what I get:

Tesseract Open Source OCR Engine v3.03 with Leptonica
[DS] Profile file not available (tesseract_opencl_profile_devices.dat); 
performing profiling.

[DS] Device: "Cedar" (OpenCL) evaluation...
BuildProgram error!
OpenCL error code is -46 at   when clCreateKernel .
OpenCL error code is -48 at   when clSetKernelArg .
OpenCL error code is -48 at   when clSetKernelArg .
OpenCL error code is -48 at   when clSetKernelArg .
OpenCL error code is -48 at   when clSetKernelArg .
OpenCL error code is -48 at   when clSetKernelArg .
OpenCL error code is -48 at   when clEnqueueNDRangeKernel .
OpenCL error code is -46 at   when clCreateKernel 
kernel_HistogramRectAllChannels .
OpenCL error code is -46 at   when clCreateKernel 
kernel_HistogramRectAllChannelsReduction .
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 -46 at   when clCreateKernel kernel_ThresholdRectToPix .
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 .
[DS] Device: "Cedar" (OpenCL) evaluated
[DS]          composeRGBPixel: 0.000678 (w=1.2)
[DS]            HistogramRect: 0.002174 (w=2.4)
[DS]       ThresholdRectToPix: 0.000434 (w=4.5)
[DS]        getLineMasksMorph: 0.017691 (w=5.0)
[DS]                    Score: 0.096440

[DS] Device: "Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz" (OpenCL) evaluation...
[OD] write binary[kernel-Intel(R)_Core(TM)_i7-2600_CPU_@_3.40GHz.bin] 
succesfully
[DS] Device: "Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz" (OpenCL) evaluated
[DS]          composeRGBPixel: 0.009403 (w=1.2)
[DS]            HistogramRect: 0.117564 (w=2.4)
[DS]       ThresholdRectToPix: 0.011374 (w=4.5)
[DS]        getLineMasksMorph: 0.032091 (w=5.0)
[DS]                    Score: 0.505075

[DS] Device: "(null)" (Native) evaluation...
[DS] Device: "(null)" (Native) evaluated
[DS]          composeRGBPixel: 0.020595 (w=1.2)
[DS]            HistogramRect: 0.056697 (w=2.4)
[DS]       ThresholdRectToPix: 0.017020 (w=4.5)
[DS]        getLineMasksMorph: 0.117240 (w=5.0)
[DS]                    Score: 0.823581
[DS] Scores written to file (tesseract_opencl_profile_devices.dat).
[DS] Device[1] 1:Cedar score is 0.096440
[DS] Device[2] 1:Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz score is 0.505075
[DS] Device[3] 0:(null) score is 0.823581
[DS] Selected Device[1]: "Cedar" (OpenCL)
BuildProgram error!
OpenCL error code is -46 at   when clCreateKernel 
kernel_HistogramRectAllChannels .
OpenCL error code is -46 at   when clCreateKernel 
kernel_HistogramRectAllChannelsReduction .
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 -46 at   when clCreateKernel kernel_ThresholdRectToPix .
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 -46 at   when clCreateKernel 
kernel_HistogramRectOneChannel .
OpenCL error code is -46 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?
3.03-rc1 on Ubuntu 12.04

Please provide any additional information below.

Original issue reported on code.google.com by jpthomps...@gmail.com on 14 Apr 2015 at 3:28

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Driver version 1445.5 doesn't make much sense. Could you please let us know 
what driver version was installed?

Are you able to run any OpenCL example(perhaps something from the AMD APP SDK)?

Original comment by amdass...@gmail.com on 11 Jun 2015 at 9:04