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"}
47 SST_ELI_DOCUMENT_STATISTICS(
50 SST_ELI_DOCUMENT_PORTS(
51 {
"Nlink",
"Link to the coreTestComponent to the North", {
"coreTestComponent.coreTestComponentEvent",
"" } },
52 {
"Slink",
"Link to the coreTestComponent to the South", {
"coreTestComponent.coreTestComponentEvent",
"" } },
53 {
"Elink",
"Link to the coreTestComponent to the East", {
"coreTestComponent.coreTestComponentEvent",
"" } },
54 {
"Wlink",
"Link to the coreTestComponent to the West", {
"coreTestComponent.coreTestComponentEvent",
"" } }
58 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
66 printf(
"Component Finished.\n");
75 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:64
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:65
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:31
Link between two components.
Definition: link.h:32