CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ProcessAcceleratorCUDA.ProcessAcceleratorCUDA Class Reference
Inheritance diagram for ProcessAcceleratorCUDA.ProcessAcceleratorCUDA:

Public Member Functions

def __init__ (self)
 
def apply (self, process, accelerators)
 
def enabledLabels (self)
 
def labels (self)
 

Private Attributes

 _label
 

Detailed Description

Definition at line 5 of file ProcessAcceleratorCUDA.py.

Constructor & Destructor Documentation

◆ __init__()

def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.__init__ (   self)

Definition at line 6 of file ProcessAcceleratorCUDA.py.

6  def __init__(self):
7  super(ProcessAcceleratorCUDA,self).__init__()
8  self._label = "gpu-nvidia"
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ apply()

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

Definition at line 17 of file ProcessAcceleratorCUDA.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA._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  def apply(self, process, accelerators):
18  if not hasattr(process, "CUDAService"):
19  from HeterogeneousCore.CUDAServices.CUDAService_cfi import CUDAService
20  process.add_(CUDAService)
21 
22  if not hasattr(process.MessageLogger, "CUDAService"):
23  process.MessageLogger.CUDAService = cms.untracked.PSet()
24 
25  if self._label in accelerators:
26  process.CUDAService.enabled = True
27  else:
28  process.CUDAService.enabled = False
29 
30 cms.specialImportRegistry.registerSpecialImportForType(ProcessAcceleratorCUDA, "from HeterogeneousCore.CUDACore.ProcessAcceleratorCUDA import ProcessAcceleratorCUDA")
31 
Vec apply(Vec v, F f)
Definition: ExtVec.h:81

◆ enabledLabels()

def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.enabledLabels (   self)

◆ labels()

def ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.labels (   self)

Member Data Documentation

◆ _label