|
Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|
Public Member Functions | |
| virtual | ~Simulator ()=default |
| void | setup () |
| Destructor. | |
| void | finish () |
| Setup simulation. | |
| void | loadParameters () |
| Cleanup after simulation. | |
| void | printParameters () const |
| Load member variables from configuration file. | |
| void | reset () |
| Prints loaded parameters to logging file. | |
| void | simulate () |
| Reset simulation objects. | |
| void | advanceEpoch (int currentEpoch) const |
| void | saveResults () const |
| Writes simulation results to an output destination. | |
| bool | instantiateSimulatorObjects () |
| Writes simulation results to an output destination. | |
| int | getTotalVertices () const |
| int | getCurrentStep () const |
| Count of neurons in the simulation. | |
| int | getNumEpochs () const |
| Current simulation step. | |
| BGFLOAT | getEpochDuration () const |
| Maximum number of simulation steps. | |
| int | getMaxFiringRate () const |
| The length of each step in simulation time. | |
| int | getMaxEdgesPerVertex () const |
| Maximum firing rate. GPU Only | |
| BGFLOAT | getDeltaT () const |
| Maximum number of synapses per neuron. GPU Only | |
| BGFLOAT | getMaxRate () const |
| long | getNoiseRngSeed () const |
| long | getInitRngSeed () const |
| Seed used for the simulation random SingleThreaded Only | |
| string | getConfigFileName () const |
| Seed used to initialize parameters. | |
| string | getSerializationFileName () const |
| File name of the parameter configuration file. | |
| string | getDeserializationFileName () const |
| File name of the serialization file. | |
| string | getStimulusFileName () const |
| File name of the deserialization file. | |
| Model & | getModel () const |
| File name of the stimulus input file. | |
Static Public Member Functions | |
| static Simulator & | getInstance () |
| void | setConfigFileName (const string &fileName) |
| Neural Network Model interface. | |
| void | setSerializationFileName (const string &fileName) |
| void | setDeserializationFileName (const string &fileName) |
| void | setStimulusFileName (const string &fileName) |
| Simulator (const Simulator &simulator)=delete | |
| Delete copy and move methods to avoid copy instances of the singleton. | |
| Simulator & | operator= (const Simulator &simulator)=delete |
| Simulator (Simulator &&simulator)=delete | |
| Simulator & | operator= (Simulator &&simulator)=delete |
Definition at line 26 of file Simulator.h.
|
virtualdefault |
Acts as constructor, returns the instance of singleton object
| void Simulator::advanceEpoch | ( | int | currentEpoch | ) | const |
Helper for simulate(). Advance simulation until ready for next growth cycle. This should simulate all neuron and synapse activity for one epoch.
| currentStep | the current epoch in which the network is being simulated. |
Definition at line 186 of file Simulator.cpp.
| void Simulator::finish | ( | ) |
| string Simulator::getConfigFileName | ( | ) | const |
Seed used to initialize parameters.
Definition at line 334 of file Simulator.cpp.
| int Simulator::getCurrentStep | ( | ) | const |
Count of neurons in the simulation.
Definition at line 289 of file Simulator.cpp.
| BGFLOAT Simulator::getDeltaT | ( | ) | const |
Maximum number of synapses per neuron. GPU Only
GPU Only.
Definition at line 314 of file Simulator.cpp.
| string Simulator::getDeserializationFileName | ( | ) | const |
File name of the serialization file.
Definition at line 344 of file Simulator.cpp.
| BGFLOAT Simulator::getEpochDuration | ( | ) | const |
Maximum number of simulation steps.
Definition at line 299 of file Simulator.cpp.
| long Simulator::getInitRngSeed | ( | ) | const |
Seed used for the simulation random SingleThreaded Only
Definition at line 329 of file Simulator.cpp.
|
static |
Acts as constructor first time it's called, returns the instance of the singleton object
Definition at line 21 of file Simulator.cpp.
| int Simulator::getMaxEdgesPerVertex | ( | ) | const |
| int Simulator::getMaxFiringRate | ( | ) | const |
The length of each step in simulation time.
Definition at line 304 of file Simulator.cpp.
| BGFLOAT Simulator::getMaxRate | ( | ) | const |
Time elapsed between the beginning and end of the simulation step
Definition at line 319 of file Simulator.cpp.
| Model & Simulator::getModel | ( | ) | const |
File name of the stimulus input file.
Definition at line 354 of file Simulator.cpp.
| long Simulator::getNoiseRngSeed | ( | ) | const |
growth variable (m_targetRate / m_epsilon) TODO: more detail here
Definition at line 324 of file Simulator.cpp.
| int Simulator::getNumEpochs | ( | ) | const |
Current simulation step.
Definition at line 294 of file Simulator.cpp.
| string Simulator::getSerializationFileName | ( | ) | const |
File name of the parameter configuration file.
Definition at line 339 of file Simulator.cpp.
| string Simulator::getStimulusFileName | ( | ) | const |
File name of the deserialization file.
Definition at line 349 of file Simulator.cpp.
| int Simulator::getTotalVertices | ( | ) | const |
Definition at line 284 of file Simulator.cpp.
| bool Simulator::instantiateSimulatorObjects | ( | ) |
Writes simulation results to an output destination.
Instantiates Model which causes all other lower level simulator objects to be instantiated. Checks if all expected objects were created correctly and returns T/F on the success of the check.
Definition at line 237 of file Simulator.cpp.
| void Simulator::loadParameters | ( | ) |
Cleanup after simulation.
Load member variables from configuration file.
Definition at line 78 of file Simulator.cpp.
| void Simulator::printParameters | ( | ) | const |
Load member variables from configuration file.
Prints out loaded parameters to logging file.
Definition at line 111 of file Simulator.cpp.
| void Simulator::reset | ( | ) |
Prints loaded parameters to logging file.
Resets all of the maps. Releases and re-allocates memory for each map, clearing them as necessary.
Definition at line 126 of file Simulator.cpp.
| void Simulator::saveResults | ( | ) | const |
Writes simulation results to an output destination.
Advance simulation to next growth cycle. Helper for simulate().
Definition at line 229 of file Simulator.cpp.
| void Simulator::setConfigFileName | ( | const string & | fileName | ) |
Neural Network Model interface.
Definition at line 258 of file Simulator.cpp.
| void Simulator::setDeserializationFileName | ( | const string & | fileName | ) |
Definition at line 268 of file Simulator.cpp.
| void Simulator::setSerializationFileName | ( | const string & | fileName | ) |
Definition at line 263 of file Simulator.cpp.
| void Simulator::setStimulusFileName | ( | const string & | fileName | ) |
Definition at line 273 of file Simulator.cpp.
| void Simulator::setup | ( | ) |
Destructor.
Initialize and prepare network for simulation.
Definition at line 45 of file Simulator.cpp.
| void Simulator::simulate | ( | ) |