From d791d48859c6fc7850c9fd5270d2b236c818068d Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 18 Jun 2024 22:34:32 +0000 Subject: [PATCH] Fix AVX512FP16 build failure --- Eigen/src/Core/arch/AVX512/TypeCasting.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Eigen/src/Core/arch/AVX512/TypeCasting.h b/Eigen/src/Core/arch/AVX512/TypeCasting.h index e471684cc..9508ac66b 100644 --- a/Eigen/src/Core/arch/AVX512/TypeCasting.h +++ b/Eigen/src/Core/arch/AVX512/TypeCasting.h @@ -42,12 +42,10 @@ struct type_casting_traits : vectorized_type_casting_traits struct type_casting_traits : vectorized_type_casting_traits {}; -#ifndef EIGEN_VECTORIZE_AVX512FP16 template <> struct type_casting_traits : vectorized_type_casting_traits {}; template <> struct type_casting_traits : vectorized_type_casting_traits {}; -#endif template <> struct type_casting_traits : vectorized_type_casting_traits {}; @@ -249,8 +247,6 @@ EIGEN_STRONG_INLINE Packet8bf preinterpret(const Packet16 return _mm256_castsi256_si128(a); } -#ifndef EIGEN_VECTORIZE_AVX512FP16 - template <> EIGEN_STRONG_INLINE Packet16f pcast(const Packet16h& a) { return half2float(a); @@ -261,8 +257,6 @@ EIGEN_STRONG_INLINE Packet16h pcast(const Packet16f& a) { return float2half(a); } -#endif - template <> EIGEN_STRONG_INLINE Packet16f pcast(const Packet16bf& a) { return Bf16ToF32(a);