eigen3/eigen3-fix-forward_adolc-unit-test.patch
Matthias Mailänder 6abcd6dc23 Accepting request 856739 from home:badshah400:branches:science
* Update to version 3.3.9.
* Drop Remove-error-counting-in-OpenMP-parallelize_gemm.patch: incorporated upstream.
* Add patches to fix building and running tests.
* Setup but don't run tests due to random errors in test-suite itself.
* Pass CMAKE_SKIP_RPATH:BOOL=OFF and CMAKE_SKIP_INSTALL_RPATH:BOOL=ON to cmake to fix rpath handling in Leap 15.2's cmake macros (doesn't hurt generally).
* Change CMAKE_BUILD_TYPE from Release to RelWithDebInfo (openSUSE default).

OBS-URL: https://build.opensuse.org/request/show/856739
OBS-URL: https://build.opensuse.org/package/show/science/eigen3?expand=0&rev=37
2020-12-20 11:57:24 +00:00

19 lines
621 B
Diff

Index: eigen-3.3.8/unsupported/test/forward_adolc.cpp
===================================================================
--- eigen-3.3.8.orig/unsupported/test/forward_adolc.cpp
+++ eigen-3.3.8/unsupported/test/forward_adolc.cpp
@@ -7,12 +7,12 @@
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#include "main.h"
#include <Eigen/Dense>
#define NUMBER_DIRECTIONS 16
#include <unsupported/Eigen/AdolcForward>
+#include "main.h"
template<typename Vector>
EIGEN_DONT_INLINE typename Vector::Scalar foo(const Vector& p)
{