Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/OrdinaryDiffEqCore/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["ParamThakkar123 <paramthakkar864@gmail.com>"]
version = "3.4.0"

[deps]
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
SciMLStructures = "53ae85a6-f571-4167-b2af-e1d143709226"
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand Down Expand Up @@ -97,13 +98,11 @@ Reexport = "1.2"

[weakdeps]
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[targets]
test = ["DiffEqDevTools", "Random", "SafeTestsets", "SparseArrays", "Test", "Pkg"]

[extensions]
OrdinaryDiffEqCoreEnzymeCoreExt = "EnzymeCore"
OrdinaryDiffEqCoreMooncakeExt = "Mooncake"
OrdinaryDiffEqCoreSparseArraysExt = "SparseArrays"
4 changes: 4 additions & 0 deletions lib/OrdinaryDiffEqCore/src/OrdinaryDiffEqCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ using SymbolicIndexingInterface: state_values, parameter_values

using ConcreteStructs: @concrete

import EnzymeCore

const CompiledFloats = Union{Float32, Float64}
import Preferences

Expand Down Expand Up @@ -166,6 +168,8 @@ include("solve.jl")
include("initdt.jl")
include("interp_func.jl")

include("enzyme_rules.jl")

include("precompilation_setup.jl")

end
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
module OrdinaryDiffEqCoreEnzymeCoreExt
import OrdinaryDiffEqCore, EnzymeCore

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.increment_nf!), args...
::typeof(increment_nf!), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.fixed_t_for_floatingpoint_error!), args...
::typeof(fixed_t_for_floatingpoint_error!), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.increment_accept!), args...
::typeof(increment_accept!), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.increment_reject!), args...
::typeof(increment_reject!), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.check_error!), args...
::typeof(check_error!), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.log_step!), args...
::typeof(log_step!), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.final_progress), args...
::typeof(final_progress), args...
)
return true
end

function EnzymeCore.EnzymeRules.inactive_noinl(
::typeof(OrdinaryDiffEqCore.ode_determine_initdt), args...
::typeof(ode_determine_initdt), args...
)
return true
end

end
Loading