Line 0
Link Here
|
|
|
1 |
--- Eigen/src/Core/products/Parallelizer.h.orig 2020-10-05 11:24:15 UTC |
2 |
+++ Eigen/src/Core/products/Parallelizer.h |
3 |
@@ -132,8 +132,7 @@ void parallelize_gemm(const Functor& func, Index rows, |
4 |
|
5 |
ei_declare_aligned_stack_constructed_variable(GemmParallelInfo<Index>,info,threads,0); |
6 |
|
7 |
- int errorCount = 0; |
8 |
- #pragma omp parallel num_threads(threads) reduction(+: errorCount) |
9 |
+ #pragma omp parallel num_threads(threads) |
10 |
{ |
11 |
Index i = omp_get_thread_num(); |
12 |
// Note that the actual number of threads might be lower than the number of request ones. |
13 |
@@ -152,14 +151,11 @@ void parallelize_gemm(const Functor& func, Index rows, |
14 |
info[i].lhs_start = r0; |
15 |
info[i].lhs_length = actualBlockRows; |
16 |
|
17 |
- EIGEN_TRY { |
18 |
- if(transpose) func(c0, actualBlockCols, 0, rows, info); |
19 |
- else func(0, rows, c0, actualBlockCols, info); |
20 |
- } EIGEN_CATCH(...) { |
21 |
- ++errorCount; |
22 |
- } |
23 |
+ if(transpose) |
24 |
+ func(c0, actualBlockCols, 0, rows, info); |
25 |
+ else |
26 |
+ func(0, rows, c0, actualBlockCols, info); |
27 |
} |
28 |
- if (errorCount) EIGEN_THROW_X(Eigen::eigen_assert_exception()); |
29 |
#endif |
30 |
} |
31 |
|