1 import FWCore.ParameterSet.Config
as cms
4 from RecoVertex.BeamSpotProducer.offlineBeamSpotToCUDA_cfi
import offlineBeamSpotToCUDA
5 from RecoVertex.BeamSpotProducer.beamSpotDeviceProducer_cfi
import beamSpotDeviceProducer
as _beamSpotDeviceProducer
7 offlineBeamSpotTask = cms.Task(offlineBeamSpot)
10 _offlineBeamSpotTask_gpu = offlineBeamSpotTask.copy()
11 _offlineBeamSpotTask_gpu.add(offlineBeamSpotToCUDA)
12 gpu.toReplaceWith(offlineBeamSpotTask, _offlineBeamSpotTask_gpu)
15 _offlineBeamSpotTask_alpaka = offlineBeamSpotTask.copy()
16 offlineBeamSpotDevice = _beamSpotDeviceProducer.clone(src = cms.InputTag(
'offlineBeamSpot'))
17 _offlineBeamSpotTask_alpaka.add(offlineBeamSpotDevice)
18 alpaka.toReplaceWith(offlineBeamSpotTask, _offlineBeamSpotTask_alpaka)