GeNN  1.1
GPU enhanced Neuronal Networks (GeNN)
 All Classes Files Functions Variables Typedefs Macros Pages
classol_sim.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 //--------------------------------------------------------------------------
19 //--------------------------------------------------------------------------
20 
21 using namespace std;
22 #include <cassert>
23 #include "hr_time.cpp"
24 
25 #include "utils.h" // for CHECK_CUDA_ERRORS
26 
27 #include <cuda_runtime.h>
28 
29 
30 #define RAND(Y,X) Y = Y * 1103515245 +12345;X= (unsigned int)(Y >> 16) & 32767
31 
32 // we will hard-code some stuff ... because at the end of the day that is
33 // what we will do for the CUDA version
34 
35 #define DBG_SIZE 10000
36 
37 // and some global variables
38 float t= 0.0f;
39 unsigned int iT= 0;
40 
41 #define PATTERNNO 100
42 #define INPUTBASERATE 17
43 //----------------------------------------------------------------------
44 // other stuff:
45 #define T_REPORT_TME 1000.0
46 #define SYN_OUT_TME 20000.0
47 
49 // reset input every 100 steps == 50ms
50 #define PAT_TIME 100.0
51 
52 // pattern goes off at 2 steps == 1 ms
53 #define PATFTIME 1.0
54 
56 
57 
58 #define TOTAL_TME 5000.0
59 
61 
62 #include "map_classol.cc"
Definition: hr_time.h:40
int patSetTime
Definition: classol_sim.h:48
This file contains standard utility functions provide within the NVIDIA CUDA software development too...
CStopWatch timer
Definition: classol_sim.h:60
float t
Definition: classol_sim.h:38
This file contains the implementation of the CStopWatch class that provides a simple timing tool base...
int patFireTime
Definition: classol_sim.h:55
unsigned int iT
Definition: classol_sim.h:39
Implementation of the classol class.