16#ifndef SST_CORE_CORETEST_MEMPOOLTEST_H
17#define SST_CORE_CORETEST_MEMPOOLTEST_H
19#include "sst/core/component.h"
20#include "sst/core/link.h"
25namespace CoreTestMemPoolTest {
37 Event::serialize_order(ser);
54 Event::serialize_order(ser);
71 Event::serialize_order(ser);
88 Event::serialize_order(ser);
108 Event::serialize_order(ser);
122 SST_ELI_REGISTER_COMPONENT(
125 "memPoolTestComponent",
126 SST_ELI_ELEMENT_VERSION(1,0,0),
127 "Test MemPool overflow",
128 COMPONENT_CATEGORY_UNCATEGORIZED
131 SST_ELI_DOCUMENT_PARAMS(
132 {
"event_size",
"Size of event to sent (valid sizes: 1-4).",
"1" },
133 {
"initial_events",
"Number of events to send to each other component",
"256" }
136 SST_ELI_DOCUMENT_PORTS(
137 {
"port%d",
"Links to other test components", {
"CoreTestMemPoolTest.MemPoolTestEvent",
"" } }
140 SST_ELI_DOCUMENT_ATTRIBUTES(
141 {
"test_element",
"true" }
147 void eventHandler(
Event* ev,
int port);
148 void setup(
void)
override;
149 void finish(
void)
override;
150 void complete(
unsigned int phase)
override;
154 std::vector<Link*> links;
160 Event* createEvent();
Main component object for the simulation.
Definition: component.h:31
Definition: coreTest_MemPoolTest.h:120
void finish(void) override
Called after complete phase, but before objects are destroyed.
Definition: coreTest_MemPoolTest.cc:114
void setup(void) override
Called after all components have been constructed and initialization has completed,...
Definition: coreTest_MemPoolTest.cc:77
Definition: coreTest_MemPoolTest.h:31
Definition: coreTest_MemPoolTest.h:48
Definition: coreTest_MemPoolTest.h:65
Definition: coreTest_MemPoolTest.h:82
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:35
Parameter store.
Definition: params.h:56