|
From: Daniel P. <dp...@gm...> - 2013-12-06 17:37:42
|
Ricky, I don't know if you have time to deal with this? I know you've
dealt with the patching of OpenFst before. This code could be put inside
an #ifdef so it will only be active if it's being compiled with gcc version
>= 4.1. (There's something like _GXX_VER or something like that, I think).
The patch should contain a comment saying it is a patch applied by the
Makefile in kaldi's tools/ directory, so that if someone has compilation
problems they will know where to look.
Dan
//int Incr() const { return ++count_; }
//int Decr() const { return --count_; }
int Incr() const { return __sync_add_and_fetch(&count_, 1); }
int Decr() const { return __sync_sub_and_fetch(&count_, 1); }
On Fri, Dec 6, 2013 at 11:27 AM, Gilles Boulianne
<gil...@cr...>wrote:
> Hi all,
>
> people who use Kaldi with multiple threads and experience crashes might be
> interested in this fix for OpenFst:
>
> http://www.openfst.org/twiki/bin/view/Forum/FstForum#Thread_safety
>
> Thanks to Yanqing Sun for submitting his problem with BigLmDecoder and
> testing the fix.
>
> Gilles Boulianne
> CRIM
> http://www.crim.ca
>
>
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Kaldi-users mailing list
> Kal...@li...
> https://lists.sourceforge.net/lists/listinfo/kaldi-users
>
|