mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Smarter block size computation
This commit is contained in:
parent
1388f4f9fd
commit
94684721bd
@ -106,7 +106,11 @@ void computeProductBlockingSizes(SizeType& k, SizeType& m, SizeType& n)
|
|||||||
// In unit tests we do not want to use extra large matrices,
|
// In unit tests we do not want to use extra large matrices,
|
||||||
// so we reduce the block size to check the blocking strategy is not flawed
|
// so we reduce the block size to check the blocking strategy is not flawed
|
||||||
#ifndef EIGEN_DEBUG_SMALL_PRODUCT_BLOCKS
|
#ifndef EIGEN_DEBUG_SMALL_PRODUCT_BLOCKS
|
||||||
k = std::min<SizeType>(k,240);
|
// k = std::min<SizeType>(k,240);
|
||||||
|
// n = std::min<SizeType>(n,3840/sizeof(RhsScalar));
|
||||||
|
// m = std::min<SizeType>(m,3840/sizeof(RhsScalar));
|
||||||
|
|
||||||
|
k = std::min<SizeType>(k,sizeof(LhsScalar)<=4 ? 360 : 240);
|
||||||
n = std::min<SizeType>(n,3840/sizeof(RhsScalar));
|
n = std::min<SizeType>(n,3840/sizeof(RhsScalar));
|
||||||
m = std::min<SizeType>(m,3840/sizeof(RhsScalar));
|
m = std::min<SizeType>(m,3840/sizeof(RhsScalar));
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user