1 #ifndef CUDADataFormats_RecHits_TrackingRecHitsDevice_h 2 #define CUDADataFormats_RecHits_TrackingRecHitsDevice_h 11 template <
typename TrackerTraits>
30 uint32_t
const* hitsModuleStart,
49 auto ret = cms::cuda::make_host_unique<float[]>(4 *
nHits(),
stream);
52 size_t srcPitch = ptrdiff_t(
view().yLocal()) - ptrdiff_t(
view().xLocal());
54 cudaMemcpy2DAsync(
ret.get(), rowSize,
view().xLocal(), srcPitch, rowSize, 4, cudaMemcpyDeviceToHost,
stream));
62 view().hitsModuleStart().data(),
69 uint32_t
nHits()
const {
return view().metadata().size(); }
81 #endif // CUDADataFormats_Track_TrackHeterogeneousT_H
typename TrackingRecHitSoA< TrackerTraits >::template TrackingRecHitSoALayout<> TrackingRecHitLayout
ret
prodAgent to be discontinued
typename hitSoA::ParamsOnGPU ParamsOnGPU
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
ConstView const & const_view() const
constexpr uint16_t numberOfModules
TrackingRecHitSoADevice()=default
size_t bufferSize() const
typename hitSoA::AverageGeometry AverageGeometry
Namespace of DDCMS conversion namespace.
pixelCPEforGPU::ParamsOnGPUT< TrackerTraits > ParamsOnGPU
TrackingRecHitSoADevice(uint32_t nHits, int32_t offsetBPIX2, ParamsOnGPU const *cpeParams, uint32_t const *hitsModuleStart, cudaStream_t stream)
pixelTopology::AverageGeometryT< TrackerTraits > AverageGeometry
char data[epos_bytes_allocation]
std::unique_ptr< T, impl::HostDeleter > unique_ptr
cms::cuda::host::unique_ptr< float[]> localCoordToHostAsync(cudaStream_t stream) const
#define cudaCheck(ARG,...)
cms::cuda::host::unique_ptr< uint32_t[]> hitsModuleStartToHostAsync(cudaStream_t stream) const
uint32_t offsetBPIX2() const