-
-
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
Inferior performance of inplace broadcasting over map!
for multiple wide matrices
#47873
Comments
map!
for mumtiple wide matricesmap!
for multiple wide matrices
I think we already have a issue to track this problem but I can't find it. |
Such wide matrices are frequently encountered in |
We have some related (Edit: but for different purpose) trial in |
Do you refer to #28126? |
No the number of broadcasted args in MWE above is too small thus it won't hit #28126.
|
See https://discourse.julialang.org/t/why-is-a-multi-argument-inplace-map-much-faster-in-this-case-than-a-broadcast/91525/6, the following seems broadly reproducible across a range of platforms:
This difference goes away for nearly square matrices, and is minimal for tall matrices. On some platforms, broadcasting performs better for the tall and square cases. However,
map!
seems to consistently do better for the wide case.The text was updated successfully, but these errors were encountered: