File indexing completed on 2024-04-06 12:12:30
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("NOCONCURRENT")
0004
0005 process.source = cms.Source("EmptySource")
0006
0007 process.options = dict(
0008 numberOfStreams = 4,
0009 numberOfThreads = 4,
0010 numberOfConcurrentLuminosityBlocks = 1
0011 )
0012
0013 process.maxEvents.input = 20
0014
0015 process.i1 = cms.EDProducer("BusyWaitIntOneSharedProducer", ivalue = cms.int32(1),
0016 iterations = cms.uint32(300*1000),
0017 resourceNames = cms.untracked.vstring("foo"))
0018 process.i2 = cms.EDProducer("BusyWaitIntOneSharedProducer", ivalue = cms.int32(2),
0019 iterations = cms.uint32(300*1000),
0020 resourceNames = cms.untracked.vstring("foo"))
0021 process.c1 = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer",
0022 valueMustMatch = cms.untracked.int32(1),
0023 moduleLabel = cms.untracked.InputTag("i1"),
0024 resourceName = cms.untracked.string("foo"))
0025
0026 process.c2 = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer",
0027 valueMustMatch = cms.untracked.int32(2),
0028 moduleLabel = cms.untracked.InputTag("i2"),
0029 resourceName = cms.untracked.string("foo"))
0030
0031 process.t = cms.Task(process.i1, process.i2)
0032
0033 process.p = cms.Path(process.c1+process.c2, process.t)
0034
0035 process.add_(cms.Service("ConcurrentModuleTimer",
0036 modulesToExclude = cms.untracked.vstring("TriggerResults", "p"),
0037 excludeSource = cms.untracked.bool(True)))