# Which direction: DifferentiatonInterface, Enzyme, Zygote with CUDA and FFTs?

**URL:** <https://discourse.julialang.org/t/which-direction-differentiatoninterface-enzyme-zygote-with-cuda-and-ffts/132225>\
**Category:** General Usage\
**Tags:** ad\
**Created:** [September 9, 2025, 10:22am UTC](https://discourse.julialang.org/t/which-direction-differentiatoninterface-enzyme-zygote-with-cuda-and-ffts/132225 "2025-09-09T10:22:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [September 9, 2025, 2:10pm UTC](https://discourse.julialang.org/t/which-direction-differentiatoninterface-enzyme-zygote-with-cuda-and-ffts/132225/9 "2025-09-09T14:10:14Z")

</div>

> [@Autodifferentiation with FFT, with Enzyme?](https://discourse.julialang.org/t/autodifferentiation-with-fft-with-enzyme/128674/2):
>
> It would be great to have some Enzyme rules in AbstractFFTs.jl (there’s a draft PR at [Add EnzymeRules by sethaxen · Pull Request #103 · JuliaMath/AbstractFFTs.jl · GitHub](https://github.com/JuliaMath/AbstractFFTs.jl/pull/103), but someone has to adopt the project and get it over the finish line). In the meantime, maybe you’ll find the following Enzyme reverse rule useful, extracted from a private project I’m working on. It’s not a complete solution (no forward rules, no batched rules, no rule for mul!), but I think it’s correct for the cases it cov…

---

_[View the full topic](https://discourse.julialang.org/t/which-direction-differentiatoninterface-enzyme-zygote-with-cuda-and-ffts/132225)._
