From 0f45292bb14babd384f29c273ee5a76c2238b07a Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 25 Aug 2021 08:18:41 +0200 Subject: [PATCH] Temporarily disable MMA on ppc64le --- eigen3.spec | 8 +++++++- eigen_mma.patch | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 eigen_mma.patch diff --git a/eigen3.spec b/eigen3.spec index 3061ceb..a7b98f3 100644 --- a/eigen3.spec +++ b/eigen3.spec @@ -27,6 +27,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 BuildRequires: %{blaslib}-devel BuildRequires: fftw-devel @@ -73,7 +76,10 @@ Developer documentation for Eigen. %prep -%autosetup -p1 -n eigen-%{version} +%setup -q -n eigen-%{version} +%ifarch ppc64le +%patch0 -p1 +%endif %build diff --git a/eigen_mma.patch b/eigen_mma.patch new file mode 100644 index 0000000..9b1932d --- /dev/null +++ b/eigen_mma.patch @@ -0,0 +1,14 @@ +diff -rupN 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 2021-08-22 17:37:23.626427133 +0200 +@@ -28,6 +28,9 @@ + #endif + #endif + ++#define EIGEN_ALTIVEC_DISABLE_MMA ++ ++ + #ifdef __has_builtin + #if __has_builtin(__builtin_mma_assemble_acc) + #define ALTIVEC_MMA_SUPPORT +diff -rupN eigen-3.4.0/Eigen/src/Core/util/Macros.h eigen-3.4.0-new/Eigen/src/Core/util/Macros.h