-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Switch to using ADTypes for AD choice #2508
Conversation
@oscardssmith It's able to precompile in this state, so at least anything in the precompile workloads will work. I'm pretty sure some tests won't pass though, and I still need to add some tests as well. |
5aab8fc
to
4ada725
Compare
@oscardssmith All CI tests are passing now. Some integration tests are broken. |
The StochasticDiffEq error looks very odd. @gdalle any idea what would cause this?
|
It appears you have a chunksize of |
Yeah, my guess is that it has something to do with the chunksize, |
I think it's because the fallback |
If anything, that fallback should be |
What's happening here is that we were using |
That's what |
Actually, I think I'm wrong, for a Stochastic algorithm, it should be getting the chunksize from one of these. OrdinaryDiffEq.get_chunksize(alg::StochasticDiffEqNewtonAlgorithm{CS,AD,FDT,ST,CJ,Controller}) where {CS,AD,FDT,ST,CJ,Controller} = Val(CS)
OrdinaryDiffEq.get_chunksize(alg::StochasticDiffEqNewtonAdaptiveAlgorithm{CS,AD,FDT,ST,CJ,Controller}) where {CS,AD,FDT,ST,CJ,Controller} = Val(CS)
OrdinaryDiffEq.get_chunksize(alg::StochasticDiffEqJumpNewtonAdaptiveAlgorithm{CS,AD,FDT,ST,CJ,Controller}) where {CS,AD,FDT,ST,CJ,Controller} = Val(CS)
OrdinaryDiffEq.get_chunksize(alg::StochasticDiffEqJumpNewtonDiffusionAdaptiveAlgorithm{CS,AD,FDT,ST,CJ,Controller}) where {CS,AD,FDT,ST,CJ,Controller} = Val(CS) |
Note that depending on the semantics of chunk size in these libraries (which I don't know), setting
|
To get a clearer idea of which tests are actually failing and which tests are just Codecov complaining about your uploads, you can temporarily set these settings to
|
Oh thanks, that's helpful. |
@oscardssmith all CI tests pass, and all of the failing integration tests are failing on master as well. |
looks good! Thanks so much |
This Codecov throttling is really frustrating |
Yeah and we need to delete it repo by repo for ones that don't use the high level CI description 😱 . At least there aren't too many repos left that need to do it. |
f05b76d
to
0c22789
Compare
I believe all the tests that are failing here are also failing on master. |
@ChrisRackauckas @oscardssmith I think this is ready |
Can you make sure to do the downstream in StochasticDiffEq and DelayDiffEq? |
Yes, will do. |
hot damn, this is a great christmas gift! thanks for all your hard work |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
This will switch over to using ADTypes for the
autodiff
keyword in the construction of the solver types.autodiff
keyword to beAutoForwardDiff()
instead oftrue
.true
orfalse
forautodiff
usesAutoForwardDiff()
andAutoFiniteDiff()
respectively.chunk_size
anddiff_type
kwargs are used with a Boolautodiff
, they are respected.