Skip to content
Open
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
4 changes: 3 additions & 1 deletion benchmarks/AutomaticDifferentiation/BrussScaling.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ From the paper [A Comparison of Automatic Differentiation and Continuous Sensiti

```julia
using OrdinaryDiffEq, ReverseDiff, ForwardDiff, FiniteDiff, SciMLSensitivity
using LinearAlgebra, Tracker, Plots
using LinearAlgebra, Tracker, Plots, Mooncake
```

```julia
Expand Down Expand Up @@ -300,6 +300,7 @@ _adjoint_methods = ntuple(2) do ii
advj1 = Alg(autodiff=true,autojacvec=EnzymeVJP()), # AD vJ
advj2 = Alg(autodiff=true,autojacvec=ReverseDiffVJP(false)), # AD vJ
advj3 = Alg(autodiff=true,autojacvec=ReverseDiffVJP(true)), # AD vJ
advj4 = Alg(autodiff=true,autojacvec=MooncakeVJP()), # AD vJ
)
end |> NamedTuple{(:interp, :quad)}
adjoint_methods = mapreduce(collect, vcat, _adjoint_methods)
Expand All @@ -326,6 +327,7 @@ plot!(plt2, n_to_param.(csan), csadata[2+3], lab="AD-Jacobian", lw=lw, marksize=
plot!(plt2, n_to_param.(csan), csacompare[1+3], lab=raw"EnzymeVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
plot!(plt2, n_to_param.(csan), csacompare[2+3], lab=raw"ReverseDiffVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
plot!(plt2, n_to_param.(csan), csacompare[3+3], lab=raw"Compiled ReverseDiffVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
plot!(plt2, n_to_param.(csan), csacompare[4+3], lab=raw"MooncakeVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
xaxis!(plt2, "Number of Parameters", :log10);
yaxis!(plt2, "Runtime (s)", :log10);
plot!(plt2, legend=:outertopleft, size=(1200, 600))
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/AutomaticDifferentiation/JuliaAD.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: Guillaume Dalle and Chris Rackauckas

```julia
using DifferentiationInterface, DifferentiationInterfaceTest, DataFrames, DataFramesMeta
import Enzyme, Zygote, Tapir
import Enzyme, Zygote, Mooncake
import Markdown, PrettyTables, Printf

function paritytrig(x::AbstractVector{T}) where {T}
Expand All @@ -22,7 +22,7 @@ end

backends = [
AutoEnzyme(mode=Enzyme.Reverse),
AutoTapir(safe_mode=false),
AutoMooncake(safe_mode=false),
AutoZygote(),
];

Expand Down
Loading