Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:08

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 
0004 mem_limit = 1.0 if not 'UBSAN' in os.getenv('CMSSW_VERSION', '') else 1.5
0005 
0006 process = cms.Process("TEST")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.add_(cms.Service("ResourceEnforcer",
0011                          maxVSize = cms.untracked.double(mem_limit),
0012                          maxRSS = cms.untracked.double(mem_limit),
0013                          maxTime = cms.untracked.double(1.0)))
0014 
0015 process.thing = cms.EDProducer("ThingProducer")
0016 
0017 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
0018 
0019 process.p = cms.Path(process.thing)
0020