Uh oh!
There was an error while loading. Please reload this page.
WIP: GPU-compatibility of Jacobians - #406
Conversation
ChrisRackauckas
commented
Jul 12, 2019
@vchuravy any idea why this would fallback to the Base broadcasting? using ForwardDiff, CuArrays
x =CuArray([ForwardDiff.Dual(1.0f0,(0.0f0,0.0f0)) for i in1:10])
CuArrays.allowscalar(false)
ForwardDiff.partials.(Float32,x,1) |
KristofferC
commented
Jul 12, 2019
The reason that PR got reverted needs to be checked here. |
ChrisRackauckas
commented
Jul 13, 2019
I see. As a continuation of #353@maleadt . The routes I'm thinking of are:
Of course, not having it in ForwardDiff.jl is a hassle, and having the piracy version in DiffEqBase is a little awkward, but my main priority is to get it working for DiffEq and then find out where to put the code later. |
| duals[i] = Dual{T,V,N}(x[i], seeds[i]) | ||
| end | ||
| i = 1:N | ||
| @views duals[i] .= Dual{T,V,N}.(x[i], seeds) |
There was a problem hiding this comment.
Perhaps these @views could be reduced in "strength" by putting them where they are needed, e.g. only on the x[i]? And could the usage of @. be consistent among the changes (it's not used here, but used in other places).
charleskawczynski
commented
Feb 9, 2021
I think we can close this now that #472 has merged. |
MWE: