#include <PFClusterECLCC.h>
|
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>> |
ALPAKA_FN_ACC void | operator() (const TAcc &acc, reco::PFRecHitHostCollection::ConstView pfRecHits, reco::PFClusteringVarsDeviceCollection::View pfClusteringVars, reco::PFClusteringEdgeVarsDeviceCollection::View pfClusteringEdgeVars) const |
|
Definition at line 104 of file PFClusterECLCC.h.
◆ operator()()
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>>
ALPAKA_FN_ACC void ALPAKA_ACCELERATOR_NAMESPACE::ECLCCCompute1::operator() |
( |
const TAcc & |
acc, |
|
|
reco::PFRecHitHostCollection::ConstView |
pfRecHits, |
|
|
reco::PFClusteringVarsDeviceCollection::View |
pfClusteringVars, |
|
|
reco::PFClusteringEdgeVarsDeviceCollection::View |
pfClusteringEdgeVars |
|
) |
| const |
|
inline |
Definition at line 107 of file PFClusterECLCC.h.
References cms::alpakatools::elements_with_stride(), mps_fire::i, pfClusterHBHEAlpaka_cff::pfRecHits, ALPAKA_ACCELERATOR_NAMESPACE::representative(), runTheMatrix::ret, and findQualityFiles::v.
114 const int vstat = pfClusteringVars[
v].pfrh_topoId();
116 const int beg = pfClusteringEdgeVars[
v].pfrh_edgeIdx();
117 const int end = pfClusteringEdgeVars[
v + 1].pfrh_edgeIdx();
119 for (
int i = beg;
i <
end;
i++) {
120 const int nli = pfClusteringEdgeVars[
i].pfrh_edgeList();
126 if (vstat != ostat) {
129 if ((
ret = alpaka::atomicCas(acc, &pfClusteringVars[ostat].pfrh_topoId(), ostat, vstat)) != ostat) {
134 if ((
ret = alpaka::atomicCas(acc, &pfClusteringVars[vstat].pfrh_topoId(), vstat, ostat)) != vstat) {
ret
prodAgent to be discontinued
ALPAKA_FN_ACC int representative(const int idx, reco::PFClusteringVarsDeviceCollection::View pfClusteringVars)