Skip to content

Commit

Permalink
Change printout when cores!=threads (#4663)
Browse files Browse the repository at this point in the history
  • Loading branch information
emaszs authored Jan 20, 2017
1 parent f448203 commit b1eb0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CRABClient/JobType/CMSSWConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def validateConfig(self):
#Assumes a default of 1 if the parameter is not specified
cfgNumCores = getattr(self.config.JobType, 'numCores', None)
numPSetCores = getattr(getattr(self.fullConfig.process, 'options', object), 'numberOfThreads', None)
if cfgNumCores != numPSetCores:
if (cfgNumCores or 1) != (numPSetCores or 1):
if cfgNumCores == None:
msg = "You did not set config.JobType.numCores in the crab configuration file "
else:
Expand Down

0 comments on commit b1eb0ee

Please sign in to comment.