Apply MMA patch unconditionally, and edit patch to only define MMA disable on
__PPC64__ (rhbz#2003362)
This commit is contained in:
parent
f4229122e4
commit
5242355a2d
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
Name: eigen3
|
Name: eigen3
|
||||||
Version: 3.4.0
|
Version: 3.4.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: A lightweight C++ template library for vector and matrix math
|
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
|
||||||
@ -77,9 +77,7 @@ Developer documentation for Eigen.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n eigen-%{version}
|
%setup -q -n eigen-%{version}
|
||||||
%ifarch ppc64le
|
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -120,6 +118,10 @@ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 12 2021 Rich Mattes <richmattes@gmail.com> - 3.4.0-3
|
||||||
|
- Apply MMA patch unconditionally, and edit patch to only define MMA disable on
|
||||||
|
__PPC64__ (rhbz#2003362)
|
||||||
|
|
||||||
* Wed Aug 25 2021 Sandro Mani <manisandro@gmail.com> - 3.4.0-2
|
* Wed Aug 25 2021 Sandro Mani <manisandro@gmail.com> - 3.4.0-2
|
||||||
- Temporarily disable EIGEN_ALTIVEC_DISABLE_MMA on PPC64le
|
- Temporarily disable EIGEN_ALTIVEC_DISABLE_MMA on PPC64le
|
||||||
|
|
||||||
|
@ -1,14 +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
|
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/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
|
+++ eigen-3.4.0-new/Eigen/src/Core/arch/AltiVec/MatrixProduct.h 2021-08-22 17:37:23.626427133 +0200
|
||||||
@@ -28,6 +28,9 @@
|
@@ -28,6 +28,10 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
+#ifdef __PPC64__
|
||||||
+#define EIGEN_ALTIVEC_DISABLE_MMA
|
+#define EIGEN_ALTIVEC_DISABLE_MMA
|
||||||
+
|
+#endif
|
||||||
+
|
+
|
||||||
#ifdef __has_builtin
|
#ifdef __has_builtin
|
||||||
#if __has_builtin(__builtin_mma_assemble_acc)
|
#if __has_builtin(__builtin_mma_assemble_acc)
|
||||||
#define ALTIVEC_MMA_SUPPORT
|
#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