diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index ee62f01b8..155fdad20 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -968,7 +968,7 @@ struct fma_impl { // STD or ADL version if it exists. template struct fma_impl::value>> { - static T run(const T& a, const T& b, const T& c) { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T run(const T& a, const T& b, const T& c) { using std::fma; return fma(a, b, c); }