From cdb377d0cba4889fc909d1bbdd430b988db0db97 Mon Sep 17 00:00:00 2001 From: Deven Desai Date: Fri, 6 Sep 2019 16:03:49 +0000 Subject: Fix for the HIP build+test errors introduced by the ndtri support. The fixes needed are * adding EIGEN_DEVICE_FUNC attribute to a couple of funcs (else HIPCC will error out when non-device funcs are called from global/device funcs) * switching to using :: instead std:: (only for HIPCC) in cases where the std:: is not recognized as a device func by HIPCC * removing an errant "j" from a testcase (don't know how that made it in to begin with!) --- unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'unsupported/Eigen/src') diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 78050d0a1..a9bc205ab 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -624,6 +624,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T generic_ndtri_lt_exp_neg_two( } template +EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T generic_ndtri(const T& a) { const T maxnum = pset1(NumTraits::infinity()); const T neg_maxnum = pset1(-NumTraits::infinity()); -- cgit v1.2.3