tesseract/opencl
Stefan Weil ba6961e0f4 opencl: Fix OpenCL kernel code assertion for newer versions
With Debian package beignet-opencl-icd 1.2.1-1, Tesseract + OpenCL fails:

[DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling.

[DS] Device: "Intel(R) HD Graphics IvyBridge M GT2" (OpenCL) evaluation...
ASSERTION FAILED: sel.hasDoubleType()
  at file /home/geier/beignet/backend/src/backend/gen_insn_selection.cpp, function void gbe::ConvertInstructionPattern::convertDoubleToSmallInts(gbe::Selection::Opaque&, const gbe::ir::ConvertInstruction&, bool&) const, line 5269
Trace/breakpoint trap

Using a pure float expression (instead of double) fixes this issue.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-11-25 17:41:30 +01:00
..
Makefile.am Get OpenCL to compile on OS X 2015-08-26 02:03:07 -07:00
oclkernels.h opencl: Fix OpenCL kernel code assertion for newer versions 2016-11-25 17:41:30 +01:00
opencl_device_selection.h Merged with commit 4ca6ba985b 2016-11-21 08:27:02 -08:00
openclwrapper.cpp Fix windows build. 2016-11-24 17:32:23 +03:00
openclwrapper.h Added missing license headers 2016-11-18 15:53:11 -08:00