We are hitting an error in GridKit when attempting to differentiate std::tan with clang 19+ and -ffast-math. This works for clang 15 to clang 18.
Current workarounds include:
- Removing the
-ffast-math flag, which may limit performance
- Adding a
-fno-builtin-tan flag
- Rewriting the
std::tan call explicitly as std::sin/std::cos
I would rather natively supporting this on the Enzyme side.
Here's an Enzyme explorer reproducer
cc @pelesh @wsmoses @lukelowry
We are hitting an error in GridKit when attempting to differentiate
std::tanwithclang 19+and-ffast-math. This works forclang 15toclang 18.Current workarounds include:
-ffast-mathflag, which may limit performance-fno-builtin-tanflagstd::tancall explicitly asstd::sin/std::cosI would rather natively supporting this on the Enzyme side.
Here's an Enzyme explorer reproducer
cc @pelesh @wsmoses @lukelowry