diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-04-25 23:36:22 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-04-25 23:36:22 +0200 |
commit | e7ef26fa44999b054cbf36fb909f9737a111c4fb (patch) | |
tree | ff14531eb4325215a16803be14699af6f89d2297 | |
parent | 450d0c3de044c9f32fa2f37fee821f6e390df382 (diff) |
TRMM: Make sure we have enough memory in rhs block to enforce alignment.
-rw-r--r-- | Eigen/src/Core/products/TriangularMatrixMatrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/TriangularMatrixMatrix.h b/Eigen/src/Core/products/TriangularMatrixMatrix.h index 8088aa691..db7b27f8e 100644 --- a/Eigen/src/Core/products/TriangularMatrixMatrix.h +++ b/Eigen/src/Core/products/TriangularMatrixMatrix.h @@ -263,7 +263,7 @@ EIGEN_DONT_INLINE void product_triangular_matrix_matrix<Scalar,Index,Mode,false, Index mc = (std::min)(rows,blocking.mc()); // cache block size along the M direction std::size_t sizeA = kc*mc; - std::size_t sizeB = kc*cols; + std::size_t sizeB = kc*cols+EIGEN_ALIGN_BYTES/sizeof(Scalar); ei_declare_aligned_stack_constructed_variable(Scalar, blockA, sizeA, blocking.blockA()); ei_declare_aligned_stack_constructed_variable(Scalar, blockB, sizeB, blocking.blockB()); |