I’m learning how to use DifferentialEquations.jl, specifically the OrdinaryDiffEq.jl package, and making sure I do everything “type stable”. I’m seeing some issues when I use @report_opt
from JET.jl. Here’s a MWE:
using OrdinaryDiffEq
f(u) = -u
function g()
prob = ODEProblem{false}((u, p, t) -> f(u), 1.0, (0.0, 1.0))
sol = solve(prob)
end
@code_warntype g()
gives a bunch of output, but no red Any
s. @report_opt g()
give a bunch of output, including multiple “runtime dispatch detected”. Is this something I should worry about?