File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
diff --git a/Eigen/src/SVD/BDCSVD.h b/Eigen/src/SVD/BDCSVD.h
2
- index 6b85d1d5a..81aa7fbf5 100644
2
+ index 6b85d1d5a..f7d023c7a 100644
3
3
--- a/Eigen/src/SVD/BDCSVD.h
4
4
+++ b/Eigen/src/SVD/BDCSVD.h
5
5
@@ -30,6 +30,10 @@
@@ -8,7 +8,7 @@ index 6b85d1d5a..81aa7fbf5 100644
8
8
9
9
+ #include <tbb/parallel_reduce.h>
10
10
+
11
- + tbb::affinity_partitioner ap;
11
+ + static tbb::affinity_partitioner ap;
12
12
+
13
13
#ifdef EIGEN_BDCSVD_DEBUG_VERBOSE
14
14
#include <iostream>
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ inline mpreal MP_PI_HALF{MP_PI / 2};
28
28
29
29
extern Config config;
30
30
31
- extern tbb::affinity_partitioner ap;
32
-
33
31
class Evaluation {
34
32
const mpreal ONE = mpreal(1 , config.precision_bits);
35
33
const mpreal TWO = mpreal(2 , config.precision_bits);
@@ -68,6 +66,8 @@ class Evaluation {
68
66
};
69
67
70
68
class LegendrePolynomial {
69
+ static tbb::affinity_partitioner ap;
70
+
71
71
const mpreal ONE = mpreal(1 , config.precision_bits);
72
72
const mpreal TWO = mpreal(2 , config.precision_bits);
73
73
@@ -105,6 +105,8 @@ class LegendrePolynomial {
105
105
[[nodiscard]] mpreal weight (const int i) const { return this ->_w [i]; }
106
106
};
107
107
108
+ tbb::affinity_partitioner LegendrePolynomial::ap{};
109
+
108
110
class Quadrature {
109
111
LegendrePolynomial poly;
110
112
You can’t perform that action at this time.
0 commit comments