src
HeterogeneousCore
AlpakaCore
plugins
alpaka
AlpakaBackendProducer.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
2
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
3
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
4
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
5
#include "
FWCore/Utilities/interface/StreamID.h
"
6
#include "
HeterogeneousCore/AlpakaCore/interface/alpaka/Event.h
"
7
#include "
HeterogeneousCore/AlpakaCore/interface/alpaka/EventSetup.h
"
8
#include "
HeterogeneousCore/AlpakaCore/interface/alpaka/global/EDProducer.h
"
9
#include "
HeterogeneousCore/AlpakaInterface/interface/config.h
"
10
11
namespace
ALPAKA_ACCELERATOR_NAMESPACE
{
12
13
class
AlpakaBackendProducer
:
public
global::EDProducer
<> {
14
public
:
15
AlpakaBackendProducer
(
edm::ParameterSet
const
&
config
){};
16
17
void
produce
(
edm::StreamID
sid,
device::Event
&
event
,
device::EventSetup
const
&)
const override
{}
18
19
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
20
edm::ParameterSetDescription
desc
;
21
descriptions.
addWithDefaultLabel
(
desc
);
22
descriptions.
setComment
(
23
"The alpaka EDProducer does not have any explicit products. "
24
"Its only purpose is to produce a 'backend' value."
);
25
}
26
};
27
28
}
// namespace ALPAKA_ACCELERATOR_NAMESPACE
29
30
#include "
HeterogeneousCore/AlpakaCore/interface/alpaka/MakerMacros.h
"
31
DEFINE_FWK_ALPAKA_MODULE
(AlpakaBackendProducer);
edm::ConfigurationDescriptions::addWithDefaultLabel
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:87
ALPAKA_ACCELERATOR_NAMESPACE::AlpakaBackendProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
AlpakaBackendProducer.cc:19
edm::StreamID
Definition:
StreamID.h:30
ALPAKA_ACCELERATOR_NAMESPACE::device::EventSetup
Definition:
EventSetup.h:21
config
Definition:
config.py:1
Frameworkfwd.h
ALPAKA_ACCELERATOR_NAMESPACE::AlpakaBackendProducer::AlpakaBackendProducer
AlpakaBackendProducer(edm::ParameterSet const &config)
Definition:
AlpakaBackendProducer.cc:15
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ParameterSet.h
ALPAKA_ACCELERATOR_NAMESPACE
Definition:
SiPixelCablingSoAESProducer.cc:21
ParameterSetDescription.h
ALPAKA_ACCELERATOR_NAMESPACE::global::EDProducer
Definition:
EDProducer.h:14
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:254
StreamID.h
EDProducer.h
Event.h
edm::ConfigurationDescriptions::setComment
void setComment(std::string const &value)
Definition:
ConfigurationDescriptions.cc:48
MakerMacros.h
ALPAKA_ACCELERATOR_NAMESPACE::AlpakaBackendProducer::produce
void produce(edm::StreamID sid, device::Event &event, device::EventSetup const &) const override
Definition:
AlpakaBackendProducer.cc:17
DEFINE_FWK_ALPAKA_MODULE
#define DEFINE_FWK_ALPAKA_MODULE(name)
Definition:
MakerMacros.h:16
edm::ParameterSet
Definition:
ParameterSet.h:48
ALPAKA_ACCELERATOR_NAMESPACE::device::Event
Definition:
Event.h:32
ConfigurationDescriptions.h
config.h
EventSetup.h
ALPAKA_ACCELERATOR_NAMESPACE::AlpakaBackendProducer
Definition:
AlpakaBackendProducer.cc:13
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.14