Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information