-
-
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
Extremely high first call latency Julia 1.6 versus 1.5 with multiphysics PDE solver #43206
Comments
|
Not really. Still under investigation. :-) |
Analyzing the problem with
Adding a
the compile time on Julia 1.6.4 was comparable to 1.5.4 again. Inspired by a different thread I also checked the MWE without I currently conclude:
Is this intended behaviour? |
How is the behavior on 1.7? #42263 fixed on of the latency problems with gridap and is in 1.7. |
The following MWE tries to mimic the problem
When run on 1.7.0-rc3 -O2 I see
Removing
Unfortunately I can't reproduce the -O1 behavior for this example with 1.7.0-rc3 and am therefore unsure how good a MWE this is. But at least this indicates that the compiler should stop at some point generating specializations? |
Checked 1.7.0-rc3 -O1/-O2: behavior looks similar to 1.6.4. |
Thanks for checking and that's a great MWE. |
OK, if you like this stuff, then the obvious continuation
works
and crashes the compiler without |
FYI -O1 does not actually change which specializations are generated, but |
If you have time a bisect might help here. |
I'm not convinced anymore my reproducers are any good. Bisecting with the 12 hour compile time of the original MWE might take some time? Trying to reduce the original MWE I stumbled about quite some type instabilities and have the distinct impression of a relation between type instabilities and longer compile times on -O2. Therefore I filed gridapapps/GridapGeosciences.jl#28 and Edit: to demonstrate the differences to the original MWE
yields on Julia 1.8.0-DEV -O2
and on Julia 1.5.4 -O2 without JET
So I see a slight compile time regression, but not orders of magnitude as reported and the example does not contain type instabilities. It might be related (and an issue in itself) but is not a clear reproducer. |
We were able to solve the problem by removing quite a lot of Hope this provides some clue. |
Dear all,
apologies if this is not the appropriate forum to report the following.
As suggested by the issue system I already tried in julia lang Discourse without too much success, so that I am afraid that it might have passed unadverted to some of the Julia compiler experts. The julia discourse thread is available here https://discourse.julialang.org/t/extremely-high-first-call-latency-julia-1-6-versus-1-5-with-multiphysics-pde-solver/71692.
For convenience let me copy here the contents of the main post there.
@amartinhuertas
The text was updated successfully, but these errors were encountered: