![]() |
GeNN
1.1
GPU enhanced Neuronal Networks (GeNN)
|
This class cpontains the methods for running the MBody1 example model. More...
#include <map_classol.h>
Public Member Functions | |
| classol () | |
| ~classol () | |
| void | init (unsigned int) |
| Method for initialising variables. More... | |
| void | allocate_device_mem_patterns () |
| Method for allocating memory on the GPU device to hold the input patterns. More... | |
| void | free_device_mem () |
| Methods for unallocating the memory for input patterns on the GPU device. More... | |
| void | read_pnkcsyns (FILE *) |
| Method for reading the connectivity between PNs and KCs from a file. More... | |
| void | read_sparsesyns_par (int, struct Conductance, FILE *, FILE *, FILE *) |
| void | write_pnkcsyns (FILE *) |
| Method for writing the conenctivity between PNs and KCs back into file. More... | |
| void | read_pnlhisyns (FILE *) |
| Method for reading the connectivity between PNs and LHIs from a file. More... | |
| void | write_pnlhisyns (FILE *) |
| Method for writing the connectivity between PNs and LHIs to a file. More... | |
| void | read_kcdnsyns (FILE *) |
| Method for reading the connectivity between KCs and DNs (detector neurons) from a file. More... | |
| void | write_kcdnsyns (FILE *) |
| Method to write the connectivity between KCs and DNs (detector neurons) to a file. More... | |
| void | read_input_patterns (FILE *) |
| Method for reading the input patterns from a file. More... | |
| void | generate_baserates () |
| Method for calculating the baseline rates of the Poisson input neurons. More... | |
| void | run (float, unsigned int) |
| Method for simulating the model for a given period of time. More... | |
| void | output_state (FILE *, unsigned int) |
| Method for copying from device and writing out to file of the entire state of the model. More... | |
| void | getSpikesFromGPU () |
| Method for copying all spikes of the last time step from the GPU. More... | |
| void | getSpikeNumbersFromGPU () |
| Method for copying the number of spikes in all neuron populations that have occurred during the last time step. More... | |
| void | output_spikes (FILE *, unsigned int) |
| Method for writing the spikes occurred in the last time step to a file. More... | |
| void | sum_spikes () |
| Method for summing up spike numbers. More... | |
| void | get_kcdnsyns () |
| Method for copying the synaptic conductances of the learning synapses between KCs and DNs (detector neurons) back to the CPU memory. More... | |
| classol () | |
| ~classol () | |
| void | init (unsigned int) |
| void | allocate_device_mem_patterns () |
| void | allocate_device_mem_input () |
| void | copy_device_mem_input () |
| void | free_device_mem () |
| void | write_input_to_file (FILE *) |
| void | read_input_values (FILE *) |
| void | create_input_values (float t) |
| void | run (float, unsigned int) |
| void | getSpikesFromGPU () |
| void | getSpikeNumbersFromGPU () |
| void | output_state (FILE *, unsigned int) |
| void | output_spikes (FILE *, unsigned int) |
| void | sum_spikes () |
| classol () | |
| ~classol () | |
| void | init (unsigned int) |
| void | allocate_device_mem_patterns () |
| void | allocate_device_mem_input () |
| void | free_device_mem () |
| void | read_PNIzh1syns (float *, FILE *) |
| void | read_sparsesyns_par (int, struct Conductance, FILE *, FILE *, FILE *) |
| void | read_input_patterns (FILE *) |
| void | generate_baserates () |
| void | run (float, unsigned int) |
| void | output_state (FILE *, unsigned int) |
| void | getSpikesFromGPU () |
| void | getSpikeNumbersFromGPU () |
| void | output_spikes (FILE *, unsigned int) |
| void | sum_spikes () |
Public Attributes | |
| NNmodel | model |
| unsigned int * | theRates |
| unsigned int * | pattern |
| unsigned int * | baserates |
| unsigned int * | d_pattern |
| unsigned int * | d_baserates |
| unsigned int | sumPN |
| unsigned int | sumKC |
| unsigned int | sumLHI |
| unsigned int | sumDN |
| unsigned int | size_g |
| float * | input1 |
| float * | d_input1 |
| unsigned int | sumIzh1 |
This class cpontains the methods for running the MBody1 example model.
| classol::classol | ( | ) |
| classol::~classol | ( | ) |
| classol::classol | ( | ) |
| classol::~classol | ( | ) |
| classol::classol | ( | ) |
| classol::~classol | ( | ) |
| void classol::allocate_device_mem_input | ( | ) |
| void classol::allocate_device_mem_input | ( | ) |
| void classol::allocate_device_mem_patterns | ( | ) |
| void classol::allocate_device_mem_patterns | ( | ) |
| void classol::allocate_device_mem_patterns | ( | ) |
Method for allocating memory on the GPU device to hold the input patterns.
| void classol::copy_device_mem_input | ( | ) |
| void classol::create_input_values | ( | float | t | ) |
| void classol::free_device_mem | ( | ) |
| void classol::free_device_mem | ( | ) |
| void classol::free_device_mem | ( | ) |
Methods for unallocating the memory for input patterns on the GPU device.
| void classol::generate_baserates | ( | ) |
| void classol::generate_baserates | ( | ) |
Method for calculating the baseline rates of the Poisson input neurons.
| void classol::get_kcdnsyns | ( | ) |
Method for copying the synaptic conductances of the learning synapses between KCs and DNs (detector neurons) back to the CPU memory.
| void classol::getSpikeNumbersFromGPU | ( | ) |
| void classol::getSpikeNumbersFromGPU | ( | ) |
| void classol::getSpikeNumbersFromGPU | ( | ) |
Method for copying the number of spikes in all neuron populations that have occurred during the last time step.
This method is a simple wrapper for the convenience function copySpikeNFromDevice() provided by GeNN.
| void classol::getSpikesFromGPU | ( | ) |
| void classol::getSpikesFromGPU | ( | ) |
| void classol::getSpikesFromGPU | ( | ) |
Method for copying all spikes of the last time step from the GPU.
This is a simple wrapper for the convenience function copySpikesFromDevice() which is provided by GeNN.
| void classol::init | ( | unsigned | int | ) |
| void classol::init | ( | unsigned | int | ) |
| void classol::init | ( | unsigned int | which | ) |
Method for initialising variables.
| which | Flag defining whether GPU or CPU only version is run |
| void classol::output_spikes | ( | FILE * | , |
| unsigned | int | ||
| ) |
| void classol::output_spikes | ( | FILE * | , |
| unsigned | int | ||
| ) |
| void classol::output_spikes | ( | FILE * | f, |
| unsigned int | which | ||
| ) |
Method for writing the spikes occurred in the last time step to a file.
| f | File handle for a file to write spike times to |
| which | Flag determining whether using GPU or CPU only |
| void classol::output_state | ( | FILE * | , |
| unsigned | int | ||
| ) |
| void classol::output_state | ( | FILE * | , |
| unsigned | int | ||
| ) |
| void classol::output_state | ( | FILE * | f, |
| unsigned int | which | ||
| ) |
Method for copying from device and writing out to file of the entire state of the model.
| f | File handle for a file to write the model state to |
| which | Flag determining whether using GPU or CPU only |
| void classol::read_input_patterns | ( | FILE * | ) |
| void classol::read_input_patterns | ( | FILE * | f | ) |
Method for reading the input patterns from a file.
| f | File handle for a file containing input patterns |
| void classol::read_input_values | ( | FILE * | f | ) |
| void classol::read_kcdnsyns | ( | FILE * | f | ) |
Method for reading the connectivity between KCs and DNs (detector neurons) from a file.
| f | File handle for a file containing KC to DN (detector neuron) conductivity values |
| void classol::read_PNIzh1syns | ( | float * | gp, |
| FILE * | f | ||
| ) |
| void classol::read_pnkcsyns | ( | FILE * | f | ) |
Method for reading the connectivity between PNs and KCs from a file.
| f | File handle for a file containing PN to KC conductivity values |
| void classol::read_pnlhisyns | ( | FILE * | f | ) |
Method for reading the connectivity between PNs and LHIs from a file.
| f | File handle for a file containing PN to LHI conductivity values |
| void classol::read_sparsesyns_par | ( | int | , |
| struct Conductance | , | ||
| FILE * | , | ||
| FILE * | , | ||
| FILE * | |||
| ) |
| void classol::read_sparsesyns_par | ( | int | synInd, |
| struct Conductance | C, | ||
| FILE * | f_ind, | ||
| FILE * | f_indInG, | ||
| FILE * | f_g | ||
| ) |
| f_g | File handle for a file containing sparse conductivity values |
| void classol::run | ( | float | , |
| unsigned | int | ||
| ) |
| void classol::run | ( | float | , |
| unsigned | int | ||
| ) |
| void classol::run | ( | float | runtime, |
| unsigned int | which | ||
| ) |
Method for simulating the model for a given period of time.
| runtime | Duration of time to run the model for |
| which | Flag determining whether to run on GPU or CPU only |
| void classol::sum_spikes | ( | ) |
| void classol::sum_spikes | ( | ) |
| void classol::sum_spikes | ( | ) |
Method for summing up spike numbers.
| void classol::write_input_to_file | ( | FILE * | f | ) |
| void classol::write_kcdnsyns | ( | FILE * | f | ) |
Method to write the connectivity between KCs and DNs (detector neurons) to a file.
| f | File handle for a file to write KC to DN (detectore neuron) conductivity values to |
| void classol::write_pnkcsyns | ( | FILE * | f | ) |
Method for writing the conenctivity between PNs and KCs back into file.
| f | File handle for a file to write PN to KC conductivity values to |
| void classol::write_pnlhisyns | ( | FILE * | f | ) |
Method for writing the connectivity between PNs and LHIs to a file.
| f | File handle for a file to write PN to LHI conductivity values to |
| unsigned int * classol::baserates |
| unsigned int * classol::d_baserates |
| float* classol::d_input1 |
| unsigned int * classol::d_pattern |
| float* classol::input1 |
| NNmodel classol::model |
| unsigned int * classol::pattern |
| unsigned int classol::size_g |
| unsigned int classol::sumDN |
| unsigned int classol::sumIzh1 |
| unsigned int classol::sumKC |
| unsigned int classol::sumLHI |
| unsigned int classol::sumPN |
| unsigned int * classol::theRates |