1 import FWCore.ParameterSet.Config
as cms
3 siPixelRecHits = cms.EDProducer(
"SiPixelRecHitConverter",
4 src = cms.InputTag(
"siPixelClusters"),
5 CPE = cms.string(
'PixelCPEGeneric'),
6 VerboseLevel = cms.untracked.int32(0)
9 _siPixelRecHitsPreSplitting = siPixelRecHits.clone(
10 src =
'siPixelClustersPreSplitting'
13 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
15 cpu = _siPixelRecHitsPreSplitting.clone()
20 from Configuration.ProcessModifiers.gpu_cff
import gpu
21 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitCUDA_cfi
import siPixelRecHitCUDA
as _siPixelRecHitCUDA
22 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitFromCUDA_cfi
import siPixelRecHitFromCUDA
as _siPixelRecHitFromCUDA
24 gpu.toModify(siPixelRecHitsPreSplitting,
25 cuda = _siPixelRecHitFromCUDA.clone()
29 siPixelRecHitsPreSplittingTask = cms.Task(siPixelRecHitsPreSplitting)
31 siPixelRecHitsPreSplittingCUDA = _siPixelRecHitCUDA.clone(
32 beamSpot =
"offlineBeamSpotToCUDA"
35 siPixelRecHitsPreSplittingLegacy = _siPixelRecHitFromCUDA.clone()
36 siPixelRecHitsPreSplittingTaskCUDA = cms.Task(
37 siPixelRecHitsPreSplittingCUDA,
38 siPixelRecHitsPreSplittingLegacy,
41 from Configuration.ProcessModifiers.gpu_cff
import gpu
42 _siPixelRecHitsPreSplittingTask_gpu = siPixelRecHitsPreSplittingTask.copy()
43 _siPixelRecHitsPreSplittingTask_gpu.add(siPixelRecHitsPreSplittingTaskCUDA)
44 gpu.toReplaceWith(siPixelRecHitsPreSplittingTask, _siPixelRecHitsPreSplittingTask_gpu)