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

Update wrapper.jl #12

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Update wrapper.jl #12

merged 1 commit into from
Feb 11, 2022

Conversation

raminammour
Copy link
Contributor

@raminammour raminammour commented Feb 10, 2022

Hello,

I have seen a deadlock from calling lbfgsb many times with multi-threaded code inside jupyter notebooks. I have not been able to produce a MWE to submit a reliable test here, but I have been able to fix locally with the flush(stdout) commands added above.

It only happens when iprint=1 and there would be a lot of printing, which made me suspect buffered IO and try the solution submitted here.

I know this may be a poor justification for the PR, but the above commands can't hurt (hopefully) :)

Cheers!

Hello, 

I have seen a deadlock from calling `lbfgsb` many times with multi-threaded code inside `jupyter` notebooks. I have not been able to produce a MWE to submit a reliable test here, but I have been able to fix locally with the `flush(stdout)` commands added above.

I know this may be a poor justification for the PR, but the above commands can't hurt (hopefully) :)

Cheers!
@Gnimuc Gnimuc merged commit 722dac0 into Gnimuc:master Feb 11, 2022
@Gnimuc
Copy link
Owner

Gnimuc commented Feb 11, 2022

Thanks!

Gnimuc added a commit that referenced this pull request Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants