Skip to content

Commit

Permalink
Switch to DifferentiationInterface (#135)
Browse files Browse the repository at this point in the history
* Switch to DifferentiationInterface

* Fix more stuff

* Fix tests and start Enzyme

* More tests

* Fix ENzyme

* Update docs

* Select tag and chunksize for AutoForwardDiff

* Right chunksize
  • Loading branch information
gdalle authored Apr 10, 2024
1 parent b70edec commit 66007e0
Show file tree
Hide file tree
Showing 29 changed files with 831 additions and 1,453 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ['1.6', '1']
version: ['1.10', '1']
os: [ubuntu-latest]
arch: [x64]
allow_failure: [false]
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v1
Expand Down
6 changes: 3 additions & 3 deletions CITATION.bib
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ @misc{ImplicitDifferentiation.jl
author = {Guillaume Dalle, Mohamed Tarek and contributors},
title = {ImplicitDifferentiation.jl},
url = {https://github.com/gdalle/ImplicitDifferentiation.jl},
version = {v0.5.0},
year = {2023},
month = {8}
version = {v0.6.0},
year = {2024},
month = {4}
}
61 changes: 35 additions & 26 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,64 +1,73 @@
name = "ImplicitDifferentiation"
uuid = "57b37032-215b-411a-8a7c-41a003a55207"
authors = ["Guillaume Dalle", "Mohamed Tarek and contributors"]
version = "0.5.2"
version = "0.6.0"

[deps]
AbstractDifferentiation = "c29ec348-61ec-40c8-8164-b8c60e9d9f3d"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
Krylov = "ba0b0d4f-ebba-5204-a429-3ac8c609bfb7"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LinearOperators = "5c8ed15e-5a4c-59e4-a42b-c7e8811fb125"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a"

[weakdeps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[extensions]
ImplicitDifferentiationChainRulesCoreExt = "ChainRulesCore"
ImplicitDifferentiationEnzymeExt = "Enzyme"
ImplicitDifferentiationForwardDiffExt = "ForwardDiff"
ImplicitDifferentiationStaticArraysExt = "StaticArrays"
ImplicitDifferentiationZygoteExt = "Zygote"

[compat]
AbstractDifferentiation = "0.5, 0.6"
ChainRulesCore = "1.14"
ForwardDiff = "0.10"
Krylov = "0.8, 0.9"
LinearAlgebra = "1.6"
LinearOperators = "2.2"
PrecompileTools = "1.1"
Requires = "1.3"
SimpleUnPack = "1.1"
StaticArrays = "1.6"
Zygote = "0.6"
julia = "1.6"
ChainRulesCore = "1.23.0"
Enzyme = "0.11.20"
ForwardDiff = "0.10.36"
Krylov = "0.9.5"
LinearAlgebra = "1.10"
LinearOperators = "2.7.0"
julia = "1.10"

[extras]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
Krylov = "ba0b0d4f-ebba-5204-a429-3ac8c609bfb7"
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[targets]
test = ["Aqua", "ChainRulesCore", "ChainRulesTestUtils", "ComponentArrays", "Documenter", "FiniteDifferences", "ForwardDiff", "JET", "JuliaFormatter", "NLsolve", "Optim", "Pkg", "Random", "ReverseDiff", "SparseArrays", "StaticArrays", "Test", "Zygote"]
test = [
"ADTypes",
"Aqua",
"ChainRulesCore",
"ChainRulesTestUtils",
"ComponentArrays",
"DifferentiationInterface",
"Documenter",
"Enzyme",
"ForwardDiff",
"JET",
"JuliaFormatter",
"NLsolve",
"Optim",
"Random",
"SparseArrays",
"StaticArrays",
"Test",
"Zygote",
]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Please read the [documentation](https://gdalle.github.io/ImplicitDifferentiation

In Julia:

- [SciML](https://sciml.ai/) ecosystem, especially [LinearSolve.jl](https://github.com/SciML/LinearSolve.jl), [NonlinearSolve.jl](https://github.com/SciML/NonlinearSolve.jl) and [Optimization.jl](https://github.com/SciML/Optimization.jl)
- [jump-dev/DiffOpt.jl](https://github.com/jump-dev/DiffOpt.jl): differentiation of convex optimization problems
- [axelparmentier/InferOpt.jl](https://github.com/axelparmentier/InferOpt.jl): approximate differentiation of combinatorial optimization problems
- [JuliaNonconvex/NonconvexUtils.jl](https://github.com/JuliaNonconvex/NonconvexUtils.jl): contains the original implementation from which this package drew inspiration
Expand Down
13 changes: 0 additions & 13 deletions benchmark/Project.toml

This file was deleted.

168 changes: 0 additions & 168 deletions benchmark/analysis.jl

This file was deleted.

Loading

0 comments on commit 66007e0

Please sign in to comment.