Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:36:34

0001 #include "FWCore/Framework/interface/Frameworkfwd.h"
0002 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0003 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0004 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0005 #include "FWCore/Utilities/interface/StreamID.h"
0006 #include "HeterogeneousCore/AlpakaCore/interface/alpaka/Event.h"
0007 #include "HeterogeneousCore/AlpakaCore/interface/alpaka/EventSetup.h"
0008 #include "HeterogeneousCore/AlpakaCore/interface/alpaka/global/EDProducer.h"
0009 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0010 
0011 namespace ALPAKA_ACCELERATOR_NAMESPACE {
0012 
0013   class AlpakaBackendProducer : public global::EDProducer<> {
0014   public:
0015     AlpakaBackendProducer(edm::ParameterSet const& config) {}
0016 
0017     void produce(edm::StreamID sid, device::Event& event, device::EventSetup const&) const override {}
0018 
0019     static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
0020       edm::ParameterSetDescription desc;
0021       descriptions.addWithDefaultLabel(desc);
0022       descriptions.setComment(
0023           "The alpaka EDProducer does not have any explicit products. "
0024           "Its only purpose is to produce a 'backend' value.");
0025     }
0026   };
0027 
0028 }  // namespace ALPAKA_ACCELERATOR_NAMESPACE
0029 
0030 #include "HeterogeneousCore/AlpakaCore/interface/alpaka/MakerMacros.h"
0031 DEFINE_FWK_ALPAKA_MODULE(AlpakaBackendProducer);