From f2b992742d9075aaec0f7908f3015266bdbcedc2 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Mon, 26 Aug 2024 22:30:02 +0100 Subject: [PATCH] Perf. fix for decision forest 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); });