Skip to content

Commit

Permalink
TRMM: Make sure we have enough memory in rhs block to enforce alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggael committed Apr 25, 2014
1 parent 4619779 commit e4ba52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Eigen/src/Core/products/TriangularMatrixMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e4ba52a

Please sign in to comment.