I am installing OpenCL. I am not sure if it is installed or not. Here is 
the output of my clinfo.


$ clinfo 
clinfo Number of platforms 1 Platform Name Intel(R) OpenCL HD Graphics 
Platform Vendor Intel(R) Corporation Platform Version OpenCL 3.0 Platform 
Profile FULL_PROFILE Platform Extensions cl_khr_byte_addressable_store 
cl_khr_fp16 cl_khr_global_int32_base_atomics 
cl_khr_global_int32_extended_atomics cl_khr_icd 
cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics 
cl_intel_command_queue_families cl_intel_subgroups 
cl_intel_required_subgroup_size cl_intel_subgroups_short cl_khr_spir 
cl_intel_accelerator cl_intel_driver_diagnostics cl_khr_priority_hints 
cl_khr_throttle_hints cl_khr_create_command_queue cl_intel_subgroups_char 
cl_intel_subgroups_long cl_khr_il_program cl_intel_mem_force_host_memory 
cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote 
cl_khr_subgroup_ballot cl_khr_subgroup_non_uniform_arithmetic 
cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative 
cl_khr_subgroup_clustered_reduce cl_intel_device_attribute_query 
cl_khr_suggested_local_work_size cl_khr_fp64 cl_khr_subgroups 
cl_intel_spirv_device_side_avc_motion_estimation 
cl_intel_spirv_media_block_io cl_intel_spirv_subgroups 
cl_khr_spirv_no_integer_wrap_decoration 
cl_intel_unified_shared_memory_preview cl_khr_mipmap_image 
cl_khr_mipmap_image_writes cl_intel_planar_yuv cl_intel_packed_yuv 
cl_intel_motion_estimation cl_intel_device_side_avc_motion_estimation 
cl_intel_advanced_motion_estimation cl_khr_int64_base_atomics 
cl_khr_int64_extended_atomics cl_khr_image2d_from_buffer 
cl_khr_depth_images cl_khr_3d_image_writes cl_intel_media_block_io 
cl_intel_va_api_media_sharing cl_intel_sharing_format_query 
cl_khr_pci_bus_info Platform Host timer resolution 1ns Platform Extensions 
function suffix INTEL Platform Name Intel(R) OpenCL HD Graphics Number of 
devices 1 Device Name Intel(R) HD Graphics 620 [0x5916] Device Vendor 
Intel(R) Corporation Device Vendor ID 0x8086 Device Version OpenCL 3.0 NEO 
Driver Version 22.10.22597 Device OpenCL C Version OpenCL C 1.2 Device Type 
GPU Device Profile FULL_PROFILE Device Available Yes Compiler Available Yes 
Linker Available Yes Max compute units 24 Max clock frequency 1000MHz 
Device Partition (core) Max number of sub-devices 0 Supported partition 
types None Supported affinity domains (n/a) Max work item dimensions 3 Max 
work item sizes 256x256x256 Max work group size 256 Preferred work group 
size multiple 32 Max sub-groups per work group 32 Sub-group sizes (Intel) 
8, 16, 32 Preferred / native vector sizes char 16 / 16 short 8 / 8 int 4 / 
4 long 1 / 1 half 8 / 8 (cl_khr_fp16) float 1 / 1 double 1 / 1 
(cl_khr_fp64) Half-precision Floating-point support (cl_khr_fp16) Denormals 
Yes Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to 
infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in 
software No Single-precision Floating-point support (core) Denormals Yes 
Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to 
infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in 
software No Correctly-rounded divide and sqrt operations Yes 
Double-precision Floating-point support (cl_khr_fp64) Denormals Yes 
Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to 
infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in 
software No Address bits 64, Little-Endian Global memory size 13355458560 
(12.44GiB) Error Correction support No Max memory allocation 4294959104 
(4GiB) Unified memory for Host and Device Yes Shared Virtual Memory (SVM) 
capabilities (core) Coarse-grained buffer sharing Yes Fine-grained buffer 
sharing No Fine-grained system sharing No Atomics No Minimum alignment for 
any data type 128 bytes Alignment of base address 1024 bits (128 bytes) 
Preferred alignment for atomics SVM 64 bytes Global 64 bytes Local 64 bytes 
Max size for global variable 65536 (64KiB) Preferred total size of global 
vars 4294959104 (4GiB) Global Memory cache type Read/Write Global Memory 
cache size 524288 (512KiB) Global Memory cache line size 64 bytes Image 
support Yes Max number of samplers per kernel 16 Max size for 1D images 
from buffer 268434944 pixels Max 1D or 2D image array size 2048 images Base 
address alignment for 2D image buffers 4 bytes Pitch alignment for 2D image 
buffers 4 pixels Max 2D image size 16384x16384 pixels Max planar YUV image 
size 16384x16352 pixels Max 3D image size 16384x16384x2048 pixels Max 
number of read image args 128 Max number of write image args 128 Max number 
of read/write image args 128 Max number of pipe args 16 Max active pipe 
reservations 1 Max pipe packet size 1024 Local memory type Local Local 
memory size 65536 (64KiB) Max number of constant args 8 Max constant buffer 
size 4294959104 (4GiB) Max size of kernel argument 2048 (2KiB) Queue 
properties (on host) Out-of-order execution Yes Profiling Yes Queue 
properties (on device) Out-of-order execution No Profiling No Preferred 
size 0 Max size 0 Max queues on device 0 Max events on device 0 Prefer user 
sync for interop Yes Profiling timer resolution 83ns Execution capabilities 
Run OpenCL kernels Yes Run native kernels No Sub-group independent forward 
progress Yes IL version SPIR-V_1.2 SPIR versions 1.2 printf() buffer size 
4194304 (4MiB) Built-in kernels 
block_motion_estimate_intel;block_advanced_motion_estimate_check_intel;block_advanced_motion_estimate_bidirectional_check_intel;
 
Motion Estimation accelerator version (Intel) 2 Device-side AVC Motion 
Estimation version 1 Supports texture sampler use Yes Supports preemption 
No Device Extensions cl_khr_byte_addressable_store cl_khr_fp16 
cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics 
cl_khr_icd cl_khr_local_int32_base_atomics 
cl_khr_local_int32_extended_atomics cl_intel_command_queue_families 
cl_intel_subgroups cl_intel_required_subgroup_size cl_intel_subgroups_short 
cl_khr_spir cl_intel_accelerator cl_intel_driver_diagnostics 
cl_khr_priority_hints cl_khr_throttle_hints cl_khr_create_command_queue 
cl_intel_subgroups_char cl_intel_subgroups_long cl_khr_il_program 
cl_intel_mem_force_host_memory cl_khr_subgroup_extended_types 
cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot 
cl_khr_subgroup_non_uniform_arithmetic cl_khr_subgroup_shuffle 
cl_khr_subgroup_shuffle_relative cl_khr_subgroup_clustered_reduce 
cl_intel_device_attribute_query cl_khr_suggested_local_work_size 
cl_khr_fp64 cl_khr_subgroups 
cl_intel_spirv_device_side_avc_motion_estimation 
cl_intel_spirv_media_block_io cl_intel_spirv_subgroups 
cl_khr_spirv_no_integer_wrap_decoration 
cl_intel_unified_shared_memory_preview cl_khr_mipmap_image 
cl_khr_mipmap_image_writes cl_intel_planar_yuv cl_intel_packed_yuv 
cl_intel_motion_estimation cl_intel_device_side_avc_motion_estimation 
cl_intel_advanced_motion_estimation cl_khr_int64_base_atomics 
cl_khr_int64_extended_atomics cl_khr_image2d_from_buffer 
cl_khr_depth_images cl_khr_3d_image_writes cl_intel_media_block_io 
cl_intel_va_api_media_sharing cl_intel_sharing_format_query 
cl_khr_pci_bus_info NULL platform behavior clGetPlatformInfo(NULL, 
CL_PLATFORM_NAME, ...) Intel(R) OpenCL HD Graphics clGetDeviceIDs(NULL, 
CL_DEVICE_TYPE_ALL, ...) Success [INTEL] clCreateContext(NULL, ...) 
[default] Success [INTEL] clCreateContextFromType(NULL, 
CL_DEVICE_TYPE_DEFAULT) Success (1) Platform Name Intel(R) OpenCL HD 
Graphics Device Name Intel(R) HD Graphics 620 [0x5916] 
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in 
platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) 
Platform Name Intel(R) OpenCL HD Graphics Device Name Intel(R) HD Graphics 
620 [0x5916] clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No 
devices found in platform clCreateContextFromType(NULL, 
CL_DEVICE_TYPE_CUSTOM) No devices found in platform 
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1) Platform Name 
Intel(R) OpenCL HD Graphics Device Name Intel(R) HD Graphics 620 [0x5916] 
ICD loader properties ICD loader Name OpenCL ICD Loader ICD loader Vendor 
OCL Icd free software ICD loader Version 2.2.11 ICD loader Profile OpenCL 
2.1 NOTE: your OpenCL library only supports OpenCL 2.1, but some installed 
platforms support OpenCL 3.0. Programs using 3.0 features may crash or 
behave unexpectedly 

I do have these files 
also libopencl-clang.so.11 libOpenCL.so.1@ libOpenCL.so.1.0.0 at this 
location /usr/lib/x86_64-linux-gnu/libOpenCl

But when I perform
$ tesseract --version 

I do not get opencl in the output as other people get. My output is
tesseract 4.1.3 leptonica-1.79.0 libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 
2.0.3) : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : 
libopenjp2 2.3.1 Found AVX2 Found AVX Found FMA Found SSE Found libarchive 
3.4.0 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.9.2 libzstd/1.4.4 

How can I use openCL with tesseract.

System Details:

   - Ubuntu 20.04
   - Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
   - Manufacturer: HP
   - Product Name: HP 348 G4
   - Version: Type1ProductConfigId

Any help on using Tesseract with OpenCL as the output of some people(not 
me) is
$ tesseract -v tesseract: /usr/local/cuda/lib64/libOpenCL.so.1: no version 
information available (required by tesseract) tesseract 3.05.00 
leptonica-1.74.1 libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 
4.0.6 : zlib 1.2.8 OpenCL info: Found 1 platforms. Platform name: NVIDIA 
CUDA. Version: OpenCL 1.2 CUDA 8.0.46. Found 1 devices. Device 1 name: 
GeForce GTX 1080. 

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/f1bfe238-9539-4423-8464-725498c818a7n%40googlegroups.com.

Reply via email to