From 5532973116b83f763a480c2caca49d63f0c731d0 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Thu, 22 Aug 2024 08:24:47 -0700 Subject: [PATCH] Performance fix for ensemble classifier inference --- .../df_classification_predict_dense_default_batch_impl.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/daal/src/algorithms/dtrees/forest/classification/df_classification_predict_dense_default_batch_impl.i b/cpp/daal/src/algorithms/dtrees/forest/classification/df_classification_predict_dense_default_batch_impl.i index a6e343efa91..c26f48557f6 100644 --- a/cpp/daal/src/algorithms/dtrees/forest/classification/df_classification_predict_dense_default_batch_impl.i +++ b/cpp/daal/src/algorithms/dtrees/forest/classification/df_classification_predict_dense_default_batch_impl.i @@ -1045,7 +1045,9 @@ Status PredictClassificationTask::predictAllPointsByAllTre ReadRows xBD(const_cast(_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 tlsData([=]() { return service_scalable_calloc(_nClasses * nRowsOfRes); });