Add eigen_assert_exception.patch

This commit is contained in:
Sandro Mani 2020-10-05 16:45:04 +02:00
parent ec5972bb6f
commit 17cd8b6b21
2 changed files with 19 additions and 1 deletions

View File

@ -12,13 +12,16 @@
Name: eigen3
Version: 3.3.8
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A lightweight C++ template library for vector and matrix math
License: MPLv2.0 and LGPLv2+ and BSD
URL: http://eigen.tuxfamily.org/index.php?title=Main_Page
Source0: https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2
# Drop reference to undefined Eigen::eigen_assert_exception (FIXME??)
Patch0: eigen_assert_exception.patch
BuildRequires: %{blaslib}-devel
BuildRequires: fftw-devel
BuildRequires: glew-devel
@ -106,6 +109,9 @@ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox
%changelog
* Mon Oct 05 2020 Sandro Mani <manisandro@gmail.com> - 3.3.8-2
- Drop reference to undefined Eigen::eigen_assert_exception
* Mon Oct 05 2020 Sandro Mani <manisandro@gmail.com> - 3.3.8-1
- Update to 3.3.8

View File

@ -0,0 +1,12 @@
diff -rupN eigen-3.3.8/Eigen/src/Core/products/Parallelizer.h eigen-3.3.8-new/Eigen/src/Core/products/Parallelizer.h
--- eigen-3.3.8/Eigen/src/Core/products/Parallelizer.h 2020-10-05 13:24:15.000000000 +0200
+++ eigen-3.3.8-new/Eigen/src/Core/products/Parallelizer.h 2020-10-05 16:34:48.959757073 +0200
@@ -159,7 +159,7 @@ void parallelize_gemm(const Functor& fun
++errorCount;
}
}
- if (errorCount) EIGEN_THROW_X(Eigen::eigen_assert_exception());
+// if (errorCount) EIGEN_THROW_X(Eigen::eigen_assert_exception());
#endif
}