GeNN  1.1
GPU enhanced Neuronal Networks (GeNN)
 All Classes Files Functions Variables Typedefs Macros Pages
PoissonIzh-model.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 POISSONIZHMODEL_H
16 #define POISSONIZHMODEL_H
17 
18 #include "PoissonIzh.cc"
19 
20 class classol
21 {
22  public:
23  NNmodel model;
24  unsigned int *theRates;
25  unsigned int *pattern;
26  unsigned int *baserates;
27  //------------------------------------------------------------------------
28  // on the device:
29  unsigned int *d_pattern;
30  unsigned int *d_baserates;
31  //------------------------------------------------------------------------
32  unsigned int sumPN, sumIzh1;
33  // end of data fields
34 
35  classol();
36  ~classol();
37  void init(unsigned int);
40  void free_device_mem();
41  void read_PNIzh1syns(float *, FILE *);
42  void read_sparsesyns_par(int, struct Conductance, FILE *,FILE *,FILE *);
43  void read_input_patterns(FILE *);
44  void generate_baserates();
45  void run(float, unsigned int);
46  void output_state(FILE *, unsigned int);
47  void getSpikesFromGPU();
49  void output_spikes(FILE *, unsigned int);
50  void sum_spikes();
51 };
52 
53 #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
unsigned int sumIzh1
Definition: OneComp_model.h:29
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
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
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
void read_PNIzh1syns(float *, FILE *)
Definition: PoissonIzh-model.cc:88
unsigned int * d_pattern
Definition: map_classol.h:46
void allocate_device_mem_patterns()
Method for allocating memory on the GPU device to hold the input patterns.
Definition: map_classol.cc:68
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_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
void allocate_device_mem_input()
Definition: OneComp_model.cc:39
~classol()
Definition: map_classol.cc:98
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