GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
generateKernels.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 //------------------------------------------------------------------------
20 //-------------------------------------------------------------------------
21 
22 #include "modelSpec.h"
23 
24 #include <string>
25 #include <fstream>
26 
27 using namespace std;
28 
29 
30 // The CPU_ONLY version does not need any of this
31 #ifndef CPU_ONLY
32 
33 
34 //-------------------------------------------------------------------------
40 //-------------------------------------------------------------------------
41 
42 void genNeuronKernel(const NNmodel &model,
43  const string &path
44  );
45 
46 
47 //-------------------------------------------------------------------------
53 //-------------------------------------------------------------------------
54 
56  ostream &os,
57  const NNmodel &model,
58  unsigned int src,
59  unsigned int trg,
60  int i,
61  const string &localID,
62  unsigned int inSynNo,
63  const string &postfix
64  );
65 
66 //-------------------------------------------------------------------------
74 //-------------------------------------------------------------------------
75 
76 void genSynapseKernel(const NNmodel &model,
77  const string &path
78  );
79 
80 #endif // CPU_ONLY
void generate_process_presynaptic_events_code(ostream &os, const NNmodel &model, unsigned int src, unsigned int trg, int i, const string &localID, unsigned int inSynNo, const string &postfix)
Function for generating the CUDA synapse kernel code that handles presynaptic spikes or spike type ev...
Definition: generateKernels.cc:481
Definition: modelSpec.h:85
void genNeuronKernel(const NNmodel &model, const string &path)
Function for generating the CUDA kernel that simulates all neurons in the model.
Definition: generateKernels.cc:45
void genSynapseKernel(const NNmodel &model, const string &path)
Function for generating a CUDA kernel for simulating all synapses.
Definition: generateKernels.cc:794
Header file that contains the class (struct) definition of neuronModel for defining a neuron model an...