GeNN  1.1
GPU enhanced Neuronal Networks (GeNN)
 All Classes Files Functions Variables Typedefs Macros Pages
OneComp_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 ONECOMP_H
16 #define ONECOMP_H
17 
18 #include "OneComp.cc"
19 
20 class classol
21 {
22  public:
23  NNmodel model;
24  float *input1;
25  //------------------------------------------------------------------------
26  // on the device:
27  float *d_input1;
28  //------------------------------------------------------------------------
29  unsigned int sumIzh1;
30  classol();
31  ~classol();
32  void init(unsigned int);
35  void copy_device_mem_input();
36  void free_device_mem();
37  void write_input_to_file(FILE *);
38  void read_input_values(FILE *);
39  void create_input_values(float t);
40  void run(float, unsigned int);
41  void getSpikesFromGPU();
42  void getSpikeNumbersFromGPU();
43  void output_state(FILE *, unsigned int);
44  void output_spikes(FILE *, unsigned int);
45  void sum_spikes();
46 };
47 
48 #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 copy_device_mem_input()
Definition: OneComp_model.cc:46
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
NNmodel model
Definition: map_classol.h:40
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
float * input1
Definition: OneComp_model.h:24
void allocate_device_mem_patterns()
Method for allocating memory on the GPU device to hold the input patterns.
Definition: map_classol.cc:68
void write_input_to_file(FILE *)
Definition: OneComp_model.cc:66
void sum_spikes()
Method for summing up spike numbers.
Definition: map_classol.cc:448
classol()
Definition: map_classol.cc:31
void run(float, unsigned int)
Method for simulating the model for a given period of time.
Definition: map_classol.cc:282
double t
Definition: VClampGA.h:41
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 create_input_values(float t)
Definition: OneComp_model.cc:86
void getSpikesFromGPU()
Method for copying all spikes of the last time step from the GPU.
Definition: map_classol.cc:401
void read_input_values(FILE *)
Definition: OneComp_model.cc:80
float * d_input1
Definition: OneComp_model.h:27
This class cpontains the methods for running the MBody1 example model.
Definition: map_classol.h:37