dear Tom,

Still broken

thanks for the quick reply. Was on vacation so I didn't have time to
check it out until now.

It seems to me that the multithreaded training is still not available.
It still takes an hour for me to do the lines training and I can see
that only one core is used at all times.

Does the training work multithreaded for you?

with best regards,
Snorri Siemsen

On Wed, Jul 22, 2009 at 3:25 AM, Thomas Breuel<[email protected]> wrote:
>
> Thanks for the report.
>
> On Wed, Jul 22, 2009 at 04:28, snorrsi<[email protected]> wrote:
>>
>> I had previously compiled Ocropus from the Mercurial repository with
>> multithreading working but now when I tried to compile the newest
>> version the multithreading support for training has gone away.
>>
>> I am trying to run the script
>>
>> ocropus trainseg my.model lines
>>
>>
>> Is this related to the disabling of OpenMP in the new version ?
>> See Revision: ba9ff20a70
>>
>> Previous version from around 10. june:
>> ocropus Revision: 2e552379084f
>> iulib Revision: 8015520179e9
>
> Yes; although OpenMP mostly works, OpenMP makes debugging and bug
> reporting harder.
>
>> I also noticed that compiling Ocropus and Iulib with -O2 disabled the
>> multithreading.
>
> Yes, OpenMP use is enabled by compiling with -O3
>
>> However if I try to compile the new version with -O3 I get this error.
>>
>> g++ -o ocr-utils/bookstore.o -c -DDATADIR='"/usr/local/share/ocropus"'
>> -g -fPIC -O3 -Wall -Wno-sign-compare -Wno-write-strings -
>> D__warn_unused_result__=__far__ -D_BACKWARD_BACKWARD_WARNING_H=1 -
>> fopenmp -DHAVE_LEPTONICA -I/usr/local/include -I/tmp/o/include -I/usr/
>> local/include -I/usr/include/leptonica -I/usr/local/include/leptonica -
>> I/usr/local/include/leptonica -Iinclude -Iocr-utils ocr-utils/
>> bookstore.cc
>> ocr-utils/bookstore.cc: In member function 'virtual int
>> ocropus::OldBookStore::get_max_page(const char*)':
>> ocr-utils/bookstore.cc:34: error: invalid exit from OpenMP structured
>> block
>
> I have removed the pragmas again... they weren't actually needed (yet)
> and only protected against accidental invocation from within a
> multithreaded context.
>
> If you compile with -O3, multithreaded training should work again.
>
> Tom
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to