16#ifndef SST_CORE_CORETEST_STATISTICSCOMPONENT_H
17#define SST_CORE_CORETEST_STATISTICSCOMPONENT_H
19#include "sst/core/component.h"
20#include "sst/core/rng/rng.h"
23using namespace SST::RNG;
24using namespace SST::Statistics;
27namespace CoreTestStatisticsComponent {
33 SST_ELI_REGISTER_COMPONENT(
36 "StatisticsComponent.int",
37 SST_ELI_ELEMENT_VERSION(1,0,0),
38 "Statistics test component with ints",
39 COMPONENT_CATEGORY_UNCATEGORIZED
42 SST_ELI_DOCUMENT_PARAMS(
43 {
"seed_w",
"The seed to use for the random number generator",
"7" },
44 {
"seed_z",
"The seed to use for the random number generator",
"5" },
45 {
"seed",
"The seed to use for the random number generator.",
"11" },
46 {
"rng",
"The random number generator to use (Marsaglia or Mersenne), default is Mersenne",
"Mersenne"},
47 {
"count",
"The number of random numbers to generate, default is 1000",
"1000" }
50 SST_ELI_DOCUMENT_STATISTICS(
51 {
"stat1_U32",
"Test Statistic 1 - Collecting U32 Data",
"units", 1},
52 {
"stat2_U64",
"Test Statistic 2 - Collecting U64 Data",
"units", 2},
53 {
"stat3_I32",
"Test Statistic 3 - Collecting I32 Data",
"units", 3},
54 {
"stat4_I64",
"Test Statistic 4 - Collecting I64 Data",
"units", 4},
55 {
"stat5_U32",
"Test Statistic 5 - Collecting U32 Data",
"units", 5},
56 {
"stat6_U64",
"Test Statistic 6 - Collecting U64 Data",
"units", 6}
60 SST_ELI_DOCUMENT_PORTS(
64 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
76 virtual bool Clock1Tick(SST::Cycle_t);
95 SST_ELI_REGISTER_COMPONENT(
98 "StatisticsComponent.float",
99 SST_ELI_ELEMENT_VERSION(1,0,0),
100 "Statistics test component with floats",
101 COMPONENT_CATEGORY_UNCATEGORIZED
104 SST_ELI_DOCUMENT_PARAMS(
105 {
"seed_w",
"The seed to use for the random number generator",
"7" },
106 {
"seed_z",
"The seed to use for the random number generator",
"5" },
107 {
"seed",
"The seed to use for the random number generator.",
"11" },
108 {
"rng",
"The random number generator to use (Marsaglia or Mersenne), default is Mersenne",
"Mersenne"},
109 {
"count",
"The number of random numbers to generate, default is 1000",
"1000" }
112 SST_ELI_DOCUMENT_STATISTICS(
113 {
"stat1_F32",
"Test Statistic 1 - Collecting F32 Data",
"units", 1},
114 {
"stat2_F64",
"Test Statistic 2 - Collecting F64 Data",
"units", 2},
115 {
"stat3_F64",
"Test Statistic 2 - Collecting F64 Data",
"units", 9},
119 SST_ELI_DOCUMENT_PORTS(
123 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
135 virtual bool Clock1Tick(SST::Cycle_t);
138 std::string rng_type;
Main component object for the simulation.
Definition: component.h:31
Definition: coreTest_StatisticsComponent.h:92
void setup()
Called after all components have been constructed and initialization has completed,...
Definition: coreTest_StatisticsComponent.h:127
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_StatisticsComponent.h:128
Definition: coreTest_StatisticsComponent.h:30
void setup()
Called after all components have been constructed and initialization has completed,...
Definition: coreTest_StatisticsComponent.h:68
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_StatisticsComponent.h:69
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file.
Definition: output.h:52
Parameter store.
Definition: params.h:56
Implements the base class for random number generators for the SST core.
Definition: rng.h:28
Forms the template defined base class for statistics gathering within SST.
Definition: statbase.h:361