Temporarily disable MMA on ppc64le
This commit is contained in:
parent
0fff5afa78
commit
0f45292bb1
@ -27,6 +27,9 @@ Summary: A lightweight C++ template library for vector and matrix math
|
|||||||
License: MPLv2.0 and LGPLv2+ and BSD and Minpack
|
License: MPLv2.0 and LGPLv2+ and BSD and Minpack
|
||||||
URL: http://eigen.tuxfamily.org/index.php?title=Main_Page
|
URL: http://eigen.tuxfamily.org/index.php?title=Main_Page
|
||||||
Source0: https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2
|
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: %{blaslib}-devel
|
||||||
BuildRequires: fftw-devel
|
BuildRequires: fftw-devel
|
||||||
@ -73,7 +76,10 @@ Developer documentation for Eigen.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n eigen-%{version}
|
%setup -q -n eigen-%{version}
|
||||||
|
%ifarch ppc64le
|
||||||
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
14
eigen_mma.patch
Normal file
14
eigen_mma.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user