CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
ProcessAcceleratorCUDA.ProcessAcceleratorCUDA Class Reference
Inheritance diagram for ProcessAcceleratorCUDA.ProcessAcceleratorCUDA:

Public Member Functions

def __init__
 
def apply
 
def enabledLabels
 
def labels
 

Private Attributes

 _label
 

Detailed Description

Definition at line 5 of file ProcessAcceleratorCUDA.py.

Constructor & Destructor Documentation

def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.__init__ (   self)

Definition at line 6 of file ProcessAcceleratorCUDA.py.

6 
7  def __init__(self):
8  super(ProcessAcceleratorCUDA,self).__init__()
self._label = "gpu-nvidia"

Member Function Documentation

def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.apply (   self,
  process,
  accelerators 
)

Definition at line 17 of file ProcessAcceleratorCUDA.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA._label, MagneticFieldMapESProducer._label, and LHECOMWeightProducer._label.

Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), heavyIonTools.SelectionDefaults.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), and jetTools.SetTagInfos.__call__().

17 
18  def apply(self, process, accelerators):
19  if not hasattr(process, "CUDAService"):
20  from HeterogeneousCore.CUDAServices.CUDAService_cfi import CUDAService
21  process.add_(CUDAService)
22 
23  if not hasattr(process.MessageLogger, "CUDAService"):
24  process.MessageLogger.CUDAService = cms.untracked.PSet()
25 
26  if self._label in accelerators:
27  process.CUDAService.enabled = True
28  else:
29  process.CUDAService.enabled = False
30 
31 cms.specialImportRegistry.registerSpecialImportForType(ProcessAcceleratorCUDA, "from HeterogeneousCore.CUDACore.ProcessAcceleratorCUDA import ProcessAcceleratorCUDA")
def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.enabledLabels (   self)

Definition at line 11 of file ProcessAcceleratorCUDA.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.labels(), CollectionCombiner< Collection >.labels, confdb.HLTProcess.labels, trigger::HLTPrescaleTable.labels(), ecaldqm::binning::AxisSpecs.labels, Config.ProcessAccelerator.labels(), Config.ProcessAcceleratorTest.labels(), Config.ProcessAcceleratorTest2.labels(), and svgfig.Ticks.labels.

11 
12  def enabledLabels(self):
13  enabled = (os.system("cudaIsEnabled") == 0)
14  if enabled:
15  return self.labels()
16  else:
return []
def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.labels (   self)

Definition at line 9 of file ProcessAcceleratorCUDA.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA._label, MagneticFieldMapESProducer._label, and LHECOMWeightProducer._label.

Referenced by ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.enabledLabels().

9 
10  def labels(self):
return [self._label]

Member Data Documentation

ProcessAcceleratorCUDA.ProcessAcceleratorCUDA._label
private

Definition at line 8 of file ProcessAcceleratorCUDA.py.

Referenced by ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), validation.SimpleSample.digest(), ConfigToolBase.ConfigToolBase.dumpPython(), validation.SimpleSample.label(), ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.labels(), cmsswVersionTools.PickRelValInputFiles.messageEmptyList(), trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), and trigTools.SwitchOnTriggerMatchEmbedding.toolCode().