tesseract/opencl
Stefan Weil 0518bb549f opencl: Fix type of parameter for clGetContextInfo
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>
2016-11-24 13:55:11 +01:00
..
Makefile.am Get OpenCL to compile on OS X 2015-08-26 02:03:07 -07:00
oclkernels.h Fix a padding problem in ThresholdRectToPixOCL 2016-10-27 22:26:39 +02:00
opencl_device_selection.h opencl: Remove unused function getNumDeviceWithEmptyScore 2016-11-24 13:53:49 +01:00
openclwrapper.cpp opencl: Fix type of parameter for clGetContextInfo 2016-11-24 13:55:11 +01:00
openclwrapper.h opencl: Move declaration of MORPH_BC from .h to .cpp file 2016-11-01 20:15:29 +01:00