-
-
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
Performance regression with StaticArray broadcast #30124
Comments
... That's not what I meant with a reduced version. Try inspecting the typed IR ( |
Oops, sorry that's all I have time for at the moment. Inspecting the typed IR is beyond my comfort zone at this point. |
Further reduced (had already been bisected to 9e98386 #29843): using StaticArrays # 0.10.0
K = SMatrix{1,1}(rand(1,1))
using InteractiveUtils
versioninfo()
@code_warntype 2.0 * K
using BenchmarkTools
@btime 2.0 * $K Before and after the offending commit:
So not limited to CUDAnative's Julia support, but a serious broadcast/StaticArrays regression instead. |
Nice work reducing and bisecting to the commit. My hunch is that the cause is the removal of the |
Bump. I assume this is a blocker for 1.1? |
EDIT by @maleadt: see #30124 (comment) for a non-CUDAnative specific reproducer.
The following code works on Julia 1.0.2 and fails in Julia Commit 8a4f20b (2018-11-19 01:50 UTC). The issue first started at JuliaGPU/CUDAnative.jl#291, and @maleadt found the causing commit to be 9e98386. If you replace the multiplication line by the next commented one, it works fine.
My
versioninfo()
is:Good luck!
The text was updated successfully, but these errors were encountered: