GeNN  1.1
GPU enhanced Neuronal Networks (GeNN)
 All Classes Files Functions Variables Typedefs Macros Pages
map_classol.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------
2  Author: Thomas Nowotny
3 
4  Institute: Institute for Nonlinear Dynamics
5  University of California San Diego
6  La Jolla, CA 92093-0402
7 
8  email to: tnowotny@ucsd.edu
9 
10  initial version: 2002-09-26
11 
12 --------------------------------------------------------------------------*/
13 
14 
15 #ifndef CLASSOL_H
16 #define CLASSOL_H
17 
18 //--------------------------------------------------------------------------
27 //--------------------------------------------------------------------------
28 
29 
30 #include "MBody1.cc"
31 
32 //--------------------------------------------------------------------------
35 //--------------------------------------------------------------------------
36 
37 class classol
38 {
39  public:
41  unsigned int *theRates;
42  unsigned int *pattern;
43  unsigned int *baserates;
44  //------------------------------------------------------------------------
45  // on the device:
46  unsigned int *d_pattern;
47  unsigned int *d_baserates;
48  //------------------------------------------------------------------------
49  unsigned int sumPN, sumKC, sumLHI, sumDN;
50  unsigned int size_g; //number of connections
51  // end of data fields
52 
53  classol();
54  ~classol();
55  void init(unsigned int);
57  void free_device_mem();
58  void read_pnkcsyns(FILE *);
59  void read_sparsesyns_par(int, struct Conductance, FILE *,FILE *,FILE *);
60  void write_pnkcsyns(FILE *);
61  void read_pnlhisyns(FILE *);
62  void write_pnlhisyns(FILE *);
63  void read_kcdnsyns(FILE *);
64  void write_kcdnsyns(FILE *);
65  void read_input_patterns(FILE *);
66  void generate_baserates();
67  void run(float, unsigned int);
68  void output_state(FILE *, unsigned int);
69  void getSpikesFromGPU();
70  void getSpikeNumbersFromGPU();
71  void output_spikes(FILE *, unsigned int);
72  void sum_spikes();
73  void get_kcdnsyns();
74 };
75 
76 #endif
void output_state(FILE *, unsigned int)
Method for copying from device and writing out to file of the entire state of the model...
Definition: map_classol.cc:321
void write_pnkcsyns(FILE *)
Method for writing the conenctivity between PNs and KCs back into file.
Definition: map_classol.cc:142
unsigned int size_g
Definition: map_classol.h:50
void write_kcdnsyns(FILE *)
Method to write the connectivity between KCs and DNs (detector neurons) to a file.
Definition: map_classol.cc:203
void free_device_mem()
Methods for unallocating the memory for input patterns on the GPU device.
Definition: map_classol.cc:87
Definition: modelSpec.h:147
unsigned int sumKC
Definition: map_classol.h:49
void generate_baserates()
Method for calculating the baseline rates of the Poisson input neurons.
Definition: map_classol.cc:266
NNmodel model
Definition: map_classol.h:40
unsigned int * pattern
Definition: map_classol.h:42
unsigned int sumDN
Definition: map_classol.h:49
void init(unsigned int)
Method for initialising variables.
Definition: map_classol.cc:49
void output_spikes(FILE *, unsigned int)
Method for writing the spikes occurred in the last time step to a file.
Definition: map_classol.cc:423
unsigned int * d_pattern
Definition: map_classol.h:46
void get_kcdnsyns()
Method for copying the synaptic conductances of the learning synapses between KCs and DNs (detector n...
Definition: map_classol.cc:461
void allocate_device_mem_patterns()
Method for allocating memory on the GPU device to hold the input patterns.
Definition: map_classol.cc:68
unsigned int sumLHI
Definition: map_classol.h:49
void sum_spikes()
Method for summing up spike numbers.
Definition: map_classol.cc:448
unsigned int sumPN
Definition: map_classol.h:49
classol()
Definition: map_classol.cc:31
unsigned int * baserates
Definition: map_classol.h:43
void run(float, unsigned int)
Method for simulating the model for a given period of time.
Definition: map_classol.cc:282
void read_pnkcsyns(FILE *)
Method for reading the connectivity between PNs and KCs from a file.
Definition: map_classol.cc:111
void read_kcdnsyns(FILE *)
Method for reading the connectivity between KCs and DNs (detector neurons) from a file...
Definition: map_classol.cc:185
void read_input_patterns(FILE *)
Method for reading the input patterns from a file.
Definition: map_classol.cc:248
void getSpikeNumbersFromGPU()
Method for copying the number of spikes in all neuron populations that have occurred during the last ...
Definition: map_classol.cc:413
~classol()
Definition: map_classol.cc:98
void write_pnlhisyns(FILE *)
Method for writing the connectivity between PNs and LHIs to a file.
Definition: map_classol.cc:172
void read_pnlhisyns(FILE *)
Method for reading the connectivity between PNs and LHIs from a file.
Definition: map_classol.cc:155
void getSpikesFromGPU()
Method for copying all spikes of the last time step from the GPU.
Definition: map_classol.cc:401
unsigned int * d_baserates
Definition: map_classol.h:47
void read_sparsesyns_par(int, struct Conductance, FILE *, FILE *, FILE *)
Definition: map_classol.cc:210
unsigned int * theRates
Definition: map_classol.h:41
This class cpontains the methods for running the MBody1 example model.
Definition: map_classol.h:37