From 4063a5f9bd18334769b5b1883e8a3a9f188b8459 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 24 Feb 2022 16:16:28 +0100 Subject: [PATCH] Re-add eigen_mma.patch --- eigen3.spec | 3 +++ eigen_mma.patch | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 eigen_mma.patch diff --git a/eigen3.spec b/eigen3.spec index 139fe79..71a42ef 100644 --- a/eigen3.spec +++ b/eigen3.spec @@ -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 diff --git a/eigen_mma.patch b/eigen_mma.patch new file mode 100644 index 0000000..cb3b2cb --- /dev/null +++ b/eigen_mma.patch @@ -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