diff options
author | 2016-01-26 23:30:24 +0100 | |
---|---|---|
committer | 2016-01-26 23:30:24 +0100 | |
commit | 5b0a9ee0032bbdbf6c8f26e788e9b992c9532432 (patch) | |
tree | 57caeb8e168f17820058907984e5b5bc12cf71d6 | |
parent | 639b1d864a3d8e3cd5f2f060af9e1a5fdae27008 (diff) |
Make sure that block sizes are smaller than input matrix sizes.
-rw-r--r-- | Eigen/src/Core/products/GeneralBlockPanelKernel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/GeneralBlockPanelKernel.h b/Eigen/src/Core/products/GeneralBlockPanelKernel.h index 229e96ceb..d2e6f26c8 100644 --- a/Eigen/src/Core/products/GeneralBlockPanelKernel.h +++ b/Eigen/src/Core/products/GeneralBlockPanelKernel.h @@ -252,7 +252,7 @@ void evaluateProductBlockingSizesHeuristic(Index& k, Index& m, Index& n, Index n // we have both L2 and L3, and problem is small enough to be kept in L2 // Let's choose m such that lhs's block fit in 1/3 of L2 actual_lm = l2; - max_mc = 576; + max_mc = (std::min<Index>)(576,max_mc); } Index mc = (std::min<Index>)(actual_lm/(3*k*sizeof(LhsScalar)), max_mc); if (mc > Traits::mr) mc -= mc % Traits::mr; |