Definition at line 16 of file TestCUDAProducerGPUtoCPU.cc.
TestCUDAProducerGPUtoCPU::TestCUDAProducerGPUtoCPU |
( |
edm::ParameterSet const & |
iConfig | ) |
|
|
explicit |
TestCUDAProducerGPUtoCPU::~TestCUDAProducerGPUtoCPU |
( |
| ) |
|
|
overridedefault |
Definition at line 50 of file TestCUDAProducerGPUtoCPU.cc.
References buffer_, cudaCheck, edm::EventID::event(), cms::cudatest::Thing::get(), edm::Event::get(), edm::EventBase::id(), recoMuon::in, label_, eostools::move(), TestCUDAProducerGPUKernel::NUM_VALUES, srcToken_, and edm::Event::streamID().
53 edm::LogVerbatim(
"TestCUDAProducerGPUtoCPU") <<
label_ <<
" TestCUDAProducerGPUtoCPU::acquire begin event "
54 <<
iEvent.id().event() <<
" stream " <<
iEvent.streamID();
64 TestCUDAProducerGPUKernel::NUM_VALUES *
sizeof(float),
65 cudaMemcpyDeviceToHost,
69 <<
iEvent.id().event() <<
" stream " <<
iEvent.streamID();
Log< level::Info, true > LogVerbatim
const float * get() const
cms::cuda::host::unique_ptr< float[]> buffer_
edm::EDGetTokenT< cms::cuda::Product< cms::cudatest::Thing > > const srcToken_
static constexpr int NUM_VALUES
#define cudaCheck(ARG,...)
Definition at line 72 of file TestCUDAProducerGPUtoCPU.cc.
References buffer_, counter, dstToken_, edm::Event::emplace(), edm::EventID::event(), mps_fire::i, edm::EventBase::id(), label_, TestCUDAProducerGPUKernel::NUM_VALUES, and edm::Event::streamID().
73 edm::LogVerbatim(
"TestCUDAProducerGPUtoCPU") <<
label_ <<
" TestCUDAProducerGPUtoCPU::produce begin event "
85 <<
label_ <<
" TestCUDAProducerGPUtoCPU::produce end event " << iEvent.
id().
event() <<
" stream "
Log< level::Info, true > LogVerbatim
EventNumber_t event() const
cms::cuda::host::unique_ptr< float[]> buffer_
edm::EDPutTokenT< int > const dstToken_
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
static constexpr int NUM_VALUES
static std::atomic< unsigned int > counter
StreamID streamID() const
std::string const TestCUDAProducerGPUtoCPU::label_ |
|
private |