1 #include <cuda_runtime.h> 3 #include <fmt/printf.h> 70 auto const& inputData = ctx.get(inputDataWrapped);
72 nHits_ = inputData.nHits();
73 LogDebug(
"SiPixelRecHitSoAFromCUDA") <<
"copying to cpu SoA" << inputData.nHits() <<
" Hits";
78 store32_ = inputData.store32ToHostAsync(ctx.stream());
79 store16_ = inputData.store16ToHostAsync(ctx.stream());
84 auto hmsp = std::make_unique<uint32_t[]>(
nMaxModules_ + 1);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
~SiPixelRecHitSoAFromCUDA() override=default
#define DEFINE_FWK_MODULE(type)
const edm::EDPutTokenT< TrackingRecHit2DCPU > hitsPutTokenCPU_
void produce(edm::Event &iEvent, edm::EventSetup const &iSetup) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDPutTokenT< HMSstorage > hostPutToken_
void acquire(edm::Event const &iEvent, edm::EventSetup const &iSetup, edm::WaitingTaskWithArenaHolder waitingTaskHolder) override
const edm::EDGetTokenT< cms::cuda::Product< TrackingRecHit2DGPU > > hitsTokenGPU_
cms::cuda::host::unique_ptr< uint16_t[]> store16_
Namespace of DDCMS conversion namespace.
SiPixelRecHitSoAFromCUDA(const edm::ParameterSet &iConfig)
std::unique_ptr< T, impl::HostDeleter > unique_ptr
cms::cuda::host::unique_ptr< float[]> store32_
cms::cuda::host::unique_ptr< uint32_t[]> hitsModuleStart_