Skip to content

Commit

Permalink
Mark assert applicable as non-differentiable
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 2, 2024
1 parent f888022 commit ac78d25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ MKL_jll = "856f044c-d86e-5d09-b602-aeab76dc8ba7"
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[weakdeps]
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"

[extensions]
FFTWEnzymeExt = "Enzyme"

[compat]
AbstractFFTs = "1.5"
Enzyme = "0.12, 0.13"
FFTW_jll = "3.3.9"
LinearAlgebra = "<0.0.1, 1"
MKL_jll = "2019.0.117, 2020, 2021, 2022, 2023, 2024"
Expand Down
8 changes: 8 additions & 0 deletions ext/FFTWEnzymeExt.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module FFTWEnzymeExt

using Enzyme, FFTW

Enzyme.EnzymeRules.inactive_noinl(typeof(assert_applicable), x...) = true

Check warning on line 5 in ext/FFTWEnzymeExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/FFTWEnzymeExt.jl#L5

Added line #L5 was not covered by tests

end # module

0 comments on commit ac78d25

Please sign in to comment.