GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
generateRunner.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------
2  Author: Thomas Nowotny
3 
4  Institute: Center for Computational Neuroscience and Robotics
5  University of Sussex
6  Falmer, Brighton BN1 9QJ, UK
7 
8  email to: T.Nowotny@sussex.ac.uk
9 
10  initial version: 2010-02-07
11 
12  --------------------------------------------------------------------------*/
13 
14 //-----------------------------------------------------------------------
21 //--------------------------------------------------------------------------
22 
23 #include "modelSpec.h"
24 
25 #include <string>
26 #include <fstream>
27 
28 using namespace std;
29 
30 
31 //--------------------------------------------------------------------------
33 //--------------------------------------------------------------------------
34 
35 void variable_def(ofstream &os, const string &type, const string &name);
36 
37 
38 //--------------------------------------------------------------------------
40 //--------------------------------------------------------------------------
41 
42 void extern_variable_def(ofstream &os, const string &type, const string &name);
43 
44 
45 //--------------------------------------------------------------------------
56 //--------------------------------------------------------------------------
57 
58 void genRunner(const NNmodel &model,
59  const string &path
60  );
61 
62 
63 //----------------------------------------------------------------------------
69 //----------------------------------------------------------------------------
70 
71 #ifndef CPU_ONLY
72 void genRunnerGPU(const NNmodel &model,
73  const string &path
74  );
75 #endif // CPU_ONLY
76 
77 
78 //----------------------------------------------------------------------------
82 //----------------------------------------------------------------------------
83 
84 void genMakefile(const NNmodel &model,
85  const string &path
86  );
void variable_def(ofstream &os, const string &type, const string &name)
This fucntion generates host and device variable definitions, of the given type and name...
Definition: generateRunner.cc:37
Definition: modelSpec.h:85
Header file that contains the class (struct) definition of neuronModel for defining a neuron model an...
void extern_variable_def(ofstream &os, const string &type, const string &name)
This fucntion generates host extern variable definitions, of the given type and name.
Definition: generateRunner.cc:51
void genRunnerGPU(const NNmodel &model, const string &path)
A function to generate the code that simulates the model on the GPU.
Definition: generateRunner.cc:1641
void genMakefile(const NNmodel &model, const string &path)
A function that generates the Makefile for all generated GeNN code.
Definition: generateRunner.cc:2383
void genRunner(const NNmodel &model, const string &path)
A function that generates predominantly host-side code.
Definition: generateRunner.cc:73