Skip to content
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

attempt to precompile linsolve #698

Merged
merged 12 commits into from
Aug 12, 2021
1 change: 1 addition & 0 deletions src/DiffEqBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ include("internal_euler.jl")
include("init.jl")
include("forwarddiff.jl")
include("chainrules.jl")
include("precompile.jl")
ChrisRackauckas marked this conversation as resolved.
Show resolved Hide resolved

"""
$(TYPEDEF)
Expand Down
6 changes: 6 additions & 0 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_linsolve = DefaultLinSolve()
_testf(du,u,p,t) = du .= u
b = rand(1); x = rand(1)
DEFAULT_LINSOLVE(Val{:init},ODEFunction(_testf),b)
A = rand(1,1)
DEFAULT_LINSOLVE(x,A,b,true)