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>
25 alpaka::memcpy(
queue, dstData.buffer(), srcData.
buffer());
27 #ifdef GPU_DEBUG //keeping this untiil copies are in the Tracer 28 printf(
"SiPixelClustersSoACollection: I'm copying to host.\n");
36 #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