Stefan Weil
aec39d629d
opencl: Backport changes from master branch
...
The code for 3.05 still uses NULL instead of nullptr.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-04-22 19:26:18 +02:00
Zdenko Podobn??
59ba80bb3a
More clang-tidy from previous commits
...
# Conflicts:
# opencl/opencl_device_selection.h
# opencl/openclwrapper.cpp
2016-12-08 15:50:22 +01:00
Stefan Weil
c73f21aa6f
Simplify calls of free
...
It is not necessary to check for null pointers.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-12-07 15:59:01 +01:00
Zdenko Podobný
057b932f02
backport from 4.00: add missing License information
2016-11-25 13:13:28 +01:00
Stefan Weil
5919916bc5
opencl: Remove unused function getNumDeviceWithEmptyScore
...
This fixes compiler warnings.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-11-24 13:53:49 +01:00
Stefan Weil
44717c4a60
opencl: Fix wrong implementation of function getNumDeviceWithEmptyScore
...
gcc report:
opencl_device_selection.h: In function 'ds_status getNumDeviceWithEmptyScore(ds_profile*, unsigned int*)':
opencl_device_selection.h:589:13: warning: value computed is not used [-Wunused-value]
*num++;
^
This is caused by a buggy implementation which increases the value of num
instead of *num.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-11-24 13:52:04 +01:00
gargrahul
5c6a57b727
Fixes for OpenCL issues reported on Apple Mac. Still get -54 on Apple Mac while running on OpenCL CPU, however it is ignored now.
2015-08-24 15:57:18 +05:30
zdenop
644c817f85
fix opencl endl; fix leptonica warning
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1016 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-26 17:38:37 +00:00
theraysmith@gmail.com
fec09faab9
Some formatting changes only to make it a bit more consistent with the rest of the code
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@991 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-17 18:51:27 +00:00
zdenop
8b3e590123
fix OpenCL build on OSX 10.9; add info about OpenCL to 'tesseract -v'
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@921 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2013-12-14 08:35:14 +00:00
zdenop
38b25b5777
fix issue 1018, 1031
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@918 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2013-12-06 22:07:46 +00:00
rajesh.katikam@gmail.com
983aaabaae
Initial version of OpenCL support added.
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@909 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2013-11-11 17:43:13 +00:00