-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numberOfThreads does not check for type #32070
Comments
A new Issue was created by @b-fontana . @Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign core |
New categories assigned: core @Dr15Jones,@smuzaffar,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks |
I can reproduce in 11_2_0_pre8 (it's a bit strange though). Note that already for some time now the process = cms.Process("TEST")
process.options.numberOfThreads = 8
process.options.numberOfStreams = 8 |
Ok, what happens is the following. The cmssw/FWCore/Framework/src/EventProcessor.cc Lines 345 to 348 in fc0a40f
The cmssw/FWCore/Framework/bin/cmsRun.cpp Lines 284 to 288 in fc0a40f
but before that the process.options.numberOfThreads is accessed herecmssw/FWCore/Framework/bin/cmsRun.cpp Line 250 in fc0a40f
cmssw/FWCore/ParameterSet/src/ThreadsInfo.cc Lines 17 to 19 in fc0a40f
and then set in the PSet according to the actual value used for the TBB thread pool here cmssw/FWCore/Framework/bin/cmsRun.cpp Lines 267 to 268 in fc0a40f
Therefore, if the type of @Dr15Jones Could we simply change the cmssw/FWCore/ParameterSet/src/ThreadsInfo.cc Lines 17 to 21 in fc0a40f
(or do we even need them at all given that cms.Process pre-defines the process.options ) ?
|
We got bitten again by this problem (more details in the description of #41347) |
To answer my own question, I'd say "yes" because we can't really prevent |
#41349 attempts to fix along the lines described in #32070 (comment) |
In a
python
configuration file, the maximum number of CPU threads to be considered by CMSSW when running a series of modules is specified as follows:If the user, by mistake specifies the following:
it is prompted with a reasonably looking error:
Exception Message: Parameter "numberOfStreams" should be defined as an untracked uint32.
However, an equivalent message is not displayed when the mistake happens with
numberOfThreads
; in that case, the CMSSW modules are run with one thread/stream only (whennumberOfStreams
is not specified, it is equal tonumberOfThreads
).The text was updated successfully, but these errors were encountered: