16 #ifndef _CORETESTLOOKUPTABLECOMPONENT_H
17 #define _CORETESTLOOKUPTABLECOMPONENT_H
19 #include <sst/core/component.h>
20 #include <sst/core/output.h>
21 #include <sst/core/sharedRegion.h>
24 namespace CoreTestLookupTableComponent {
31 SST_ELI_REGISTER_COMPONENT(
34 "coreTestLookupTableComponent",
35 SST_ELI_ELEMENT_VERSION(1,0,0),
36 "Demonstrates using a Shared Lookup Table",
37 COMPONENT_CATEGORY_UNCATEGORIZED
40 SST_ELI_DOCUMENT_PARAMS(
41 {
"filename",
"Filename to load as the table",
""},
42 {
"num_entities",
"Number of entities in the sim",
"1"},
43 {
"myid",
"ID Number (0 <= myid < num_entities)",
"0"}
47 SST_ELI_DOCUMENT_STATISTICS(
51 SST_ELI_DOCUMENT_PORTS(
55 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
61 virtual void init(
unsigned int phase);
65 bool tick(SST::Cycle_t);
68 const uint8_t * table;
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file...
Definition: output.h:54
Definition: sharedRegion.h:81
Definition: coreTest_LookupTableComponent.h:26
virtual void finish()
Called after simulation completes, but before objects are destroyed.
Definition: coreTest_LookupTableComponent.cc:86
Main component object for the simulation.
Definition: component.h:31
virtual void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_LookupTableComponent.cc:80
Parameter store.
Definition: params.h:44