Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:23

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("LIMITEDCONCURRENT")
0004 
0005 process.source = cms.Source("EmptySource")
0006 
0007 process.options = cms.untracked.PSet(
0008                             numberOfStreams = cms.untracked.uint32(6),
0009                             numberOfThreads = cms.untracked.uint32(6)
0010 )
0011 
0012 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(20))
0013 
0014 process.i1 = cms.EDProducer("BusyWaitIntLimitedProducer", ivalue = cms.int32(1),
0015                             iterations = cms.uint32(300*1000),
0016                             concurrencyLimit = cms.untracked.uint32(2))
0017 
0018 
0019 process.c1 = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer",
0020                             valueMustMatch = cms.untracked.int32(1),
0021                             moduleLabel = cms.untracked.InputTag("i1"),
0022                             resourceName = cms.untracked.string("foo"))
0023                             
0024 
0025 process.t = cms.Task(process.i1)
0026 
0027 process.p = cms.Path(process.c1, process.t)
0028 
0029 process.add_(cms.Service("ConcurrentModuleTimer",
0030                          modulesToExclude = cms.untracked.vstring("TriggerResults","p"),
0031                          excludeSource = cms.untracked.bool(True)))