16 #ifndef _CORETESTSTATISTICSCOMPONENT_H
17 #define _CORETESTSTATISTICSCOMPONENT_H
19 #include "sst/core/component.h"
20 #include "sst/core/rng/sstrng.h"
23 using namespace SST::RNG;
24 using namespace SST::Statistics;
27 namespace CoreTestStatisticsComponent {
34 SST_ELI_REGISTER_COMPONENT(
37 "coreTestStatisticsComponent",
38 SST_ELI_ELEMENT_VERSION(1,0,0),
39 "Statistics Demo Component",
40 COMPONENT_CATEGORY_UNCATEGORIZED
43 SST_ELI_DOCUMENT_PARAMS(
44 {
"seed_w",
"The seed to use for the random number generator",
"7" },
45 {
"seed_z",
"The seed to use for the random number generator",
"5" },
46 {
"seed",
"The seed to use for the random number generator.",
"11" },
47 {
"rng",
"The random number generator to use (Marsaglia or Mersenne), default is Mersenne",
"Mersenne"},
48 {
"count",
"The number of random numbers to generate, default is 1000",
"1000" }
51 SST_ELI_DOCUMENT_STATISTICS(
52 {
"stat1_U32",
"Test Statistic 1 - Collecting U32 Data",
"units", 1},
53 {
"stat2_U64",
"Test Statistic 2 - Collecting U64 Data",
"units", 2},
54 {
"stat3_I32",
"Test Statistic 3 - Collecting I32 Data",
"units", 3},
55 {
"stat4_I64",
"Test Statistic 4 - Collecting I64 Data",
"units", 4},
56 {
"stat5_U32",
"Test Statistic 5 - Collecting U32 Data",
"units", 5},
57 {
"stat6_U64",
"Test Statistic 6 - Collecting U64 Data",
"units", 6}
61 SST_ELI_DOCUMENT_PORTS(
65 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
77 virtual bool Clock1Tick(SST::Cycle_t);
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file...
Definition: output.h:54
Definition: coreTest_StatisticsComponent.h:29
Main component object for the simulation.
Definition: component.h:31
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_StatisticsComponent.h:69
Implements the base class for random number generators for the SST core.
Definition: sstrng.h:27
Parameter store.
Definition: params.h:44
void finish()
Called after simulation completes, but before objects are destroyed.
Definition: coreTest_StatisticsComponent.h:70