12 #ifndef SST_CORE_CORETEST_PERF_COMPONENT_H 13 #define SST_CORE_CORETEST_PERF_COMPONENT_H 15 #include <sst/core/component.h> 16 #include <sst/core/link.h> 17 #include <sst/core/rng/marsaglia.h> 20 namespace CoreTestPerfComponent {
31 SST_ELI_DOCUMENT_PARAMS(
32 {
"workPerCycle",
"Count of busy work to do during a clock tick.", NULL}
35 SST_ELI_DOCUMENT_STATISTICS(
36 {
"N",
"events sent on N link",
"counts", 1 }
39 SST_ELI_DOCUMENT_PORTS(
40 {
"Nlink",
"Link to the coreTestComponent to the North", {
"coreTestComponent.coreTestComponentEvent",
"" } }
50 SST_ELI_REGISTER_COMPONENT_DERIVED_BASE(
53 SST_ELI_DOCUMENT_PARAMS(
54 {
"commFreq",
"Approximate frequency of sending an event during a clock tick.", NULL},
57 SST_ELI_DOCUMENT_STATISTICS(
58 {
"S",
"events sent on S link",
"counts", 1 }
61 SST_ELI_DOCUMENT_PORTS(
62 {
"Slink",
"Link to the coreTestComponent to the South", {
"coreTestComponent.coreTestComponentEvent",
"" } }
73 SST_ELI_REGISTER_COMPONENT(
76 "coreTestPerfComponent",
77 SST_ELI_ELEMENT_VERSION(1,0,0),
78 "CoreTest Test Perf Component",
79 COMPONENT_CATEGORY_PROCESSOR
82 SST_ELI_DOCUMENT_PARAMS(
83 {
"commSize",
"Size of communication to send.",
"16"}
86 SST_ELI_DOCUMENT_STATISTICS(
87 {
"E",
"events sent on E link",
"counts", 1 },
88 {
"W",
"events sent on W link",
"counts", 1 }
91 SST_ELI_DOCUMENT_PORTS(
92 {
"Elink",
"Link to the coreTestComponent to the East", {
"coreTestComponent.coreTestComponentEvent",
"" } },
93 {
"Wlink",
"Link to the coreTestComponent to the West", {
"coreTestComponent.coreTestComponentEvent",
"" } }
97 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
104 void finish() { printf(
"Perf Test Component Finished.\n"); }
112 virtual bool clockTic(SST::Cycle_t);
133 #endif // SST_CORE_CORETEST_PERF_COMPONENT_H Main component object for the simulation.
Definition: component.h:30
Definition: coreTest_PerfComponent.h:47
Definition: coreTest_PerfComponent.h:26
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_PerfComponent.h:104
Definition: coreTest_PerfComponent.h:69
Implements a random number generator using the Marsaglia method.
Definition: marsaglia.h:40
Parameter store.
Definition: params.h:55
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:34
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_PerfComponent.h:103
Link between two components.
Definition: link.h:51