|
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>> |
ALPAKA_FN_ACC void | operator() (const TAcc &acc, const reco::PFRecHitHostCollection::ConstView pfRecHits, reco::PFClusteringVarsDeviceCollection::View pfClusteringVars, reco::PFRecHitFractionDeviceCollection::View fracView) const |
|
◆ operator()()
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>>
ALPAKA_FN_ACC void ALPAKA_ACCELERATOR_NAMESPACE::FillRhfIndex::operator() |
( |
const TAcc & |
acc, |
|
|
const reco::PFRecHitHostCollection::ConstView |
pfRecHits, |
|
|
reco::PFClusteringVarsDeviceCollection::View |
pfClusteringVars, |
|
|
reco::PFRecHitFractionDeviceCollection::View |
fracView |
|
) |
| const |
|
inline |
Definition at line 1320 of file PFClusterSoAProducerKernel.dev.cc.
References cms::cudacompat::atomicAdd(), HLT_2024v12_cff::fraction, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, HLT_2024v12_cff::pfRecHits, fileCollector::seed, and cms::alpakatools::uniform_elements_nd().
1329 int topoId = pfClusteringVars[
i].pfrh_topoId();
1330 if (topoId > -1 && pfClusteringVars[
i].pfrh_isSeed() && topoId == pfClusteringVars[
j].pfrh_topoId()) {
1331 if (!pfClusteringVars[
j].pfrh_isSeed()) {
1333 acc, &pfClusteringVars[
i].rhCount(), 1);
1334 auto fraction = fracView[pfClusteringVars[
i].seedFracOffsets() +
k];
1336 fraction.pfcIdx() = pfClusteringVars[
i].rhIdxToSeedIdx();
1337 }
else if (
i ==
j) {
1338 auto seed = fracView[pfClusteringVars[
i].seedFracOffsets()];
1341 seed.pfcIdx() = pfClusteringVars[
i].rhIdxToSeedIdx();
T1 atomicAdd(T1 *a, T2 b)