Go to the documentation of this file.
38 srcToken_{consumes<cms::cuda::Product<cms::cudatest::Thing>>(iConfig.getParameter<
edm::InputTag>(
"src"))},
39 dstToken_{produces<int>()} {}
46 "This EDProducer is part of the TestCUDAProducer* family. It models the GPU->CPU data transfer and formatting of "
47 "the data to legacy data format. Produces int, to be compatible with TestCUDAProducerCPU.");
53 edm::LogVerbatim(
"TestCUDAProducerGPUtoCPU") <<
label_ <<
" TestCUDAProducerGPUtoCPU::acquire begin event "
54 <<
iEvent.id().event() <<
" stream " <<
iEvent.streamID();
65 cudaMemcpyDeviceToHost,
69 <<
iEvent.id().event() <<
" stream " <<
iEvent.streamID();
73 edm::LogVerbatim(
"TestCUDAProducerGPUtoCPU") <<
label_ <<
" TestCUDAProducerGPUtoCPU::produce begin event "
74 <<
iEvent.id().event() <<
" stream " <<
iEvent.streamID();
85 <<
label_ <<
" TestCUDAProducerGPUtoCPU::produce end event " <<
iEvent.id().event() <<
" stream "
~TestCUDAProducerGPUtoCPU() override=default
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
cms::cuda::host::unique_ptr< float[]> buffer_
TestCUDAProducerGPUtoCPU(edm::ParameterSet const &iConfig)
#define DEFINE_FWK_MODULE(type)
static constexpr int NUM_VALUES
const edm::EDPutTokenT< int > dstToken_
void acquire(edm::Event const &iEvent, edm::EventSetup const &iSetup, edm::WaitingTaskWithArenaHolder waitingTaskHolder) override
void setComment(std::string const &value)
const edm::EDGetTokenT< cms::cuda::Product< cms::cudatest::Thing > > srcToken_
static std::atomic< unsigned int > counter
#define cudaCheck(ARG,...)
const float * get() const
Log< level::Info, true > LogVerbatim
std::unique_ptr< T, impl::HostDeleter > unique_ptr
T getParameter(std::string const &) const
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)