-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stall when pynini is imported before this library (#33)
* Fix stall when pynini is imported before this library Previously, doing this: import pynini import riva.asrlib.decoder would end in a stall. This was because the FlagRegister template class had a static variable Mutex, that ended up being shared by default in the global symbol namespace. Because the openfst versions are different between the two libraries (I think pynini's openfst 1.8.2 uses absl::Mutex), the mutex layouts are different, probably causing the stall. We don't want the symbols to be shared in this case, so we disable unique symbols via "-fno-gnu-unique". * Increase error margin. Helps with flaky CI failures.
- Loading branch information
Showing
3 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters