From 3dfc391a61a97ed5dae526b90680ae12b630f412 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Mon, 23 May 2016 20:56:59 -0700 Subject: [PATCH] Added missing EIGEN_DEVICE_FUNC qualifier --- Eigen/src/Core/arch/CUDA/TypeCasting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/CUDA/TypeCasting.h b/Eigen/src/Core/arch/CUDA/TypeCasting.h index 38f7500ee..9b4fbe205 100644 --- a/Eigen/src/Core/arch/CUDA/TypeCasting.h +++ b/Eigen/src/Core/arch/CUDA/TypeCasting.h @@ -97,7 +97,7 @@ struct type_casting_traits { }; }; -template<> EIGEN_STRONG_INLINE half2 pcast(const float4& a) { +template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE half2 pcast(const float4& a) { // Simply discard the second half of the input return __float22half2_rn(make_float2(a.x, a.y)); }