-
-
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
Warning and slowdown for multithreaded Julia code #15740
Comments
Any suggestions? @vtjnash, @yuyichao, @JeffBezanson? |
what commit are you on? consequence of #15717? |
Don't think so?
|
From the version it seems that this should be affected by #15717 although that won't print a warning like this... I'm not really familiar with the threading front end but it may be helpful to see the typed ast ( |
I'll confirm this, but there should be no difference in the AST -- the loop iteration space is divided by the number of threads given by |
It isn't just with 8 threads; doing a multi-process run with MPI, each process having 4 threads, I saw this warning show up on one of the processes. :( |
It's likely this is fixed now. If not, the workaround to try is to declare the types of variables used both inside and outside a |
This seems to be gone. |
Running our application (Celeste) with 8 threads or more produces the following warning (5 of them, sometimes 4):
After which performance gets completely hosed. This message doesn't appear (and performance doesn't get trashed) with 4 threads or less.
Searches for this issue suggest this has something to do with inlining functions, but most of what I found related to package coverage testing which is not what I'm doing.
Is there some issue with threads and this loop metadata?
The text was updated successfully, but these errors were encountered: