Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from Configuration.ProcessModifiers.pixelNtupletFit_cff import pixelNtupletFit

# build the pixel vertices in SoA format on the CPU
from RecoPixelVertexing.PixelVertexFinding.pixelVertexCUDA_cfi import pixelVertexCUDA as _pixelVertexCUDA
from RecoPixelVertexing.PixelVertexFinding.pixelVerticesCUDA_cfi import pixelVerticesCUDA as _pixelVerticesCUDA
pixelVerticesSoA = SwitchProducerCUDA(
cpu = _pixelVertexCUDA.clone(
cpu = _pixelVerticesCUDA.clone(
pixelTrackSrc = "pixelTracksSoA",
onGPU = False
)
Expand All @@ -39,15 +39,15 @@
from Configuration.ProcessModifiers.gpu_cff import gpu

# build pixel vertices in SoA format on the GPU
pixelVerticesCUDA = _pixelVertexCUDA.clone(
pixelVerticesCUDA = _pixelVerticesCUDA.clone(
pixelTrackSrc = "pixelTracksCUDA",
onGPU = True
)

# transfer the pixel vertices in SoA format to the CPU
from RecoPixelVertexing.PixelVertexFinding.pixelVertexSoA_cfi import pixelVertexSoA as _pixelVertexSoA
from RecoPixelVertexing.PixelVertexFinding.pixelVerticesSoA_cfi import pixelVerticesSoA as _pixelVerticesSoA
gpu.toModify(pixelVerticesSoA,
cuda = _pixelVertexSoA.clone(
cuda = _pixelVerticesSoA.clone(
src = cms.InputTag("pixelVerticesCUDA")
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void PixelTrackDumpCUDA::fillDescriptions(edm::ConfigurationDescriptions& descri

desc.add<bool>("onGPU", true);
desc.add<edm::InputTag>("pixelTrackSrc", edm::InputTag("pixelTracksCUDA"));
desc.add<edm::InputTag>("pixelVertexSrc", edm::InputTag("pixelVertexCUDA"));
desc.add<edm::InputTag>("pixelVertexSrc", edm::InputTag("pixelVerticesCUDA"));
descriptions.add("pixelTrackDumpCUDA", desc);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void PixelVertexProducerCUDA::fillDescriptions(edm::ConfigurationDescriptions& d
desc.add<double>("PtMin", 0.5);
desc.add<edm::InputTag>("pixelTrackSrc", edm::InputTag("pixelTracksCUDA"));

auto label = "pixelVertexCUDA";
auto label = "pixelVerticesCUDA";
descriptions.add(label, desc);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void PixelVertexProducerFromSoA::fillDescriptions(edm::ConfigurationDescriptions

desc.add<edm::InputTag>("TrackCollection", edm::InputTag("pixelTracks"));
desc.add<edm::InputTag>("beamSpot", edm::InputTag("offlineBeamSpot"));
desc.add<edm::InputTag>("src", edm::InputTag("pixelVertexSoA"));
desc.add<edm::InputTag>("src", edm::InputTag("pixelVerticesSoA"));

descriptions.add("pixelVertexFromSoA", desc);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ PixelVertexSoAFromCUDA::PixelVertexSoAFromCUDA(const edm::ParameterSet& iConfig)
void PixelVertexSoAFromCUDA::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;

desc.add<edm::InputTag>("src", edm::InputTag("pixelVertexCUDA"));
descriptions.add("pixelVertexSoA", desc);
desc.add<edm::InputTag>("src", edm::InputTag("pixelVerticesCUDA"));
descriptions.add("pixelVerticesSoA", desc);
}

void PixelVertexSoAFromCUDA::acquire(edm::Event const& iEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def customizePixelOnlyForProfilingGPUOnly(process):

process.consumer = cms.EDAnalyzer("GenericConsumer",
eventProducts = cms.untracked.vstring('pixelTracksCUDA', 'pixelVertexCUDA')
eventProducts = cms.untracked.vstring('pixelTracksCUDA', 'pixelVerticesCUDA')
)

process.consume_step = cms.EndPath(process.consumer)
Expand All @@ -28,7 +28,7 @@ def customizePixelOnlyForProfilingGPUWithHostCopy(process):
#? process.siPixelRecHitSoAFromLegacy.convertToLegacy = False

process.consumer = cms.EDAnalyzer("GenericConsumer",
eventProducts = cms.untracked.vstring('pixelTracksSoA', 'pixelVertexSoA')
eventProducts = cms.untracked.vstring('pixelTracksSoA', 'pixelVerticesSoA')
)

process.consume_step = cms.EndPath(process.consumer)
Expand Down