33 : size_(
config.getParameter<uint32_t>(
"size")) {}
37 desc.add<uint32_t>(
"size", 1024 * 1024);
54 <<
" is not available or disabled, the test will be skipped.\n";
59 std::random_device rd{};
60 std::default_random_engine rand{rd()};
61 std::normal_distribution<float> dist{0., 1.};
67 std::vector<float> in1(
size_);
68 std::vector<float> in2(
size_);
72 for (uint32_t
i = 0;
i <
size_; ++
i) {
82 for (uint32_t
i = 0;
i <
size_; ++
i) {
83 float sum = in1[
i] + in2[
i];
AlpakaTestOpaqueAdditionModule(edm::ParameterSet const &config)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void analyze(edm::StreamID, edm::Event const &event, edm::EventSetup const &setup) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void opaque_add_vectors_f(const float *in1, const float *in2, float *out, uint32_t size)
~AlpakaTestOpaqueAdditionModule() override=default
#define DEFINE_FWK_ALPAKA_MODULE(name)