We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1234e95 + 23a0326 commit a50a5d7Copy full SHA for a50a5d7
RecoEgamma/PhotonIdentification/src/PhotonXGBoostEstimator.cc
@@ -3,6 +3,9 @@
3
4
PhotonXGBoostEstimator::PhotonXGBoostEstimator(const edm::FileInPath& weightsFile, int best_ntree_limit) {
5
XGBoosterCreate(NULL, 0, &booster_);
6
+ // Set number of threads to 1, to avoid spawning hundreds of OpenMP threads
7
+ // See https://github.com/cms-sw/cmssw/issues/44923 for details
8
+ XGBoosterSetParam(booster_, "nthread", "1");
9
XGBoosterLoadModel(booster_, weightsFile.fullPath().c_str());
10
best_ntree_limit_ = best_ntree_limit;
11
0 commit comments