From 692b30ca95397cbb42c53c813cf5dd4b7f0acc8d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 14 Oct 2016 17:16:28 +0200 Subject: [PATCH] Fix previous merge. --- Eigen/src/Core/products/Parallelizer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h index 1dee8d7142..2a31e4cbe5 100644 --- a/Eigen/src/Core/products/Parallelizer.h +++ b/Eigen/src/Core/products/Parallelizer.h @@ -111,7 +111,7 @@ void parallelize_gemm(const Functor& func, Index rows, Index cols, Index depth, double work = static_cast(rows) * static_cast(cols) * static_cast(depth); double kMinTaskSize = 50000; // Heuristic. - max_threads = std::max(1, std::min(max_threads, work / kMinTaskSize)); + pb_max_threads = std::max(1, std::min(pb_max_threads, work / kMinTaskSize)); // compute the number of threads we are going to use Index threads = std::min(nbThreads(), pb_max_threads);