-
-
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
Factorization twice as slow on 0.6 than 0.5 #21624
Comments
Its due to these regression as noted in #20993: | |
Right. Do we have an idea what caused those? Isn't that all handled by Lapack? A factor of two seems high. |
Code path have not changed, and not the lapack wrapper either. But the factor 2 are there: julia> A = rand(256, 256); cA = complex(A);
julia> @btime LinAlg.LAPACK.gees!('V', copy($cA)); # 0.6
200.070 ms (11 allocations: 2.14 MiB)
julia> @btime LinAlg.LAPACK.gees!('V', copy($cA)); # 0.5.1
90.971 ms (11 allocations: 2.14 MiB) |
Same version of OpenBLAS?
…On Fri, Apr 28, 2017 at 9:14 PM, Fredrik Ekre ***@***.***> wrote:
Code path have not changed, and not the lapack wrapper either. But the
factor 2 are there:
julia> A = rand(256, 256); cA = complex(A);
julia> @Btime LinAlg.LAPACK.gees!('V', copy($cA)); # 0.6
200.070 ms (11 allocations: 2.14 MiB)
julia> @Btime LinAlg.LAPACK.gees!('V', copy($cA)); # 0.5.1
90.971 ms (11 allocations: 2.14 MiB)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#21624 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAe0qUeD2AFiY749y_zjxaeVXBdd4zdcks5r0o7kgaJpZM4NMES8>
.
|
Nothing obvious shows up when profiling.
0.5.1:
|
Yes, I have just compiled the default for master and 0.5.1 and OpenBLAS version does not seem to have changed? fredrik@fredrik-desktop:~$ cat julia-master/deps/openblas.version
OPENBLAS_BRANCH=v0.2.19
OPENBLAS_SHA1=85636ff1a015d04d3a8f960bc644b85ee5157135
fredrik@fredrik-desktop:~$ cat julia-release/deps/openblas.version
ifneq (,$(filter $(ARCH), powerpc64le ppc64le))
OPENBLAS_BRANCH=v0.2.19
OPENBLAS_SHA1=85636ff1a015d04d3a8f960bc644b85ee5157135
else
OPENBLAS_BRANCH=v0.2.18
OPENBLAS_SHA1=12ab1804b6ebcd38b26960d65d254314d8bc33d6 |
Would it be an issue with the |
These calls should be long enough for |
I can't compile julia from scratch (Windows) but is there an archive of old nightlies to see if I can identify when the problem started occurring? I think this is a pretty big issue that really should be fixed... |
julianightlies.s3.amazonaws.com goes back about a month |
I thought |
According to this report the regressions date from before March 8th. |
I believe that PR seems was only for |
Oh, but I see that you are specifically benchmarking |
You're right, my mistake. Yes, the slowdown seems to be with |
I can't reproduce the
|
Could it be a threading issue on your machine? Try |
Is the optimization level the same between macOS and Linux? I vaguely recall a change from -O3 to -O2 for some dependencies, but I can't find the issue. |
It's not just my machine, the slowdown is detected by nanosoldier. |
I just tried on my Mac as well and I still see a slowdown with a factor 2... |
It might be useful if people would report |
I can see a slowdown of 2 (or more) on the following 3 setups (comparing
|
I am so confused. With this: using BenchmarkTools
function benchmark()
versioninfo()
A = rand(256, 256)
cA = complex(A)
for i in 1:3
println(minimum(@benchmark LinAlg.LAPACK.gees!('V', copy($cA))))
end
end
benchmark() I get the following on the same commit the only difference being that one is from the 609b3d1 checked out from
609b3d1 checked out from
|
So it turns out that my directory for the My conclusion is that some build flags must have changed, but did not trigger a recompile of the library in my |
Can you figure out what openblas incantations get the performance back? Is this something to do with |
0.6: (55c97fb)
0.5.1:
The text was updated successfully, but these errors were encountered: