File indexing completed on 2024-04-06 12:13:08
0001
0002
0003 import FWCore.ParameterSet.Config as cms
0004
0005
0006
0007 class ProcessAcceleratorTest(cms.ProcessAccelerator):
0008 def __init__(self):
0009 super(ProcessAcceleratorTest,self).__init__()
0010 self._labels = ["test1", "gpu-foo", "test2"]
0011 def labels(self):
0012 return self._labels
0013 def enabledLabels(self):
0014 return self._labels
0015
0016 process = cms.Process("PROD")
0017 process.add_(ProcessAcceleratorTest())
0018
0019 process.ResourceInformationService = cms.Service("ResourceInformationService",
0020 verbose = cms.untracked.bool(True)
0021 )
0022
0023 process.options.accelerators = ["*"]
0024
0025 process.maxEvents = cms.untracked.PSet(
0026 input = cms.untracked.int32(1)
0027 )
0028 process.source = cms.Source("EmptySource")
0029