mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-13 16:09:04 +08:00
0518bb549f
CL_CONTEXT_NUM_DEVICES expects a cl_uint. Passing size_t results in a wrong value for numDevices on hosts where sizeof(cl_uint) != sizeof(size_t). This results in errors like these: Tesseract Open Source OCR Engine v3.05.00dev with Leptonica OpenCL error code is -44 at when clCreateKernel kernel_HistogramRectAllChannels . OpenCL error code is -44 at when clCreateKernel kernel_HistogramRectAllChannelsReduction . OpenCL error code is -48 at when clSetKernelArg imageBuffer . ... Signed-off-by: Stefan Weil <sw@weilnetz.de> |
||
---|---|---|
.. | ||
Makefile.am | ||
oclkernels.h | ||
opencl_device_selection.h | ||
openclwrapper.cpp | ||
openclwrapper.h |