89 SST_ELI_REGISTER_COMPONENT(
90 coreTestComponentExtMain,
92 "coreTestComponentExtension",
93 SST_ELI_ELEMENT_VERSION(1,0,0),
94 "CoreTest Test Component for ComponentExtensions",
95 COMPONENT_CATEGORY_PROCESSOR
98 SST_ELI_DOCUMENT_PARAMS(
99 {
"workPerCycle",
"Count of busy work to do during a clock tick.", NULL},
100 {
"clockFrequency",
"Frequency of the clock",
"1GHz"},
101 {
"commFreq",
"There is a 1/commFreq chance each clock cycle of sending an event to a neighbor", NULL},
102 {
"commSize",
"Size of communication to send.",
"16"}
105 SST_ELI_DOCUMENT_STATISTICS(
106 {
"N",
"events sent on N link",
"counts", 1 },
107 {
"S",
"events sent on S link",
"counts", 1 },
108 {
"E",
"events sent on E link",
"counts", 1 },
109 {
"W",
"events sent on W link",
"counts", 1 }
112 SST_ELI_DOCUMENT_PORTS(
113 {
"Nlink",
"Link to the coreTestComponentExtension to the North", {
"coreTestComponent.coreTestComponentEvent",
"" } },
114 {
"Slink",
"Link to the coreTestComponentExtension to the South", {
"coreTestComponent.coreTestComponentEvent",
"" } },
115 {
"Elink",
"Link to the coreTestComponentExtension to the East", {
"coreTestComponent.coreTestComponentEvent",
"" } },
116 {
"Wlink",
"Link to the coreTestComponentExtension to the West", {
"coreTestComponent.coreTestComponentEvent",
"" } }
119 SST_ELI_DOCUMENT_ATTRIBUTES(
120 {
"test_element",
"true" }
124 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
127 SST_ELI_IS_CHECKPOINTABLE()
129 coreTestComponentExtMain(SST::ComponentId_t
id,
SST::Params& params);
130 ~coreTestComponentExtMain();
133 void finish()
override { printf(
"Component Finished.\n"); }
ComponentExtension is a class that can be loaded using loadComponentExtension<T>(....
Definition componentExtension.h:29
Definition coreTest_ComponentExtension.h:28
Definition coreTest_ComponentExtension.h:86
void setup() override
Called after all components have been constructed and initialization has completed,...
Definition coreTest_ComponentExtension.h:132
void finish() override
Called after complete phase, but before objects are destroyed.
Definition coreTest_ComponentExtension.h:133
Definition coreTest_ComponentExtension.h:58