12#ifndef SST_CORE_CORETEST_PERF_COMPONENT_H
13#define SST_CORE_CORETEST_PERF_COMPONENT_H
17#include <sst/core/component.h>
18#include <sst/core/link.h>
19#include <sst/core/rng/marsaglia.h>
21namespace SST::CoreTestPerfComponent {
32 SST_ELI_DOCUMENT_PARAMS(
33 {
"workPerCycle",
"Count of busy work to do during a clock tick.", NULL}
36 SST_ELI_DOCUMENT_STATISTICS(
37 {
"N",
"events sent on N link",
"counts", 1 }
40 SST_ELI_DOCUMENT_PORTS(
41 {
"Nlink",
"Link to the coreTestComponent to the North", {
"coreTestComponent.coreTestComponentEvent",
"" } }
53 SST_ELI_REGISTER_COMPONENT_DERIVED_BASE(
56 SST_ELI_DOCUMENT_PARAMS(
57 {
"commFreq",
"Approximate frequency of sending an event during a clock tick.", NULL},
60 SST_ELI_DOCUMENT_STATISTICS(
61 {
"S",
"events sent on S link",
"counts", 1 }
64 SST_ELI_DOCUMENT_PORTS(
65 {
"Slink",
"Link to the coreTestComponent to the South", {
"coreTestComponent.coreTestComponentEvent",
"" } }
68 explicit coreTestPerfComponentBase2(ComponentId_t
id) :
71 ~coreTestPerfComponentBase2() {}
74class coreTestPerfComponent :
public coreTestPerfComponentBase2
78 SST_ELI_REGISTER_COMPONENT(
79 coreTestPerfComponent,
81 "coreTestPerfComponent",
82 SST_ELI_ELEMENT_VERSION(1,0,0),
83 "CoreTest Test Perf Component",
84 COMPONENT_CATEGORY_PROCESSOR
87 SST_ELI_DOCUMENT_PARAMS(
88 {
"commSize",
"Size of communication to send.",
"16"}
91 SST_ELI_DOCUMENT_STATISTICS(
92 {
"E",
"events sent on E link",
"counts", 1 },
93 {
"W",
"events sent on W link",
"counts", 1 }
96 SST_ELI_DOCUMENT_PORTS(
97 {
"Elink",
"Link to the coreTestComponent to the East", {
"coreTestComponent.coreTestComponentEvent",
"" } },
98 {
"Wlink",
"Link to the coreTestComponent to the West", {
"coreTestComponent.coreTestComponentEvent",
"" } }
102 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
105 coreTestPerfComponent(SST::ComponentId_t
id,
SST::Params& params);
106 ~coreTestPerfComponent();
109 void finish()
override { printf(
"Perf Test Component Finished.\n"); }
117 virtual bool clockTic(SST::Cycle_t);
Main component object for the simulation.
Definition component.h:32
Definition coreTest_PerfComponent.h:51
Definition coreTest_PerfComponent.h:28
Definition coreTest_PerfComponent.h:75
void setup() override
Called after all components have been constructed and initialization has completed,...
Definition coreTest_PerfComponent.h:108
void finish() override
Called after complete phase, but before objects are destroyed.
Definition coreTest_PerfComponent.h:109
Base class for Events - Items sent across links to communicate between components.
Definition event.h:41
Link between two components.
Definition link.h:57
Parameter store.
Definition params.h:65
Implements a random number generator using the Marsaglia method.
Definition marsaglia.h:41
Forms the template defined base class for statistics gathering within SST.
Definition statbase.h:369