55 auto buffer = cms::alpakatools::make_host_buffer<int[], Platform>(
size);
56 for (
int i = 0;
i <
size; ++
i) {
75 cms::alpakatools::make_device_buffer<int[]>(iRecord.
queue(), alpaka::getExtentProduct(hostHandle->buffer()));
76 alpaka::memcpy(iRecord.
queue(),
buffer, hostHandle->buffer());
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
TestAlpakaESProducerA(edm::ParameterSet const &iConfig)
cms::alpakatools::const_device_buffer< DevHost, int[]> ConstBuffer
cms::alpakatools::device_buffer< DevHost, int[]> Buffer
std::optional< HostBuffer > produceHost(AlpakaESTestRecordA const &iRecord)
static std::string const input
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HostBuffer(Buffer buffer)
ConstBuffer buffer() const
edm::ESGetToken< HostBuffer, AlpakaESTestRecordA > hostToken_
#define TYPELOOKUP_DATA_REG(_dataclass_)
auto setWhatProduced(T *iThis, edm::es::Label const &label={})
#define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type)
edm::ESGetToken< cms::alpakatest::ESTestDataA, AlpakaESTestRecordA > token_
std::optional< AlpakaESTestDataA > produceDevice(device::Record< AlpakaESTestRecordA > const &iRecord)
edm::ESTransientHandle< TProduct > getTransientHandle(edm::ESGetToken< TProduct, TDepRecord > const &iToken) const