mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-14 00:38:10 +08:00
Only use blocking sizes LUTs for single-thread products for now
This commit is contained in:
parent
0cbd5ae3cb
commit
73cdeae1d3
@ -79,6 +79,14 @@ template <typename LhsScalar,
|
|||||||
typename RhsScalar>
|
typename RhsScalar>
|
||||||
bool lookupBlockingSizesFromTable(Index& k, Index& m, Index& n, Index num_threads)
|
bool lookupBlockingSizesFromTable(Index& k, Index& m, Index& n, Index num_threads)
|
||||||
{
|
{
|
||||||
|
if (num_threads > 1) {
|
||||||
|
// We don't currently have lookup tables recorded for multithread performance,
|
||||||
|
// and we have confirmed experimentally that our single-thread-recorded LUTs are
|
||||||
|
// poor for multithread performance, and our LUTs don't currently contain
|
||||||
|
// any annotation about multithread status (FIXME - we need that).
|
||||||
|
// So for now, we just early-return here.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return LookupBlockingSizesFromTableImpl<LhsScalar, RhsScalar>::run(k, m, n, num_threads);
|
return LookupBlockingSizesFromTableImpl<LhsScalar, RhsScalar>::run(k, m, n, num_threads);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user