On Thursday, June 25, 2015 at 4:23:32 PM UTC-4, [email protected] wrote:
>
> I've been playing around with the OpenCL option for Tesseract.  It appears 
> on very first runs, it profiles the system and tries to determine which is 
> the fastest compute device and uses that device for future runs.  Is there 
> a way to manually select the device for tesseract to run on?  Eg.  what if 
> I want to run it using the regular cpu and not the gpu which tesseract 
> automatically chooses? 
>

I've never played with OpenCL, but from glancing at the source code there 
appear to be two environment variables which can be used to control 
behavior:

TESSERACT_OPENCL_DEVICE - the number of the device which will be used to 
override any automatic selection
SC_OPENCLCPU - if defined causes the CPU to be used in preference to the 
GPU 

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/a7979723-add8-404b-aae3-3cf4f1fcd56e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to