Skip to content

Commit

Permalink
Always set the thread stack size when initialising TBB (cms-sw#104)
Browse files Browse the repository at this point in the history
Set the thread stack size even if the number of threads is not specified on the command line nor in the process.options ParameterSet.
  • Loading branch information
fwyzard committed Jul 26, 2018
1 parent f484029 commit 64e6201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/Framework/bin/cmsRun.cpp
Expand Up @@ -134,7 +134,7 @@ int main(int argc, char* argv[]) {
//NOTE: with new version of TBB (44_20160316oss) we can only construct 1 tbb::task_scheduler_init per job
// else we get a crash. So for now we can't have any services use tasks in their constructors.
bool setNThreadsOnCommandLine = false;
std::unique_ptr<tbb::task_scheduler_init> tsiPtr = std::make_unique<tbb::task_scheduler_init>(edm::s_defaultNumberOfThreads);
std::unique_ptr<tbb::task_scheduler_init> tsiPtr = std::make_unique<tbb::task_scheduler_init>(edm::s_defaultNumberOfThreads, kDefaultSizeOfStackForThreadsInKB * 1024);
std::shared_ptr<edm::Presence> theMessageServicePresence;
std::unique_ptr<std::ofstream> jobReportStreamPtr;
std::shared_ptr<edm::serviceregistry::ServiceWrapper<edm::JobReport> > jobRep;
Expand Down

0 comments on commit 64e6201

Please sign in to comment.