1 #ifndef DataFormats_SiPixelClusterSoA_interface_alpaka_SiPixelClustersSoACollection_h 2 #define DataFormats_SiPixelClusterSoA_interface_alpaka_SiPixelClustersSoACollection_h 4 #include <alpaka/alpaka.hpp> 19 template <
typename TDevice>
21 template <
typename TQueue>
24 alpaka::memcpy(
queue, dstData.buffer(), srcData.
buffer());
26 #ifdef GPU_DEBUG //keeping this untiil copies are in the Tracer 27 printf(
"SiPixelClustersSoACollection: I'm copying to host.\n");
35 #endif // DataFormats_SiPixelClusterSoA_interface_alpaka_SiPixelClustersSoACollection_h void setNClusters(uint32_t nClusters, int32_t offsetBPIX2)
#define ASSERT_DEVICE_MATCHES_HOST_COLLECTION(DEVICE_COLLECTION, HOST_COLLECTION)
uint32_t nClusters() const
int32_t offsetBPIX2() const
std::conditional_t< std::is_same_v< Device, alpaka::DevCpu >, SiPixelClustersHost, SiPixelClustersDevice< Device > > SiPixelClustersSoACollection