Skip to content

Commit

Permalink
Perf. fix for decision forest classifier inference
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsandruss committed Aug 29, 2024
1 parent ac5ea85 commit f2b9927
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 f2b9927

Please sign in to comment.