-
Notifications
You must be signed in to change notification settings - Fork 192
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
Python Interface should release the GIL when run gets called #1593
Comments
Please assign me. |
Relatedly, HiGHS ignores keyboard interrupts. I assume that this is also due to how HiGHS gets called. |
Through highspy, I can well imagine that it does ignore keyboard interrupts |
Yes, I believe releasing the GIL will also fix the keyboard interrupt issue. |
Hello, may I ask whether this has been fixed? I'm sometimes experiencing similar problems. Thanks! |
I did try to fix this, but my initial attempt was not successful. I'll give it another try today. |
Ahh... I think I see how to fix this. |
I've got the keyboard interrupt working. I'll create a PR shortly. |
Should be fixed in latest already, note, that #1942 was just merged with some significant updates. Closing this, @michaelbynum please open another issue if you run into any further problems. Thank you! |
The GIL prevents other python threads from running. Releasing it when
run
is called (and grabbing it again at the end ofrun
) will allow other threads to proceed while HiGHS is running.The text was updated successfully, but these errors were encountered: