2 #ifdef ALPAKA_HOST_ONLY 3 #error ALPAKA_HOST_ONLY defined in device compilation 11 #include "CLUEAlgoAlpaka.h" 19 const unsigned int size,
23 const HGCalSoARecHitsDeviceCollection::ConstView
inputs,
25 CLUEAlgoAlpaka<ALPAKA_ACCELERATOR_NAMESPACE::Acc1D, Queue, HGCalSiliconTilesConstants, kHGCalLayers> algoStandalone(
29 auto delta = cms::alpakatools::make_device_view<float>(alpaka::getDev(
queue),
outputs.delta(), size);
31 auto rho = cms::alpakatools::make_device_view<float>(alpaka::getDev(
queue),
outputs.rho(), size);
32 alpaka::memset(
queue, rho, 0x0);
34 cms::alpakatools::make_device_view<unsigned int>(alpaka::getDev(
queue),
outputs.nearestHigher(), size);
35 alpaka::memset(
queue, nearestHigher, 0x0);
36 auto clusterIndex = cms::alpakatools::make_device_view<int>(alpaka::getDev(
queue),
outputs.clusterIndex(), size);
38 auto isSeed = cms::alpakatools::make_device_view<uint8_t>(alpaka::getDev(
queue),
outputs.isSeed(), size);
39 alpaka::memset(
queue, isSeed, 0x0);
41 algoStandalone.makeClustersCMSSW(size,
53 &
outputs.numberOfClustersScalar());
void run(Queue &queue, const unsigned int size, const float dc, const float kappa, const float outlierDeltaFactor, const HGCalSoARecHitsDeviceCollection::ConstView inputs, HGCalSoARecHitsExtraDeviceCollection::View outputs) const
static constexpr uint8_t kInvalidClusterByte