Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enzyme] Mark assert applicable as non-differentiable #307

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
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(FFTW.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

Loading