41 auto buffer = cms::alpakatools::make_host_buffer<int[], Platform>(
size);
42 for (
int i = 0;
i <
size; ++
i) {
49 std::optional<cms::alpakatest::AlpakaESTestDataB<Device>>
produceDevice(
52 auto buffer = cms::alpakatools::make_device_buffer<int[]>(iRecord.
queue(), hostHandle->size());
53 alpaka::memcpy(iRecord.
queue(),
buffer, hostHandle->buffer());
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static std::string const input
std::optional< cms::alpakatest::AlpakaESTestDataB< Device > > produceDevice(device::Record< AlpakaESTestRecordB > const &iRecord)
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< cms::alpakatest::ESTestDataB, AlpakaESTestRecordB > token_
std::optional< cms::alpakatest::AlpakaESTestDataB< DevHost > > produceHost(AlpakaESTestRecordB const &iRecord)
auto setWhatProduced(T *iThis, edm::es::Label const &label={})
#define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type)
TestAlpakaESProducerB(edm::ParameterSet const &iConfig)
edm::ESGetToken< cms::alpakatest::AlpakaESTestDataB< DevHost >, AlpakaESTestRecordB > hostToken_
edm::ESTransientHandle< TProduct > getTransientHandle(edm::ESGetToken< TProduct, TDepRecord > const &iToken) const