8000 Release GIL before calling compost C ++ util · Issue #99 · kylebgorman/pynini · GitHub
[go: up one dir, main page]

Skip to content

Release GIL before calling compost C ++ util #99

Open

Description

@sshankar619

Can GIL be released before calling compose c/ C++ util?

def __matmul__(self, other):

Will be helpful to execute the code in parallel with threadpool instead of processpool dependency

Activity

  1. kylebgorman commented on Nov 28, 2025

    @kylebgorman
    Owner
  2. sshankar619 commented on Nov 29, 2025

    @sshankar619
    Author

    Hi thanks for quick reply.

    Existing code is not releasing gil during fst compose (tested in my internal pipeline) have raised a pull request with changes required,
    Verified in my pipeline that with this code changes gil is released

  3. sshankar619 commented on Mar 5, 2026

    @sshankar619
    Author

    Hi @kylebgorman , Just a followup. Any plans to merge the fix?

  4. kylebgorman commented on Mar 5, 2026

    @kylebgorman
    Owner

    I have an internal version where the GIL is released manually before every C++ call in pywrapfst (these are probably more important than the ones in Pynini per se) and Pynini. I also have appropriate unit tests ready.

    The pywrapfst bump will be out very soon. Pynini will probably be a few more weeks (maybe a month or two at worst---we're all working on it part-time). We are moving to a much better system of releasing for OpenFst (including pywrapfst) as we speak, and will do the same for OpenGrm (including Pynini) as soon as we're done with the OpenFst migration.

  5. kylebgorman commented on Mar 6, 2026

    @kylebgorman
    Owner

    The pywrapfst fixes were just released; see e.g., here

  6. sshankar619 commented on Jul 31, 2026

    @sshankar619
    Author

    Hi @kylebgorman , Sorry to bother, Shall we expect GIL release for pynini in near term?

  7. kylebgorman commented on Jul 31, 2026

    @kylebgorman
    Owner
  8. kylebgorman commented on Aug 13, 2026

    @kylebgorman
    Owner

    The repo is now public at https://github.com/google-research/opengrm.

    This has the GIL-release fixes for Pynini.

    I need to figure out what to do with this repo now that the official OpenGrm is out. Will work on that later.

  9. sshankar619 commented on Aug 19, 2026

    @sshankar619
    Author

    Thank you for support!.
    Will this new pynini be added to pypi? - would be helpful if added

  10. sshankar619 commented on Aug 28, 2026

    @sshankar619
    Author

    Just a followup
    Do we have any plans to upload pynini wheel from https://github.com/google-research/opengrm in pypi?

  11. kylebgorman commented on Aug 28, 2026

    @kylebgorman
    Owner

    Yes, this should end up on PyPI eventually, both source and the manylinux (Linux x86_64) wheels. Haven't done so yet.

  12. sshankar619 commented on Aug 30, 2026

    @sshankar619
    Author

    Would be helpful, if that can be done sooner. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0