-
Notifications
You must be signed in to change notification settings - Fork 259
No more scalar operations on CuArrays. #264
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
Conversation
glwagner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
Would also be useful to have a function (ie, parentdata) that returns a view over the parent |
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
+ Coverage 70.73% 71.14% +0.41%
==========================================
Files 23 23
Lines 868 870 +2
==========================================
+ Hits 614 619 +5
+ Misses 254 251 -3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
+ Coverage 70.73% 71.03% +0.29%
==========================================
Files 23 23
Lines 868 870 +2
==========================================
+ Hits 614 618 +4
+ Misses 254 252 -2
Continue to review full report at Codecov.
|
Decided to go with |
glwagner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested “parentdata” to match the semantics of OffsetArrays, but underlyingdata is ok with me.
This PR fixes a recent regression in
Modelconstruction time due to broadcasting over anOffsetArray{CuArray}getting converted to a scalar operation. Constructing models should be fast again.I've also completely disabled scalar operations on CuArrays so this shouldn't happen again.
cc @sandreza
Actually fixes #82