Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
CPUModel Class Reference
Inheritance diagram for CPUModel:
Collaboration diagram for CPUModel:

Public Member Functions

 CPUModel ()=default
 Constructor.
 
virtual ~CPUModel ()=default
 Destructor.
 
virtual void finish () override
 Performs any finalization tasks on network following a simulation.
 
virtual void advance () override
 Advances network state one simulation step.
 
virtual void updateConnections () override
 Update the connection of all the Neurons and Synapses of the simulation.
 
virtual void copyGPUtoCPU () override
 Copy GPU Synapse data to CPU.
 
virtual void copyCPUtoGPU () override
 Copy CPU Synapse data to GPU.
 
- Public Member Functions inherited from Model
 Model ()
 Constructor.
 
virtual ~Model ()=default
 Destructor.
 
ConnectionsgetConnections () const
 Returns reference to Connections.
 
LayoutgetLayout () const
 Returns reference to Layout.
 
RecordergetRecorder () const
 Returns reference to Recorder.
 
virtual void saveResults ()
 Save simulation results to an output destination.
 
virtual void setupSim ()
 Sets up the Simulation.
 
virtual void updateHistory ()
 Update the simulation history of every epoch.
 
template<class Archive >
void serialize (Archive &archive, std::uint32_t const version)
 Cereal serialization method.
 

Additional Inherited Members

- Protected Member Functions inherited from Model
void createAllVertices ()
 Creates all the vertices and generates data for them.
 
- Protected Attributes inherited from Model
unique_ptr< Connectionsconnections_
 
unique_ptr< Layoutlayout_
 
unique_ptr< Recorderrecorder_
 
log4cplus::Logger fileLogger_
 

Detailed Description

Definition at line 43 of file CPUModel.h.

Member Function Documentation

◆ advance()

void CPUModel::advance ( )
overridevirtual

Advances network state one simulation step.

Advance everything in the model one time step.

Implements Model.

Definition at line 22 of file CPUModel.cpp.

◆ copyCPUtoGPU()

void CPUModel::copyCPUtoGPU ( )
overridevirtual

Copy CPU Synapse data to GPU.

Copy CPU Synapse data to GPU. (Inheritance, no implem, GPUModel has implem)

Implements Model.

Definition at line 50 of file CPUModel.cpp.

◆ copyGPUtoCPU()

void CPUModel::copyGPUtoCPU ( )
overridevirtual

Copy GPU Synapse data to CPU.

Copy GPU Synapse data to CPU. (Inheritance, no implem)

Implements Model.

Definition at line 43 of file CPUModel.cpp.

◆ finish()

void CPUModel::finish ( )
overridevirtual

Performs any finalization tasks on network following a simulation.

Implements Model.

Definition at line 16 of file CPUModel.cpp.

◆ updateConnections()

void CPUModel::updateConnections ( )
overridevirtual

Update the connection of all the Neurons and Synapses of the simulation.

Modifies connections between neurons based on current state of the network and behavior over the past epoch. Should be called once every epoch.

Implements Model.

Definition at line 32 of file CPUModel.cpp.


The documentation for this class was generated from the following files: