12 #ifndef SST_CORE_CORETEST_STATISTICSCOMPONENT_H 13 #define SST_CORE_CORETEST_STATISTICSCOMPONENT_H 15 #include "sst/core/component.h" 16 #include "sst/core/rng/rng.h" 23 namespace CoreTestStatisticsComponent {
29 SST_ELI_REGISTER_COMPONENT(
32 "StatisticsComponent.int",
33 SST_ELI_ELEMENT_VERSION(1,0,0),
34 "Statistics test component with ints",
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" }
46 SST_ELI_DOCUMENT_STATISTICS(
47 {
"stat1_U32",
"Test Statistic 1 - Collecting U32 Data",
"units", 1},
48 {
"stat2_U64",
"Test Statistic 2 - Collecting U64 Data",
"units", 2},
49 {
"stat3_I32",
"Test Statistic 3 - Collecting I32 Data",
"units", 3},
50 {
"stat4_I64",
"Test Statistic 4 - Collecting I64 Data",
"units", 4},
51 {
"stat5_U32",
"Test Statistic 5 - Collecting U32 Data",
"units", 5},
52 {
"stat6_U64",
"Test Statistic 6 - Collecting U64 Data",
"units", 6}
56 SST_ELI_DOCUMENT_PORTS(
60 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
72 virtual bool Clock1Tick(SST::Cycle_t);
91 SST_ELI_REGISTER_COMPONENT(
94 "StatisticsComponent.float",
95 SST_ELI_ELEMENT_VERSION(1,0,0),
96 "Statistics test component with floats",
97 COMPONENT_CATEGORY_UNCATEGORIZED
100 SST_ELI_DOCUMENT_PARAMS(
101 {
"seed_w",
"The seed to use for the random number generator",
"7" },
102 {
"seed_z",
"The seed to use for the random number generator",
"5" },
103 {
"seed",
"The seed to use for the random number generator.",
"11" },
104 {
"rng",
"The random number generator to use (Marsaglia or Mersenne), default is Mersenne",
"Mersenne"},
105 {
"count",
"The number of random numbers to generate, default is 1000",
"1000" }
108 SST_ELI_DOCUMENT_STATISTICS(
109 {
"stat1_F32",
"Test Statistic 1 - Collecting F32 Data",
"units", 1},
110 {
"stat2_F64",
"Test Statistic 2 - Collecting F64 Data",
"units", 2},
111 {
"stat3_F64",
"Test Statistic 2 - Collecting F64 Data",
"units", 9},
115 SST_ELI_DOCUMENT_PORTS(
119 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
131 virtual bool Clock1Tick(SST::Cycle_t);
134 std::string rng_type;
148 #endif // SST_CORE_CORETEST_STATISTICSCOMPONENT_H Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file...
Definition: output.h:53
Implements the base class for random number generators for the SST core.
Definition: rng.h:29
Definition: constant.h:21
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_StatisticsComponent.h:64
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_StatisticsComponent.h:123
Main component object for the simulation.
Definition: component.h:30
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_StatisticsComponent.h:124
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_StatisticsComponent.h:65
Parameter store.
Definition: params.h:55
Definition: coreTest_StatisticsComponent.h:87
Definition: coreTest_StatisticsComponent.h:25
Definition: elementinfo.h:43