Re-add eigen_mma.patch

This commit is contained in:
Sandro Mani 2022-02-24 16:16:28 +01:00
parent f8ecc0f1c9
commit 4063a5f9bd
2 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,9 @@ Summary: A lightweight C++ template library for vector and matrix math
License: MPLv2.0 and LGPLv2+ and BSD and Minpack
URL: http://eigen.tuxfamily.org/index.php?title=Main_Page
Source0: https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2
# https://bugzilla.redhat.com/show_bug.cgi?id=1996330
# Temporarily disable EIGEN_ALTIVEC_DISABLE_MMA on PPC64le
Patch0: eigen_mma.patch
# For mingw, read the comment in the file for details
Source1: mingw_TryRunResults.cmake

14
eigen_mma.patch Normal file
View File

@ -0,0 +1,14 @@
diff -rupN --no-dereference eigen-3.4.0/Eigen/src/Core/arch/AltiVec/MatrixProduct.h eigen-3.4.0-new/Eigen/src/Core/arch/AltiVec/MatrixProduct.h
--- eigen-3.4.0/Eigen/src/Core/arch/AltiVec/MatrixProduct.h 2021-08-18 22:41:58.000000000 +0200
+++ eigen-3.4.0-new/Eigen/src/Core/arch/AltiVec/MatrixProduct.h 2022-02-24 16:16:04.325119524 +0100
@@ -28,6 +28,10 @@
#endif
#endif
+#ifdef __PPC64__
+#define EIGEN_ALTIVEC_DISABLE_MMA
+#endif
+
#ifdef __has_builtin
#if __has_builtin(__builtin_mma_assemble_acc)
#define ALTIVEC_MMA_SUPPORT