-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Multithreading stalls if using more threads than cores #32258
Comments
I suspect this might be fixed by #32238. |
I tried this on master but couldn't get it to work due to package version restrictions. Not urgent, but when that is sorted out it will be useful to try this on master. In the meantime I think we can fix it for 1.2. |
@JeffBezanson The current master of HomotopyContinuation.jl now works again with the Julia master, but I still see the same behaviour on nightly: https://travis-ci.org/JuliaHomotopyContinuation/HomotopyContinuation.jl/jobs/551168625 |
Can you reproduce that locally? It works for me. |
@JeffBezanson Yes, if I run pkg> add HomotopyContinuation#master
pkg> test HomotopyContinuation on my local machine the test just get stuck at some point.
|
I noticed the following problem with the first release candiate of 1.2.
Assume I have the following snippet:
Now assume I start two Julia REPLs where each has
Threads.nthreads() ==4
.If I paste the snippet into the first session, everything runs fine, but as soon as I paste the snippet into the second session both sessions freeze, but my CPU load is still 200% in each session.
Note that
solve
automatically multithreads using the this code (this is basically an disassembled version of the@threads
macro). Therefore I think the problem only occurs if there are more threads than cores running.I think the same problem happens if I execute the test suite of
HomotopyContinuation
usingpkg> test HomotopyContinuation
At some point the tests just don't continue. If I reduce the test suite to only include the
solve(equations(cyclic(7)))
tests this problem doesn't happen :(I know that this is not really an "MWE" but unfortunately I was not able to find a smaller version to trigger this.
The text was updated successfully, but these errors were encountered: