Drop eigen_mma.patch

This commit is contained in:
Sandro Mani 2022-07-21 14:42:40 +02:00
parent f87a1499eb
commit f987eeefd7
2 changed files with 4 additions and 18 deletions

View File

@ -15,15 +15,12 @@
Name: eigen3
Version: 3.4.0
Release: 7%{?dist}
Release: 8%{?dist}
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
@ -162,6 +159,9 @@ MINGW64_CMAKE_ARGS="-DINCLUDE_INSTALL_DIR=%{mingw64_includedir}/%{name} -DCMAKEP
%changelog
* Thu Jul 21 2022 Sandro Mani <manisandro@gmail.com> - 3.4.0-8
- Drop eigen_mma.patch
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1,14 +0,0 @@
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