Skip to content

Commit f2d9c31

Browse files
another bump
1 parent ff66bb4 commit f2d9c31

File tree

3 files changed

+41
-9
lines changed

3 files changed

+41
-9
lines changed

benchmarks/AutomaticDifferentiation/BrussScaling.jmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ From the paper [A Comparison of Automatic Differentiation and Continuous Sensiti
77

88
```julia
99
using OrdinaryDiffEq, ReverseDiff, ForwardDiff, FiniteDiff, SciMLSensitivity
10-
using LinearAlgebra, Tracker, Plots
10+
using LinearAlgebra, Tracker, Plots, Mooncake
1111
```
1212

1313
```julia
@@ -300,6 +300,7 @@ _adjoint_methods = ntuple(2) do ii
300300
advj1 = Alg(autodiff=true,autojacvec=EnzymeVJP()), # AD vJ
301301
advj2 = Alg(autodiff=true,autojacvec=ReverseDiffVJP(false)), # AD vJ
302302
advj3 = Alg(autodiff=true,autojacvec=ReverseDiffVJP(true)), # AD vJ
303+
advj4 = Alg(autodiff=true,autojacvec=MooncakeVJP()), # AD vJ
303304
)
304305
end |> NamedTuple{(:interp, :quad)}
305306
adjoint_methods = mapreduce(collect, vcat, _adjoint_methods)
@@ -326,6 +327,7 @@ plot!(plt2, n_to_param.(csan), csadata[2+3], lab="AD-Jacobian", lw=lw, marksize=
326327
plot!(plt2, n_to_param.(csan), csacompare[1+3], lab=raw"EnzymeVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
327328
plot!(plt2, n_to_param.(csan), csacompare[2+3], lab=raw"ReverseDiffVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
328329
plot!(plt2, n_to_param.(csan), csacompare[3+3], lab=raw"Compiled ReverseDiffVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
330+
plot!(plt2, n_to_param.(csan), csacompare[4+3], lab=raw"MooncakeVJP", lw=lw, marksize=ms, linestyle=:auto, marker=:auto);
329331
xaxis!(plt2, "Number of Parameters", :log10);
330332
yaxis!(plt2, "Runtime (s)", :log10);
331333
plot!(plt2, legend=:outertopleft, size=(1200, 600))

benchmarks/AutomaticDifferentiation/Manifest.toml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.10.9"
44
manifest_format = "2.0"
5-
project_hash = "2983b00da262042be0b35f9018f9bdaee47ee5fc"
5+
project_hash = "0e7813befa361b5f80f378028b3b230dc87d920f"
66

77
[[deps.ADTypes]]
88
git-tree-sha1 = "be7ae030256b8ef14a441726c4c37766b90b93a3"
@@ -242,9 +242,9 @@ version = "1.72.5"
242242

243243
[[deps.ChainRulesCore]]
244244
deps = ["Compat", "LinearAlgebra"]
245-
git-tree-sha1 = "1713c74e00545bfe14605d2a2be1712de8fbcb58"
245+
git-tree-sha1 = "06ee8d1aa558d2833aa799f6f0b31b30cada405f"
246246
uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
247-
version = "1.25.1"
247+
version = "1.25.2"
248248
weakdeps = ["SparseArrays"]
249249

250250
[deps.ChainRulesCore.extensions]
@@ -1511,6 +1511,11 @@ git-tree-sha1 = "ec4f7fbeab05d7747bdf98eb74d130a2a2ed298d"
15111511
uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
15121512
version = "1.2.0"
15131513

1514+
[[deps.MistyClosures]]
1515+
git-tree-sha1 = "1142aefd845c608f3c70e4c202c4aae725cab67b"
1516+
uuid = "dbe65cb8-6be2-42dd-bbc5-4196aaced4f4"
1517+
version = "2.0.0"
1518+
15141519
[[deps.Mmap]]
15151520
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
15161521

@@ -1538,6 +1543,32 @@ version = "10.4.0"
15381543
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
15391544
Pyomo = "0e8e1daf-01b5-4eba-a626-3897743a3816"
15401545

1546+
[[deps.Mooncake]]
1547+
deps = ["ADTypes", "ChainRules", "ChainRulesCore", "DiffRules", "ExprTools", "FunctionWrappers", "GPUArraysCore", "Graphs", "InteractiveUtils", "LinearAlgebra", "MistyClosures", "Random", "Test"]
1548+
git-tree-sha1 = "243e07d3dc3842b9daa113d96c1d66981a5906b5"
1549+
uuid = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1550+
version = "0.4.123"
1551+
1552+
[deps.Mooncake.extensions]
1553+
MooncakeAllocCheckExt = "AllocCheck"
1554+
MooncakeCUDAExt = "CUDA"
1555+
MooncakeFluxExt = "Flux"
1556+
MooncakeJETExt = "JET"
1557+
MooncakeLuxLibExt = "LuxLib"
1558+
MooncakeLuxLibSLEEFPiratesExtension = ["LuxLib", "SLEEFPirates"]
1559+
MooncakeNNlibExt = "NNlib"
1560+
MooncakeSpecialFunctionsExt = "SpecialFunctions"
1561+
1562+
[deps.Mooncake.weakdeps]
1563+
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
1564+
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
1565+
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1566+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
1567+
LuxLib = "82251201-b29d-42c6-8e01-566dec8acb11"
1568+
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1569+
SLEEFPirates = "476501e8-09a2-5ece-8869-fb82de89a1fa"
1570+
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1571+
15411572
[[deps.Moshi]]
15421573
deps = ["ExproniconLite", "Jieko"]
15431574
git-tree-sha1 = "453de0fc2be3d11b9b93ca4d0fddd91196dcf1ed"
@@ -2361,16 +2392,14 @@ version = "1.0.0"
23612392

23622393
[[deps.SciMLSensitivity]]
23632394
deps = ["ADTypes", "Accessors", "Adapt", "ArrayInterface", "ChainRulesCore", "DiffEqBase", "DiffEqCallbacks", "DiffEqNoiseProcess", "Distributions", "Enzyme", "FastBroadcast", "FiniteDiff", "ForwardDiff", "FunctionProperties", "FunctionWrappersWrappers", "Functors", "GPUArraysCore", "LinearAlgebra", "LinearSolve", "Markdown", "OrdinaryDiffEqCore", "PreallocationTools", "QuadGK", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "ReverseDiff", "SciMLBase", "SciMLJacobianOperators", "SciMLStructures", "StaticArrays", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface", "Tracker", "Zygote"]
2364-
git-tree-sha1 = "d53a478dec50aba85214d48a935796bded15fa2b"
2395+
git-tree-sha1 = "3228b1943c449d0f21b3dcd8741deff054b9ace7"
23652396
uuid = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
2366-
version = "7.86.0"
2397+
version = "7.86.1"
2398+
weakdeps = ["Mooncake"]
23672399

23682400
[deps.SciMLSensitivity.extensions]
23692401
SciMLSensitivityMooncakeExt = "Mooncake"
23702402

2371-
[deps.SciMLSensitivity.weakdeps]
2372-
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
2373-
23742403
[[deps.SciMLStructures]]
23752404
deps = ["ArrayInterface"]
23762405
git-tree-sha1 = "566c4ed301ccb2a44cbd5a27da5f885e0ed1d5df"

benchmarks/AutomaticDifferentiation/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
99
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1010
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1111
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
12+
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1213
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
1314
ParameterizedFunctions = "65888b18-ceab-5e60-b2b9-181511a3b968"
1415
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"

0 commit comments

Comments
 (0)