aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Deven Desai <deven.desai.amd@gmail.com>2020-01-16 00:51:43 +0000
committerGravatar Deven Desai <deven.desai.amd@gmail.com>2020-01-16 00:51:43 +0000
commit6d284bb1b7e467283229073c26e6628c835779cc (patch)
tree54b23dce2e0ec62630450222365421b8d9c50675 /unsupported
parentf6c6de5d63a0c68e71d846604779867ce126d91b (diff)
Fix for HIP breakage - 200115. Adding a missing EIGEN_DEVICE_FUNC attr
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h1
1 files changed, 1 insertions, 0 deletions
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<double> {
enum IgammaComputationMode { VALUE, DERIVATIVE, SAMPLE_DERIVATIVE };
template <typename Scalar>
+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<Scalar>::run(a);