31 : size_(
config.getParameter<uint32_t>(
"size")) {}
35 desc.add<uint32_t>(
"size", 1024 * 1024);
43 std::cout <<
"The CUDAService is not available or disabled, the test will be skipped.\n";
48 std::random_device rd{};
49 std::default_random_engine rand{rd()};
50 std::normal_distribution<float> dist{0., 1.};
56 std::vector<float> in1(
size_);
57 std::vector<float> in2(
size_);
72 float sum = in1[
i] + in2[
i];
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
CUDATestOpaqueAdditionModule(edm::ParameterSet const &config)
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
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~CUDATestOpaqueAdditionModule() override=default
void analyze(edm::StreamID, edm::Event const &event, edm::EventSetup const &setup) const override
void opaque_add_vectors_f(const float *in1, const float *in2, float *out, size_t size)