Skip to content

Commit

Permalink
Merge pull request #1855 from Dr15Jones/excludeModulesWhichDependOnTk…
Browse files Browse the repository at this point in the history
…DetMapFromThreadedRunning

Multithreading customise -- Exclude mouldes which depend on TkDetMap from threaded running
  • Loading branch information
ktf committed Dec 18, 2013
2 parents f50bb9e + 804061f commit c32f786
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions FWCore/Concurrency/python/dropNonMTSafe.py
@@ -1,10 +1,23 @@
import FWCore.ParameterSet.Config as cms

def _dropFromPaths(process,name):
if hasattr(process,name):
m = getattr(process,name)
for p in process.paths.itervalues():
p.remove(m)
delattr(process,name)

def dropNonMTSafe(process):
if hasattr(process, "DTDataIntegrityTask"): del process.DTDataIntegrityTask
if hasattr(process, "FastTimerService"): del process.FastTimerService
if hasattr(process, "SiStripDetInfoFileReader"): del process.SiStripDetInfoFileReader
if hasattr(process, "TkDetMap"): del process.TkDetMap
#drop items dependent on TkDetMap
_dropFromPaths(process,"siStripFEDMonitor")
_dropFromPaths(process,"SiStripMonitorDigi")
_dropFromPaths(process,"SiStripMonitorCluster")
_dropFromPaths(process,"SiStripMonitorTrack_ckf")

process.options = cms.untracked.PSet(numberOfThreads = cms.untracked.uint32(8),
numberOfStreams = cms.untracked.uint32(0))
return process

0 comments on commit c32f786

Please sign in to comment.