Skip to content

Commit

Permalink
Performance fix for ensemble classifier inference
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsandruss committed Aug 22, 2024
1 parent fb0d002 commit 5532973
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,9 @@ Status PredictClassificationTask<algorithmFPType, cpu>::predictAllPointsByAllTre
ReadRows<algorithmFPType, cpu> xBD(const_cast<NumericTable *>(_data), 0, nRowsOfRes);
DAAL_CHECK_BLOCK_STATUS(xBD);
const algorithmFPType * const aX = xBD.get();
if (numberOfTrees > _minTreesForThreading)
// TODO: investigate why higher level parallelism for trees causes performance degradation
// (excessive memory and CPU resources usage), especially on systems with high number of cores
if (false)
{
daal::static_tls<algorithmFPType *> tlsData([=]() { return service_scalable_calloc<algorithmFPType, cpu>(_nClasses * nRowsOfRes); });

Expand Down

0 comments on commit 5532973

Please sign in to comment.