16 #ifndef _CORETESTCOMPONENT_H
17 #define _CORETESTCOMPONENT_H
19 #include <sst/core/component.h>
20 #include <sst/core/link.h>
21 #include <sst/core/rng/marsaglia.h>
24 namespace CoreTestComponent {
31 SST_ELI_REGISTER_COMPONENT(
35 SST_ELI_ELEMENT_VERSION(1,0,0),
36 "CoreTest Test Component",
37 COMPONENT_CATEGORY_PROCESSOR
40 SST_ELI_DOCUMENT_PARAMS(
41 {
"workPerCycle",
"Count of busy work to do during a clock tick.", NULL},
42 {
"commFreq",
"Approximate frequency of sending an event during a clock tick.", NULL},
43 {
"commSize",
"Size of communication to send.",
"16"}
46 SST_ELI_DOCUMENT_STATISTICS({
"N",
"events sent on N link",
"counts", 1 },
47 {
"S",
"events sent on S link",
"counts", 1 },
48 {
"E",
"events sent on E link",
"counts", 1 },
49 {
"W",
"events sent on W link",
"counts", 1 }, )
51 SST_ELI_DOCUMENT_PORTS(
52 {
"Nlink",
"Link to the coreTestComponent to the North", {
"coreTestComponent.coreTestComponentEvent",
"" } },
53 {
"Slink",
"Link to the coreTestComponent to the South", {
"coreTestComponent.coreTestComponentEvent",
"" } },
54 {
"Elink",
"Link to the coreTestComponent to the East", {
"coreTestComponent.coreTestComponentEvent",
"" } },
55 {
"Wlink",
"Link to the coreTestComponent to the West", {
"coreTestComponent.coreTestComponentEvent",
"" } }
59 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
67 printf(
"Component Finished.\n");
76 virtual bool clockTic(SST::Cycle_t);
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_Component.h:65
Main component object for the simulation.
Definition: component.h:31
Definition: coreTest_Component.h:26
Implements a random number generator using the Marsaglia method.
Definition: marsaglia.h:39
Parameter store.
Definition: params.h:44
void finish()
Called after simulation completes, but before objects are destroyed.
Definition: coreTest_Component.h:66
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:31
Link between two components.
Definition: link.h:32