Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-06 02:53:58

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("BusyWaitIntLegacyProducer", ivalue = cms.int32(1),
0016   iterations = cms.uint32(300*1000))
0017 process.i2 = cms.EDProducer("BusyWaitIntLegacyProducer", ivalue = cms.int32(2),
0018   iterations = cms.uint32(300*1000))
0019 
0020 process.c1 = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer",
0021                             valueMustMatch = cms.untracked.int32(1),
0022                             moduleLabel = cms.untracked.InputTag("i1"),
0023                             resourceName = cms.untracked.string("foo"))
0024                             
0025 process.c2 = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer",
0026                             valueMustMatch = cms.untracked.int32(2),
0027                             moduleLabel = cms.untracked.InputTag("i2"),
0028                             resourceName = cms.untracked.string("foo"))
0029 
0030 process.t = cms.Task(process.i1, process.i2)
0031 
0032 process.p = cms.Path(process.c1+process.c2, process.t)
0033 
0034 process.add_(cms.Service("ConcurrentModuleTimer",
0035                          modulesToExclude = cms.untracked.vstring("TriggerResults", "p"),
0036                          excludeSource = cms.untracked.bool(True)))