-
-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
Thank you! |
5a9ceb3
to
e36a10c
Compare
Co-Authored-By: chengchingwen <[email protected]>
bors try |
I only add |
tryBuild succeeded |
Can you open a PR to CUDAnative with the definition for |
I guess this depends on JuliaGPU/CUDAnative.jl#394? |
@maleadt It does depends on JuliaGPU/CUDAnative.jl#394. What about calling |
tryBuild failed |
@maleadt I use |
Since this PR was only meant to handle the problem of broadcasting |
@maleadt I also add the diffrule for |
Should we have a test for the ForwardDiff logic? |
Looks generally good. Testing a bit more comprehensively would be nice, but since there's no ForwardDiff test setup right now AFAIK that may be a big ask. Are we testing the various literal / non-literal power cases? There's also a merge conflict that needs fixing. |
@MikeInnes the conflict is because the master of CuArrays move ForwardDiff to another file, so I just merge the master of CuArrays to this PR. Since the ForwardDiff is now using with the Require, are there any way to test it? |
You could add ForwardDiff as a test dependency. Honestly it might just be better to have it as a regular dependency at this point; I would want to check that the other maintainers don't object, though. |
I moved it out to reduce the set of dependencies to test CuArrays on my development system. Requires makes much sense here IMO, wouldn't it be equivalent to add some CI rule to make sure ForwardDiff is installed? |
@MikeInnes I could try to add some tests for ForwardDiff with CuArrays, but I'm totally unfamiliar with ForwardDiff. The implementation of |
So I finally find a way to test all the ForwardDiff and also fix some function that are not able to use the diffrule directly (due to calling the native function with literal number/ |
@MikeInnes Anything else to do here? |
bors r+ |
325: broadcast for ^ r=maleadt a=chengchingwen broadcast `^` for `CuArray` since there is no `Base.pow` Co-authored-by: chengchingwen <[email protected]> Co-authored-by: Valentin Churavy <[email protected]>
Build failed |
@maleadt Could you try again, this should pass all the test. |
bors r+ |
325: broadcast for ^ r=maleadt a=chengchingwen broadcast `^` for `CuArray` since there is no `Base.pow` Co-authored-by: chengchingwen <[email protected]> Co-authored-by: Valentin Churavy <[email protected]>
Build succeeded |
broadcast
^
forCuArray
since there is noBase.pow