12#ifndef SST_CORE_CORETEST_RNGCOMPONENT_H
13#define SST_CORE_CORETEST_RNGCOMPONENT_H
15#include "sst/core/component.h"
16#include "sst/core/rng/rng.h"
21using namespace SST::RNG;
23namespace SST::CoreTestRNGComponent {
29 SST_ELI_REGISTER_COMPONENT(
32 "coreTestRNGComponent",
33 SST_ELI_ELEMENT_VERSION(1,0,0),
34 "Random number generation component",
35 COMPONENT_CATEGORY_UNCATEGORIZED
38 SST_ELI_DOCUMENT_PARAMS(
39 {
"seed_w",
"The seed to use for the random number generator",
"7" },
40 {
"seed_z",
"The seed to use for the random number generator",
"5" },
41 {
"seed",
"The seed to use for the random number generator.",
"11" },
42 {
"rng",
"The random number generator to use (Marsaglia or Mersenne), default is Mersenne",
"Mersenne"},
43 {
"count",
"The number of random numbers to generate, default is 1000",
"1000" },
44 {
"verbose",
"Sets the output verbosity of the component",
"0" }
48 SST_ELI_DOCUMENT_STATISTICS(
52 SST_ELI_DOCUMENT_PORTS(
56 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
59 coreTestRNGComponent(SST::ComponentId_t
id,
SST::Params& params);
60 ~coreTestRNGComponent();
69 virtual bool tick(SST::Cycle_t);
Main component object for the simulation.
Definition component.h:31
Definition coreTest_RNGComponent.h:26
void setup() override
Called after all components have been constructed and initialization has completed,...
Definition coreTest_RNGComponent.h:61
void finish() override
Called after complete phase, but before objects are destroyed.
Definition coreTest_RNGComponent.h:62
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file.
Definition output.h:54
Parameter store.
Definition params.h:58
Implements the base class for random number generators for the SST core.
Definition rng.h:29