GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
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 <stdint.h>
19 
20 
21 class classol
22 {
23 private:
24  void importArray(scalar *, double *, int);
25  void exportArray(double *, scalar *, int);
26  public:
27  NNmodel model;
28  uint64_t *baserates;
29  //------------------------------------------------------------------------
30  // on the device:
31  uint64_t *d_baserates;
32  //------------------------------------------------------------------------
33  unsigned int sumPN, sumIzh1;
34  // end of data fields
35 
36  classol();
37  ~classol();
38  void init(unsigned int);
39 #ifndef CPU_ONLY
41  void free_device_mem();
42 #endif
43  void read_PNIzh1syns(scalar *, FILE *);
44  void read_sparsesyns_par(int, struct SparseProjection, FILE *,FILE *,FILE *, double *);
45  void generate_baserates();
46  void run(float, unsigned int);
47  void output_state(FILE *, unsigned int);
48 #ifndef CPU_ONLY
49  void getSpikesFromGPU();
51 #endif
52  void output_spikes(FILE *, unsigned int);
53  void sum_spikes();
54 };
55 
56 #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: MBody1_project/model/map_classol.cc:392
unsigned int sumIzh1
Definition: PoissonIzh-model.h:33
void free_device_mem()
Methods for unallocating the memory for input patterns on the GPU device.
Definition: MBody1_project/model/map_classol.cc:90
Definition: modelSpec.h:85
void generate_baserates()
Method for calculating the baseline rates of the Poisson input neurons.
Definition: MBody1_project/model/map_classol.cc:319
NNmodel model
Definition: MBody1_project/model/map_classol.h:43
void init(unsigned int)
Method for initialising variables.
Definition: MBody1_project/model/map_classol.cc:50
void output_spikes(FILE *, unsigned int)
Method for writing the spikes occurred in the last time step to a file.
Definition: MBody1_project/model/map_classol.cc:499
void read_PNIzh1syns(scalar *, FILE *)
Definition: PoissonIzh-model.cc:87
uint64_t * d_baserates
Definition: MBody1_project/model/map_classol.h:52
void sum_spikes()
Method for summing up spike numbers.
Definition: MBody1_project/model/map_classol.cc:524
unsigned int sumPN
Definition: MBody1_project/model/map_classol.h:54
classol()
Definition: MBody1_project/model/map_classol.cc:30
void run(float, unsigned int)
Definition: PoissonIzh-model.cc:164
void getSpikeNumbersFromGPU()
Method for copying the number of spikes in all neuron populations that have occurred during the last ...
Definition: MBody1_project/model/map_classol.cc:488
void allocate_device_mem_input()
~classol()
Destructor for olfaction model.
Definition: MBody1_project/model/map_classol.cc:101
void getSpikesFromGPU()
Method for copying all spikes of the last time step from the GPU.
Definition: MBody1_project/model/map_classol.cc:476
class (struct) for defining a spars connectivity projection
Definition: sparseProjection.h:18
#define scalar
Definition: HHVClampParameters.h:4
void read_sparsesyns_par(int, struct SparseProjection, scalar *, FILE *, FILE *, FILE *)
Read sparse connectivity from a file.
Definition: MBody1_project/model/map_classol.cc:261
uint64_t * baserates
Definition: MBody1_project/model/map_classol.h:48
This class cpontains the methods for running the MBody1 example model.
Definition: MBody1_project/model/map_classol.h:37