1 import FWCore.ParameterSet.Config
as cms
3 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
9 pixelVerticesTask = cms.Task(
14 from Configuration.ProcessModifiers.pixelNtupletFit_cff
import pixelNtupletFit
15 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
18 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
21 from RecoVertex.PixelVertexFinding.pixelVertexProducerCUDAPhase1_cfi
import pixelVertexProducerCUDAPhase1
as _pixelVerticesCUDA
22 from RecoVertex.PixelVertexFinding.pixelVertexProducerCUDAPhase2_cfi
import pixelVertexProducerCUDAPhase2
as _pixelVerticesCUDAPhase2
23 from RecoVertex.PixelVertexFinding.pixelVertexProducerCUDAHIonPhase1_cfi
import pixelVertexProducerCUDAHIonPhase1
as _pixelVerticesCUDAHIonPhase1
26 cpu = _pixelVerticesCUDA.clone(
27 pixelTrackSrc =
"pixelTracksSoA",
32 phase2_tracker.toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAPhase2.clone(
33 pixelTrackSrc =
"pixelTracksSoA",
38 (pp_on_AA & ~phase2_tracker).toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAHIonPhase1.clone(
39 pixelTrackSrc =
"pixelTracksSoA",
45 from RecoVertex.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
47 (pixelNtupletFit).toReplaceWith(pixelVertices, _pixelVertexFromSoA.clone(
48 src =
"pixelVerticesSoA" 51 (pixelNtupletFit).toReplaceWith(pixelVerticesTask, cms.Task(
63 pixelVerticesCUDA = _pixelVerticesCUDA.clone(
64 pixelTrackSrc =
"pixelTracksCUDA",
68 phase2_tracker.toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAPhase2.clone(
69 pixelTrackSrc =
"pixelTracksCUDA",
74 (pp_on_AA & ~phase2_tracker).toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAHIonPhase1.clone(
75 pixelTrackSrc =
"pixelTracksCUDA",
81 from RecoVertex.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
82 gpu.toModify(pixelVerticesSoA,
83 cuda = _pixelVerticesSoA.clone(
84 src = cms.InputTag(
"pixelVerticesCUDA")
91 (pixelNtupletFit & gpu & gpuValidationPixel).toModify(pixelVerticesSoA.cpu,
92 pixelTrackSrc =
"pixelTracksSoA@cpu" 95 (pixelNtupletFit & gpu).toReplaceWith(pixelVerticesTask, cms.Task(
99 pixelVerticesTask.copy()
105 from RecoVertex.PixelVertexFinding.pixelVertexProducerAlpakaPhase1_cfi
import pixelVertexProducerAlpakaPhase1
as _pixelVerticesAlpakaPhase1
106 from RecoVertex.PixelVertexFinding.pixelVertexProducerAlpakaPhase2_cfi
import pixelVertexProducerAlpakaPhase2
as _pixelVerticesAlpakaPhase2
107 from RecoVertex.PixelVertexFinding.pixelVertexProducerAlpakaHIonPhase1_cfi
import pixelVertexProducerAlpakaHIonPhase1
as _pixelVerticesAlpakaHIonPhase1
108 pixelVerticesAlpaka = _pixelVerticesAlpakaPhase1.clone()
109 phase2_tracker.toReplaceWith(pixelVerticesAlpaka,_pixelVerticesAlpakaPhase2.clone( maxVertices = 512))
110 (pp_on_AA & ~phase2_tracker).toReplaceWith(pixelVerticesAlpaka,_pixelVerticesAlpakaHIonPhase1.clone(doSplitting =
False, maxVertices = 32))
112 from RecoVertex.PixelVertexFinding.pixelVertexFromSoAAlpaka_cfi
import pixelVertexFromSoAAlpaka
as _pixelVertexFromSoAAlpaka
113 alpaka.toReplaceWith(pixelVertices, _pixelVertexFromSoAAlpaka.clone())
117 pixelTrackSrc =
'pixelTracksAlpakaSerial' 120 alpaka.toReplaceWith(pixelVerticesTask, cms.Task(
124 pixelVerticesAlpakaSerial,
130 recopixelvertexingTask = cms.Task(
134 recopixelvertexing = cms.Sequence(recopixelvertexingTask)
def makeSerialClone(module, kwargs)