From b021cdea6dd84b0f51dd7aea691d47dd3eab8e9d Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 27 Aug 2019 11:30:31 -0700 Subject: Clean up float16 a.k.a. Eigen::half support in Eigen. Move the definition of half to Core/arch/Default and move arch-specific packet ops to their respective sub-directories. --- Eigen/Core | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Eigen/Core') diff --git a/Eigen/Core b/Eigen/Core index af741a241..e6e31caee 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -160,6 +160,9 @@ using std::ptrdiff_t; #include "src/Core/GenericPacketMath.h" #include "src/Core/MathFunctionsImpl.h" #include "src/Core/arch/Default/ConjHelper.h" +// Generic half float support +#include "src/Core/arch/Default/Half.h" +#include "src/Core/arch/Default/TypeCasting.h" #if defined EIGEN_VECTORIZE_AVX512 #include "src/Core/arch/SSE/PacketMath.h" @@ -207,14 +210,10 @@ using std::ptrdiff_t; #include "src/Core/arch/MSA/Complex.h" #endif -// Half float support -#include "src/Core/arch/GPU/Half.h" -#include "src/Core/arch/GPU/PacketMathHalf.h" -#include "src/Core/arch/GPU/TypeCasting.h" - #if defined EIGEN_VECTORIZE_GPU #include "src/Core/arch/GPU/PacketMath.h" #include "src/Core/arch/GPU/MathFunctions.h" + #include "src/Core/arch/GPU/TypeCasting.h" #endif #if defined(EIGEN_USE_SYCL) -- cgit v1.2.3