From 6270d851e3082b272d4a2cd723ac800fa954224e Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Mon, 22 Feb 2016 13:59:33 -0800 Subject: [PATCH] Declare the half float type as arithmetic. --- Eigen/src/Core/arch/CUDA/PacketMathHalf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h index bd42cb558b..1a1b4ec3d8 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h @@ -64,6 +64,7 @@ __device__ half abs(const half& a) { namespace Eigen { namespace internal { +template<> struct is_arithmetic { enum { value = true }; }; template<> struct is_arithmetic { enum { value = true }; }; template<> struct packet_traits : default_packet_traits