From 6d284bb1b7e467283229073c26e6628c835779cc Mon Sep 17 00:00:00 2001 From: Deven Desai Date: Thu, 16 Jan 2020 00:51:43 +0000 Subject: [PATCH] Fix for HIP breakage - 200115. Adding a missing EIGEN_DEVICE_FUNC attr --- unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 425231aa6..0044b8a27 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -714,6 +714,7 @@ struct cephes_helper { enum IgammaComputationMode { VALUE, DERIVATIVE, SAMPLE_DERIVATIVE }; template +EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Scalar main_igamma_term(Scalar a, Scalar x) { /* Compute x**a * exp(-x) / gamma(a) */ Scalar logax = a * numext::log(x) - x - lgamma_impl::run(a);