CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TestAlpakaGlobalProducerWithPtr.cc
Go to the documentation of this file.
12 
13 #include "testPtrAlgoAsync.h"
14 
20  public:
22  : token_{produces()}, size_{config.getParameter<int>("size")} {}
23 
24  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
26  desc.add<int>("size");
27  descriptions.addWithDefaultLabel(desc);
28  }
29 
30  void produce(edm::StreamID, device::Event& iEvent, device::EventSetup const& iSetup) const override {
31  iEvent.emplace(token_, testPtrAlgoAsync(iEvent.queue(), size_));
32  }
33 
34  private:
36  const int32_t size_;
37  };
38 } // namespace ALPAKA_ACCELERATOR_NAMESPACE
39 
41 DEFINE_FWK_ALPAKA_MODULE(TestAlpakaGlobalProducerWithPtr);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: config.py:1
portabletest::TestProductWithPtr< Device > testPtrAlgoAsync(Queue &queue, int size)
int iEvent
Definition: GenABIO.cc:224
const device::EDPutToken< portabletest::TestProductWithPtr< Device > > token_
auto produces(std::string instanceName) noexcept
declare what type of product will make and with which optional label
#define DEFINE_FWK_ALPAKA_MODULE(name)
Definition: MakerMacros.h:16
void produce(edm::StreamID, device::Event &iEvent, device::EventSetup const &iSetup) const override