Skip to content

Commit

Permalink
Consolidate stream and thread printout
Browse files Browse the repository at this point in the history
Put the logging of the number of streams and threads used into the same log message.
  • Loading branch information
Dr15Jones committed May 18, 2017
1 parent 76a84fb commit e66019d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion FWCore/Framework/bin/cmsRun.cpp
Expand Up @@ -115,7 +115,6 @@ namespace {
iNThreads = tbb::task_scheduler_init::default_num_threads();
}
oPtr = std::make_unique<tbb::task_scheduler_init>(static_cast<int>(iNThreads),iStackSize);
edm::LogInfo("ThreadSetup") <<"setting # threads "<<iNThreads;

return iNThreads;
}
Expand Down
6 changes: 4 additions & 2 deletions FWCore/Framework/src/EventProcessor.cc
Expand Up @@ -449,9 +449,11 @@ namespace edm {
if(nStreams==0) {
nStreams = nThreads;
}
// PG: Log the number of streams
edm::LogInfo("StreamSetup") <<"setting # streams "<<nStreams;
}
if(nThreads >1) {
edm::LogInfo("ThreadStreamSetup") <<"setting # threads "<<nThreads<<"\nsetting # streams "<<nStreams;
}

/*
bool nRunsSet = false;
*/
Expand Down

0 comments on commit e66019d

Please sign in to comment.