Merge elementwise implementations#2920
Conversation
768ab6a to
5ce38ca
Compare
bd51dfe to
b746a0e
Compare
|
@emcastillo |
|
Let me take a look |
|
At first glance, the PR changes look fine and consistent. In numpy ufuncs are a special case of the generalized ufunc. (described by just the signature). |
|
@emcastillo
I don't understand this point. |
|
If reduction and elementwise are going to be unified then there is no problem at all 😄 |
|
This is a long one, so I just want to be sure that I am getting everything right.
I think it might be better to split this in two PRs, one with just |
|
@emcastillo |
|
Thanks! |
|
Btw, |
|
@niboshi Could you resolve conflicts? |
b746a0e to
3e0f181
Compare
|
Successfully created a job for commit 17bda99: |
|
Jenkins CI test (for commit 17bda99, target branch master) failed with status FAILURE. |
|
Jenkins, test this please. |
|
Successfully created a job for commit 7a7e582: |
|
Jenkins CI test (for commit 7a7e582, target branch master) failed with status FAILURE. |
|
Jenkins, test this please. |
|
Successfully created a job for commit 43720e1: |
| # scalar | ||
| arg = ScalarArg(obj) | ||
| return arg | ||
| if isinstance(obj, TextureObject): |
There was a problem hiding this comment.
Thanks, @asi1024! Could you also include MemoryPointer in this category? I have an ongoing PR that would benefit having this. (I could also add this separately later.)
| if isinstance(obj, TextureObject): | |
| if isinstance(obj, (TextureObject, MemoryPointer)): |
(need to import MemoryPointer first).
There was a problem hiding this comment.
I'll fix it after your PR is merged. If this PR is merged before yours, please fix this line in your PR.
There was a problem hiding this comment.
OK no worries 👍 I am still preparing it...
|
Jenkins CI test (for commit 43720e1, target branch master) succeeded! |
|
Benchmarked ufuncs, Consistent increase in CPU time from 10us to 20us Master This time diff holds for all ufuncs, elementwise kernels, reduction and raw kernels. |
emcastillo
left a comment
There was a problem hiding this comment.
LGTM
After discussing offline, we agreed to merge this PR now, as it is a blocker of other PRs.
We will investigate the reasons behind the performance degradation and address them after merging it.
|
Reverted in #3296 for performance issue. |
Elementwise version of #2732.
Merges the logic of
ElementwiseKernelandufunc.