Go to the documentation of this file. 1 #include <cuda_runtime.h>
21 #undef PIXEL_DEBUG_PRODUCE
50 descriptions.
add(
"pixelTrackSoA",
desc);
58 auto const& inputData = ctx.get(inputDataWrapped);
60 soa_ = inputData.toHostAsync(ctx.stream());
64 #ifdef PIXEL_DEBUG_PRODUCE
65 auto const& tsoa = *
soa_;
70 for (int32_t it = 0; it <
maxTracks; ++it) {
71 auto nHits = tsoa.nHits(it);
77 std::cout <<
"found " <<
nt <<
" tracks in cpu SoA at " << &tsoa << std::endl;
edm::EDPutTokenT< PixelTrackHeterogeneous > tokenSOA_
~PixelTrackSoAFromCUDA() override=default
void acquire(edm::Event const &iEvent, edm::EventSetup const &iSetup, edm::WaitingTaskWithArenaHolder waitingTaskHolder) override
void produce(edm::Event &iEvent, edm::EventSetup const &iSetup) override
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const caConstants::TupleMultiplicity *__restrict__ const HitsOnGPU *__restrict__ double *__restrict__ float *__restrict__ double *__restrict__ uint32_t nHits
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
cms::cuda::host::unique_ptr< pixelTrack::TrackSoA > soa_
edm::EDGetTokenT< cms::cuda::Product< PixelTrackHeterogeneous > > tokenCUDA_
PixelTrackSoAFromCUDA(const edm::ParameterSet &iConfig)
std::unique_ptr< T, impl::HostDeleter > unique_ptr
HeterogeneousSoA< pixelTrack::TrackSoA > PixelTrackHeterogeneous
Namespace of DDCMS conversion namespace.