16 #ifndef _CORETESTMESSAGEGENERATORCOMPONENT_H
17 #define _CORETESTMESSAGEGENERATORCOMPONENT_H
19 #include "sst/core/component.h"
20 #include "sst/core/link.h"
23 namespace CoreTestMessageGeneratorComponent {
30 SST_ELI_REGISTER_COMPONENT(
33 "coreTestMessageGeneratorComponent",
34 SST_ELI_ELEMENT_VERSION(1,0,0),
35 "Messaging rate benchmark component",
36 COMPONENT_CATEGORY_NETWORK
39 SST_ELI_DOCUMENT_PARAMS(
40 {
"printStats",
"Prints the statistics from the component",
"0"},
41 {
"clock",
"Sets the clock for the message generator",
"1GHz" },
42 {
"sendcount",
"Sets the number of sends in the simulation.",
"1000" },
43 {
"outputinfo",
"Sets the level of output information",
"1" }
47 SST_ELI_DOCUMENT_STATISTICS(
50 SST_ELI_DOCUMENT_PORTS(
51 {
"remoteComponent",
"Sets the link for the message component, message components talk to each other exchanging coreTest messages", {
"coreTestMessageGeneratorComponent.coreTestMessage",
"" } }
55 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
62 fprintf(stdout,
"Component completed at: %" PRIu64
" milliseconds\n",
72 virtual bool tick(SST::Cycle_t);
74 std::string clock_frequency_str;
75 int message_counter_sent;
76 int message_counter_recv;
77 int total_message_send_count;
78 int output_message_info;
Main component object for the simulation.
Definition: component.h:31
void finish()
Called after simulation completes, but before objects are destroyed.
Definition: coreTest_MessageGeneratorComponent.h:60
Definition: coreTest_MessageGeneratorComponent.h:25
Parameter store.
Definition: params.h:44
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_MessageGeneratorComponent.h:59
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:31
SimTime_t getCurrentSimTimeMilli() const
Utility function to return the time since the simulation began in milliseconds.
Definition: baseComponent.cc:416
Link between two components.
Definition: link.h:32