Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release the GIL in ITK operations #1134

Open
mrocklin opened this issue Aug 2, 2019 · 2 comments

Comments

@mrocklin
Copy link

commented Aug 2, 2019

First, a question: Does the ITK Python library release the GIL when it calls down to lower level C/C++ code?

When I run ITK operations within Dask I notice that my servers lock up. The most common cause of this is that some low level code is holding onto the GIL and not letting go. Is it possible that ITK does this?

If ITK does not release the GIL, could it?

xref https://discourse.itk.org/t/parallelize-itk-imageseriesreader-itk-4-12/1745/15

@thewtex thewtex added this to the ITK v5.1b01 milestone Aug 9, 2019

@thewtex thewtex self-assigned this Aug 9, 2019

@thewtex

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

@mrocklin thanks for the report. We will dive deeper into this.

:xref: #1065 , which was not sufficient.

@blowekamp

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

This is how it is done in SimpleITK:
SimpleITK/SimpleITK@e9ce728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.